-
Notifications
You must be signed in to change notification settings - Fork 229
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
Support for exporting BIDS compatible JSON files #4
Comments
I have added experimental BIDS support - I will let you test this and expand it if you feel it is worthwhile. At the moment BIDS creation is disabled by default, you enable creation of BIDS output with the "-b y", for example to convert all the DICOM files in the folder "dcm" and include BIDS support you would call Further, while I think the goals of BIDS are great filling a clear need, and the current scope is focused, I do worry that formats get extended to applications where they are not appropriate. In general I think text formats are a poor choice for science, due to precision, performance, file size and maintainability concerns (e.g. decimal separator, EOLN handling, case sensitivity, unicode handling, etc). Some of these basic concerns are outlined here |
Not to interfere too much with the conversation, but is this really a new Given that there is already a program that does this well, Not to say that it isn't good to give people options, but given that BW, Samuel A. Hurley, PhD On 17 November 2015 at 08:59, Chris Rorden notifications@github.com wrote:
|
On Tue, Nov 17, 2015 at 6:59 AM, Chris Rorden notifications@github.com
Additionally if you don't want to provide this information I would
@halfSpinDoctor BIDS is reusing DICOM terms whenever it is possible and |
Hi Chris, Thanks for the clarification. That makes more sense. This is an interesting project, and I am planning on carefully reading your S Samuel A. Hurley, PhD On 17 November 2015 at 10:11, Chris Filo Gorgolewski <
|
Thank you @halfSpinDoctor - your input will be very much appreciated. @neurolabusc BTW SPM also uses X, Y, Z terms to describe PhaseEncodingDirection (see http://www.fil.ion.ucl.ac.uk/spm/doc/manual.pdf#Chap:FieldMap) |
I suggest looking at the "3D IMAGE (VOLUME) ORIENTATION AND LOCATION IN SPACE" section of |
By the way, I am happy to merge any improvements you have. I have collaborated closely with Xiangrui Li, so his Matlab based dicm2nii and my C code share a lot of code. As far as I know: |
I can get you GE data if you would like. I assume you just need a couple volumes acquired with the user clicking Did you want non-transversal slices also? S On Wednesday, 18 November 2015, Chris Rorden notifications@github.com
Samuel A. Hurley, PhD |
I am closing this issue. I have added experimental support for BIDS to the main branch. I would still like to get my hands on some GE data to validate this further. |
New stable release (v1.0.20201102)
Brain Imaging Data Structure (BIDS) is a new specification describing how a neuroimaging dataset should be organized and described. Part of the standard are JSON sidecar files with acquisition parameters essential for performing data analysis that are not present (or reliably reported) in the NIFTI header (see here for details). Such fields include but are not limited to:
Some of those fields are part of DICOM Ontology and are directly accessible from standard DICOM headers (such as RepetitionTime and EchoTime) and some are not part of standard DICOM nomenclature and require extraction using vendor and sequence specific heuristics (for example PhaseEncodingDirection or EffectiveEchoSpacing). We aded them to the BIDS standard because they are necessary for data processing.
This is how an example BIDS compatible JSON file looks like (more examples here):
dcm2nii has for year been the benchmark of efficient and precise DICOM to NIFTI converters. It would be great if the future release supported saving BIDS style JSON files along the converted NIFTI files. In addition you can consider embedding this JSON inside the header (similar to what dcmstack does). From looking at your code base I see that you already calculate many of the required parameters. I'm more than happy to provide any help in implementing this feature.
The text was updated successfully, but these errors were encountered: