From 4353d5501b516ac59851c75a799ec5b3a37cd67e Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Mon, 23 Sep 2024 11:57:40 -0400 Subject: [PATCH] Limit file collection to specified subject. --- src/fmripost_aroma/workflows/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fmripost_aroma/workflows/base.py b/src/fmripost_aroma/workflows/base.py index 94871ee..d56c0f6 100644 --- a/src/fmripost_aroma/workflows/base.py +++ b/src/fmripost_aroma/workflows/base.py @@ -173,6 +173,8 @@ def init_single_subject_wf(subject_id: str): ### References """ + entities = config.execution.bids_filters.copy() + entities['subject'] = subject_id if config.execution.derivatives: # Raw dataset + derivatives dataset @@ -180,7 +182,7 @@ def init_single_subject_wf(subject_id: str): subject_data = collect_derivatives( raw_dataset=config.execution.layout, derivatives_dataset=None, - entities=config.execution.bids_filters, + entities=entities, fieldmap_id=None, allow_multiple=True, spaces=None, @@ -192,7 +194,7 @@ def init_single_subject_wf(subject_id: str): subject_data = collect_derivatives( raw_dataset=None, derivatives_dataset=config.execution.layout, - entities=config.execution.bids_filters, + entities=entities, fieldmap_id=None, allow_multiple=True, spaces=None,