datalad-neuroimaging
datalad-neuroimaging copied to clipboard
Add GIN datacite-file generation from BIDS dataset_description.json
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:
- [ ] unit tests
- [ ] refactoring
Just stumbled over this again - its cool functionality to have!
@christian-monch did you still have changes to add to this PR? Can you remember what level of refactoring was necessary?
@jsheunis: will take a look shortly
Can we put this in draft mode, please?
I am putting this PR in draft mode.
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