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
fMRI prep error on magnitude1 fieldmap in /extra_data folders despite .bidsignore file including /extra_data folder #3203
Comments
Hi @lianneremie, If you add the line Also, could you share the tree of your BIDS folder? Where did you put the |
Sorry for not responding sooner, and I'm not on my computer so I'm not prepared to look at this in detail. Before you spend more time on it, .bidsignore has no effect on fmriprep. If you have things that you're ignoring that interfere with fmriprep's logic, ignoring them won't help. It'll just stop the validator telling you about them. |
Thanks for your reply! For now I just work around this issue by moving these files to a different folder in the derivatives. Would there be another way to let fmriprep ignore these files? |
@lianneremie , did you fill your fieldmap json files with I am thinking about this discussion. But perhaps the error you received is triggered before this filtering happens. Anyway, I would recommend to have your dataset BIDS compatible if possible to start with, and to always move this folder |
@julfou81 My dataset is BIDS compatible, my folder looks like this: The .bidsignore file is directly under the /bids folder, but this is only used for the bidsvalidator at the start of fmriprep as @effigies commented. I do not use |
ok, I forgot that extra_data/ was part of the BIDS specification. Indeed, you should not need to remove it then. How does your bids-filter file looks like? Yes, maybe removing the B0FieldSource in the json files in the extra_data/ folder will help? |
Okay, catching up on all of this:
|
What happened?
I tried to run fMRI prep, but it failed and gave the following output:
fMRIPrep failed: The 'mag_files' trait of a _CheckRegisterInputSpec instance must be a list of from 1 to 2 items which are a pathlike object or string representing an existing file, but a value of ['/project/3033003.02/bids/sub-001/ses-mri02/extra_data/sub-001_ses-mri02_acq-fieldmap_magnitude1.nii.gz', '/project/3033003.02/bids/sub-001/ses-mri02/fmap/sub-001_ses-mri02_acq-fieldmap_magnitude1.nii.gz', '/project/3033003.02/bids/sub-001/ses-mri02/fmap/sub-001_ses-mri02_acq-fieldmap_magnitude2.nii.gz'] <class 'list'> was specified.
indicating that it is not allowed to have more than two magnitude fieldmaps in the bidsfolder per sub-ses.
An extra magnitude1 fieldmap is present in the
/extra_data
folder as result of a skullstripping step. This /extra_data folder should be ignored, as indicated in de .bidsignore file, but fMRI prep still fails.Please find the .bidsignore file below:
What command did you use?
What version of fMRIPrep are you running?
23.1.0
How are you running fMRIPrep?
Singularity
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
Additional information / screenshots
No response
The text was updated successfully, but these errors were encountered: