datalad / datalad-neuroimaging

DataLad extension for neuroimaging research
http://datalad.org
Other
17 stars 14 forks source link

Add GIN datacite-file generation from BIDS dataset_description.json #88

Open christian-monch opened 3 years ago

christian-monch commented 3 years ago

This PR add a new command:

bids2gindatacite

to datalad. This command will process the content of the top-level (w.r.t. to a dataset) "dataset_description.json"-file and create a file named "datacite.yml". This file is expected by GIN in order to request a DOI for a dataset on GIN.

Due to the nature of dataset_description.json, not all required fields in "datacite.yml" can be filled automatically. Where no information is available, the command will add an example-section in "datacite.yml", which contains an example and instructions on how to provide the missing data.

This is an early PR due to the hackathon time pressure-feeling. It still needs:

adswa commented 2 years ago

Just stumbled over this again - its cool functionality to have!

jsheunis commented 2 years ago

@christian-monch did you still have changes to add to this PR? Can you remember what level of refactoring was necessary?

christian-monch commented 2 years ago

@jsheunis: will take a look shortly

mih commented 2 years ago

Can we put this in draft mode, please?

mih commented 2 years ago

I am putting this PR in draft mode.

Remi-Gau commented 1 year ago

Did not realize this was in progress. 🤦🏾

So I created a package that sort of does the same thing... https://github.com/Remi-Gau/bids2cite