fMRIprep
I’m planning to run fMRIprep and use --fs-no-reconall flag. If the filenames and format are converted (question 2 above), would fmriprep recognize freesurfer outputs?
Typically, any freesurfer output will go into a derivatives subfolder of your top-level bids directory, rather than as your main files. So your directory structure will look like:
If you have your freesurfer dir in derivatives and named properly, fmriprep will automatically detect it when running your subjects and not rerun freesurfer, but rather use the pre-run freesurfer.
Hi, @Ursula_Tooley
Thank you so much for your response! It helps me a lot.
However, I was thinking to put the derivatives folder out of BIDS folder like in this post (Raw and derivatives seperation) @effigies and it would be also okay?
Also, you said “any freesurfer output”, do you mean that I should maintain the freesurfer output file structure and format as it is? Could you tell me whether I need to change mgz file format to nii.gz or not?
FreeSurfer outputs are not BIDS-compliant, but are generally useful. Which is also true of basically anything that wasn’t written in lockstep with the BIDS derivatives standard, and yet we still need to publish derived data. So we have to take a pragmatic view that a derivative can be non-BIDS, and sit alongside BIDS Derivatives. BIDS-Derivatives-compliant outputs will have the advantage of being programmatically queryable, while non-compliant outputs will presumably have the advantage of being understood by their toolchain.
If you look at the output of fMRIPrep, we place a freesurfer/ subjects directory where the subjects have the sub-<label> format of participants in BIDS, alongside an fmriprep/ directory that works to conform to the BIDS-derivatives (draft) specification.
Because FreeSurfer tools will assume that your data is in MGZ, you should keep it that way.
In the ds000248 example we have taken a slightly different approach than the one that @effigies pointed out (click on the link to check it out).
In a nutshell, we create a /derivatives/freesurfer/ directory and in that freesurfer directory, we nest the freesurfer subjects/ directory … in which we then place the subjects in their own directories named by their label --> note that for sub-01, 01 would be the actual label.