From 67cebd9314eebc141729e535cec3e1e35f84d114 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Wed, 29 Mar 2023 14:22:30 -0400 Subject: [PATCH 01/27] Make --basil and --scorescrub mutually exclusive. --- aslprep/cli/parser.py | 157 +++++++++++++++++++++++++++--------------- 1 file changed, 100 insertions(+), 57 deletions(-) diff --git a/aslprep/cli/parser.py b/aslprep/cli/parser.py index 65a520499..3635916c8 100644 --- a/aslprep/cli/parser.py +++ b/aslprep/cli/parser.py @@ -76,8 +76,10 @@ def _bids_filter(value): "bids_dir", action="store", type=PathExists, - help="the root folder of a BIDS valid dataset (sub-XXXXX folders should " - "be found at the top level in this folder).", + help=( + "the root folder of a BIDS valid dataset (sub-XXXXX folders should " + "be found at the top level in this folder)." + ), ) parser.add_argument( "output_dir", @@ -88,8 +90,10 @@ def _bids_filter(value): parser.add_argument( "analysis_level", choices=["participant"], - help='processing stage to be run, only "participant" in the case of ' - "ASLPREP (see BIDS-Apps specification).", + help=( + 'processing stage to be run, only "participant" in the case of ' + "ASLPREP (see BIDS-Apps specification)." + ), ) # optional arguments @@ -109,8 +113,10 @@ def _bids_filter(value): action="store", nargs="+", type=_drop_sub, - help="a space delimited list of participant identifiers or a single " - "identifier (the sub- prefix can be removed)", + help=( + "a space delimited list of participant identifiers or a single " + "identifier (the sub- prefix can be removed)" + ), ) # Re-enable when option is actually implemented # g_bids.add_argument('-s', '--session-id', action='store', default='single_session', @@ -146,8 +152,10 @@ def _bids_filter(value): action="store", metavar="PATH", type=PathExists, - help="Reuse the anatomical derivatives from another ASLPrep run or calculated " - "with an alternative processing tool (NOT RECOMMENDED).", + help=( + "Reuse the anatomical derivatives from another ASLPrep run or calculated " + "with an alternative processing tool (NOT RECOMMENDED)." + ), ) g_perfm = parser.add_argument_group("Options to handle performance") @@ -179,7 +187,7 @@ def _bids_filter(value): g_perfm.add_argument( "--low-mem", action="store_true", - help="attempt to reduce memory usage (will increase disk usage " "in working directory)", + help="attempt to reduce memory usage (will increase disk usage in working directory)", ) g_perfm.add_argument( "--use-plugin", @@ -189,7 +197,11 @@ def _bids_filter(value): type=IsFile, help="nipype plugin configuration file", ) - g_perfm.add_argument("--anat-only", action="store_true", help="run anatomical workflows only") + g_perfm.add_argument( + "--anat-only", + action="store_true", + help="run anatomical workflows only", + ) g_perfm.add_argument( "--boilerplate_only", action="store_true", @@ -219,8 +231,10 @@ def _bids_filter(value): nargs="+", default=[], choices=["fieldmaps", "slicetiming", "sbref"], - help="ignore selected aspects of the input dataset to disable corresponding " - "parts of the workflow (a space delimited list)", + help=( + "ignore selected aspects of the input dataset to disable corresponding " + "parts of the workflow (a space delimited list)" + ), ) g_conf.add_argument( "--longitudinal", @@ -231,16 +245,18 @@ def _bids_filter(value): "--output-spaces", nargs="*", action=OutputReferencesAction, - help="""\ -Standard and non-standard spaces to resample anatomical and functional images to. \ -Standard spaces may be specified by the form \ -``[:cohort-