From 07e904fa3efff4d9bff08077c80f5c0890042d55 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Tue, 3 Sep 2024 12:15:29 -0400 Subject: [PATCH] Write out denoised data to requested output spaces (#44) --- src/fmripost_aroma/cli/parser.py | 33 +++++++------ src/fmripost_aroma/workflows/base.py | 70 +++++++++++++++++++++++++++- 2 files changed, 85 insertions(+), 18 deletions(-) diff --git a/src/fmripost_aroma/cli/parser.py b/src/fmripost_aroma/cli/parser.py index 1603698..a14f046 100644 --- a/src/fmripost_aroma/cli/parser.py +++ b/src/fmripost_aroma/cli/parser.py @@ -37,12 +37,11 @@ def _build_parser(**kwargs): from functools import partial from pathlib import Path + from niworkflows.utils.spaces import OutputReferencesAction from packaging.version import Version from fmripost_aroma.cli.version import check_latest, is_flagged - # from niworkflows.utils.spaces import OutputReferencesAction - class ToDict(Action): def __call__(self, parser, namespace, values, option_string=None): d = {} @@ -326,21 +325,21 @@ def _bids_filter(value, parser): ), ) # Disable output spaces until warping works - # g_conf.add_argument( - # '--output-spaces', - # nargs='*', - # action=OutputReferencesAction, - # help="""\ - # Standard and non-standard spaces to resample denoised functional images to. \ - # Standard spaces may be specified by the form \ - # ``[:cohort-