I’m working on a dataset draft in which I have to change the names of a few dozens of files, but I don’t have the dataset locally and it’s really difficult for me to download the full dataset.
Instead, I downloaded the draft with openneuro-cli
(through deno run -A jsr:@openneuro/cli download --draft ds004892 ./Dataset
), and changed the names of the files I needed to change. I’m now trying to upload this new version as a draft, but if I use the openneuro-cli upload
(deno run -A jsr:@openneuro/cli upload --dataset ds004892 ./Dataset
), the BIDS validator, for the good reason that I do not have the files locally, returns the error:
[ERROR] NIFTI_HEADER_UNREADABLE We were unable to parse header data from this NIfTI file. Please ensure it is not corrupted or mislabeled.
/sub-S08/ses-1/anat/sub-S08_ses-1_T1w.nii.gz
/sub-S08/ses-1/func/sub-S08_ses-1_task-TheSecretNumber_bold.nii.gz
844 more files with the same issue
Is it ok if I use --ignoreNiftiHeaders
when uploading the dataset, or do I have to commit the changes first with datalad/git-annex? Or should I directly use datalad to upload it?
Sorry if I missed this info in the documentation/help.
Thanks!
Stef