A collaborator has recently sent us a BIDS dataset with 3 diffusion series. Unfortunately, we cannot process the third, due to reduced FOV:
I would like to keep all 3 in the raw bids dataset, but exclude the 3rd scan from processing (QSIprep).
I have tried the following BIDS filter files, but they either fail to exclude the 3rd dataset or select only the second. How might I improve these to only select the 1st and 2nd series, specifically with regex (still new to regex)?
Thought a negative lookahead would work here. Selected all 3 series.
null for acquisition would select 1 and 2. Only selected 2.
"acquisition": ["single", null]
You can try adding
*/dwi/*multi* to a
.bidsignore file, assuming all the files you want to ignore have “multi” in them exclusively.
Sadly, this seems to only affect the BIDS validator. QSIprep still reads in the
Unfortunately, the pybids database option did not exclude the
pybids layout /home/user/BIDS/ \
qsiprep was called using the
singularity run /home/user/Images/qsiprep_0.14.3.sif \
participant --participant-label sub-01 \
--bids-filter-file /home/user/BIDS/code/filters/bids_filter.json \
--bids-database-dir /home/user/BIDSdb/ \
Might there be an issue with where I saved the sqlite database generated?
I’m not totally sure why those files aren’t being excluded, but I can tell you how I’d go about solving this problem.
In our group we typically process each subject on their own and combine the results after all the subjects have finished. The BIDS data exists somewhere on a network drive, then when a job is sent out to the scheduler, it copies a single subject to a local scratch directory and runs qsiprep on the local copy. If you do something like this, you can just delete the
*multi* scans from your local BIDS copy before you run qsiprep. This also avoids the huge time drain of letting pybids index everything at the beginning because qsiprep will see a BIDS input with a single subject.
This solutions seems the simplest, thank you!