Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed May 6, 2024
1 parent d06467b commit cd560d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/fmripost_aroma/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def init_single_subject_wf(subject_id: str):
for bold_file in subject_data["bold"]:
functional_cache = {}
if config.execution.derivatives:
# Collect native-space derivatives and warp them to MNI152NLin6Asym
# Collect native-space derivatives and transforms
from fmripost_aroma.utils.bids import collect_derivatives, extract_entities

entities = extract_entities(bold_file)
Expand All @@ -333,11 +333,13 @@ def init_single_subject_wf(subject_id: str):
)
)
else:
# Collect standard-space derivatives
# Only derivatives dataset was passed in, so we expected standard-space derivatives
from fmripost_aroma.utils.bids import collect_derivatives

...

# Resample the BOLD series to MNI152NLin6Asym-2mm

# Run ICA-AROMA using MNI152NLin6Asym-2mm BOLD data
ica_aroma_wf = init_ica_aroma_wf(
bold_file=bold_file,
Expand All @@ -358,6 +360,8 @@ def init_single_subject_wf(subject_id: str):

if config.workflow.denoise_method:
# Warp the BOLD series to requested output spaces
# XXX: Probably should just grab the MNI152NLin6Asym-2mm file if that
# space+resolution is requested.

# Run the denoising workflow on each requested BOLD series
denoise_wf = init_denoise_wf(bold_file=bold_file)
Expand Down

0 comments on commit cd560d0

Please sign in to comment.