XCP-D doesn't run on a single task

Hi, i am trying to run xcpd for only resting state task:

docker run --rm -it \
    -v <..>:/fmriprep:ro \
    -v /tmp/wkdir:/work \
    -v <..>:/out \
    -v /usr/local/freesurfer/freesurfer/license.txt:ro \
    pennlinc/xcp_d:0.9.1 \
    /fmriprep /out participant \
    --fs-license-file /opt/freesurfer/license.txt \
    --participant-label NDARAA947ZG5 \
    --task-id rest \
    --mode linc \
    --input-type fmriprep \
    --file-format cifti \
    --random-seed 1984 \
    --despike \
    --fd-thresh 0 \
    --head_radius auto \
    --smoothing 6 \
    --min-time 240 \
    --nuisance-regressors acompcor \
    --dummy-scans auto \
    -w /work

but it goes preprocesses all the tasks present for a subject.
Why could this happen?

That’s definitely a bug on XCP-D’s side. It should be fixed in the next release. In the meantime, using the --bids-filter-file parameter will work. Something like the example below should do what you want.

{
    "bold": {
        "task": ["rest"]
    }
}
1 Like