PAR / REC + .nii to BIDS #167
Replies: 9 comments 3 replies
-
That should be possible when you add the nibabel2bids plugin. I am not sure if the bidseditor from the current stable version will work flawlessly with this because, in the development version, I fixed an issue that emerged when users were changing the datatype or suffix. I wouldn't copy things over yourself (or e.g. your scans tsv-files will get outdated) |
Beta Was this translation helpful? Give feedback.
-
Correct, This will run especially well if your nifti's were produced by
dcm2niix (in the past), i.e. when the have json sidecar files...
Op di 31 jan. 2023 om 16:17 schreef Freeklinders ***@***.***>:
… Hi Marcel, thanks a lot for your fast reply!
So when running the bidsmapper I should do:
bidsmapper [sourcefolder] [bidsfolder] --p nibabel2bids dcm2niix2bids
So it uses both?
Thanks!
—
Reply to this email directly, view it on GitHub
<#167 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADTUGL3UNCSKNBAPEJIDUPLWVEUJ5ANCNFSM6AAAAAAUMNNVWY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Dear Marcel, I managed to bidscoin all the files in my dataset, though I keep receiving the following errors for all my files when trying to validate the new bids folder; My (bids) folder structure is as follows (example field map): In the bids mapper all my files were green and I received the same error when I left out the whole acquisition field in the bids mapper (thereby getting rid of the capitals). Do you have any idea what I am doing wrong? Thanks a lot in advance! Best, |
Beta Was this translation helpful? Give feedback.
-
Although the bids-validator says that the |
Beta Was this translation helpful? Give feedback.
-
I suspect you were converting PAR/RECs of a fieldmap (https://github.com/rordenlab/dcm2niix/blob/master/FILENAMING.md). I don't have much experience with PAR/REC, but the good news is that collaborators from the SPINOZA center may possibly improve this in the near future. |
Beta Was this translation helpful? Give feedback.
-
I can have a look if you could share that fieldmap data with me... |
Beta Was this translation helpful? Give feedback.
-
Hi Marcel, Thank you for your fast reply. Indeed, I watched your presentation at the Spinoza last week via zoom, as I heard they also had problems with converting PAR/REC files (which, you were correct, I am converting as well). Unfortunately I am not in really close contact with them. sub-1001_task-cuereactivity_acq-FEEPI_bold_e1.json |
Beta Was this translation helpful? Give feedback.
-
I have some dedicated code to deal with dcm2niix suffixes: # Rename all files that got additional postfixes from dcm2niix. See: https://github.com/rordenlab/dcm2niix/blob/master/FILENAMING.md
dcm2niixpostfixes = ('_c', '_i', '_Eq', '_real', '_imaginary', '_MoCo', '_t', '_Tilt', '_e', '_ph', '_ADC', '_fieldmaphz') #_c%d, _e%d and _ph (and any combination of these in that order) are for multi-coil data, multi-echo data and phase data
[..] But somehow this code is not picked up for PAR/REC data... It is very hard to see from a distance what is happening there, as the same seems to work for DICOM. |
Beta Was this translation helpful? Give feedback.
-
So the |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to convert an old PAR/REC dataset into BIDS format using bidscoiner.
However, the T1-w images are already in .nii format, and when I use the converter they are not present in the new, bids-formatted folders. Should this be the case? So yes, should I just copy them into am anat/ subfolder in the new BIDS folder?
Thanks!
Best,
Freek
Beta Was this translation helpful? Give feedback.
All reactions