New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsv files not saved #30
Comments
Concerning the json files that are not saved, I guess the user did not check the option in the GUI. Best |
Dear Xiangrui,, my files are aquired on a Phillips scanner, please let me know if you need additional info.
|
Hi @octlie
Best |
Hi @octlie, error catch has been added in 1ab08d2 Best, |
Dear All, Thank you for the code update! When trying the latest version, I do not get any warnings, and the tsv files (and json, after running setpref('dicm2nii_gui_para', 'save_json', true), as advised) are written. However, when checking the bids folder with the bids validator https://bids-standard.github.io/bids-validator/ , I invariably get the same 4(1) error(s) and 2 warnings, whether I use named or anonymized (through anonymize_dicm.m) dicom files. When I run dicm on a dicom folder X (say <fullpath = fullfile(basepath, parentdir, X);>) for bids conversion, I get a bids folder XX (say <fullpath = fullfile(basepath, parentdir, XX);>) and a TSV file 'participants.tsv' with the same path ( (say <fullpath = fullfile(basepath, parentdir, 'participants.tsv' );>) . If I upload the folder XX into the validator, I get 4 errors, if I upload parentdir, I get 1. view 1 error About how to go about this timely, I think the best way is for me to upload the input dicom files (anonymized, T1w) in a zip folder and see if you could take a shot at it (run dicm then validate with bids validator). Thank you very much, I appreciate your help (and promptness!). |
@octlie thank you for sharing your experience and data, We recommend to use an empty output folder, separated from dicoms, for bids conversion. Generally: INPUT= '.../data/dicoms';
OUTPUT= '.../data/bids';
dicm2nii(INPUT, OUTPUT, 'bids') The results is:
Then you have to manually create others mandatory bids files (see the bids specs):
These are not created automatically by dicm2nii
Note that you can add new subjects to the same bids folder: INPUT= '.../OTHER_SUBJECT/dicoms';
OUTPUT= '.../data/bids';
dicm2nii(INPUT, OUTPUT, 'bids') Best, |
Thank you for your prompt answer, that clarifies it! OL |
Copied From Matlab Central
@tanguyduval Any idea for this?
Dear Xiangrui,
I used dicm2nii and related functions outside gui to convert dicom files for 1 anatomical series to bids for subject x, all goes well, but I invariably get:
Warning: Could not save sub-subjx_sessions.tsv
Warning: Could not save participants.tsv
what is to be done? How can I use dcm2nii so that all output (json, tsv) is saved? (Only the nii.gz file is saved, no warning re json, but no json file saved either)
Thank you,
OL
The text was updated successfully, but these errors were encountered: