Summary of what happened:
I am trying to run aslprep only on the baseline sessions in participants with two sessions (ses-baseline, ses-followup). I have used the --bids-filter-file
. This works for the ASL part but it still seems to grab the T1w images from both sessions for the anatomical template. Is there a way to only grab the baseline T1w images? I tried adding ‘anat’ to the filter file as I did with ‘asl’ but then aslprep did not run.
Version:
aslprep-25.0.0rc1
Environment (Docker, Singularity / Apptainer, custom installation):
Singularity
Command used (and if a helper script was used, a link to the helper script or the command generated):
IMG=$(pwd)/aslprep-25.0.0rc1.simg
FS_LICENSE=/sw/freesurfer/license.txt
filter_file=/zwork/elle/OHS/data/code/aslprep/bl_filter.json
outdir=/zwork/elle/OHS/data/derivatives/aslprep
scratch=/zwork/elle/OHS/workdir
cmd="singularity run \
-B ${base}:/bids-root \
-B ${outdir}:/output \
-B ${scratch}:/workdir \
-B ${FS_LICENSE}:/license \
-B ${filter_file}:/bl_filter.json \
$IMG /bids-root /output participant \
--participant-label ${subject} \
--bids-filter-file /bl_filter.json \
--fs-license-file /license \
--nthreads 4 --omp-nthreads 4 --mem_mb 40000 \
--work-dir /workdir"
Data formatted according to a validatable standard? Please provide the output of the validator:
Summary
285 Files, 20.16GB
5 - Subjects
2 - Sessions
Available Tasks
nback
rest
Available Modalities
MRI
View 1 Error in 10 files
Error 1: [Code 176] ASLCONTEXT_TSV_INCONSISTENT
In the 'sub-<label>[_ses-<label>][_acq-<label>][_rec-<label>][_run-<index>]_aslcontext.tsv', the 'volume_type' can only be filled with volumes ['cbf' ,'m0scan', 'label', 'control', 'deltam'].
Data tree output:
data/
sub-01/
ses-baseline/
perf
anat
ses-followup/
perf
anat
Screenshots / relevant information:
BIDS filter file:
{
"asl": {
"session": "baseline"
}
}