niwrap-freesurfer 0.5.1__py3-none-any.whl → 0.5.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of niwrap-freesurfer might be problematic. Click here for more details.
- niwrap_freesurfer/freesurfer/__init__.py +0 -11
- niwrap_freesurfer/freesurfer/annot2std.py +32 -1
- niwrap_freesurfer/freesurfer/aparc2feat.py +19 -1
- niwrap_freesurfer/freesurfer/bbregister.py +143 -4
- niwrap_freesurfer/freesurfer/bmedits2surf.py +2 -2
- niwrap_freesurfer/freesurfer/compute_interrater_variability_csh.py +20 -2
- niwrap_freesurfer/freesurfer/compute_label_volumes_csh.py +17 -2
- niwrap_freesurfer/freesurfer/conf2hires.py +59 -1
- niwrap_freesurfer/freesurfer/connected_components.py +34 -2
- niwrap_freesurfer/freesurfer/dcmdir_info_mgh.py +3 -2
- niwrap_freesurfer/freesurfer/dcmdjpeg_fs.py +2 -2
- niwrap_freesurfer/freesurfer/dcmdrle_fs.py +2 -2
- niwrap_freesurfer/freesurfer/dicom_rename.py +21 -2
- niwrap_freesurfer/freesurfer/dmri_bset.py +14 -2
- niwrap_freesurfer/freesurfer/dmri_forrest.py +10 -1
- niwrap_freesurfer/freesurfer/dmri_mergepaths.py +2 -2
- niwrap_freesurfer/freesurfer/dmri_pathstats.py +2 -2
- niwrap_freesurfer/freesurfer/dmri_stats_ac.py +1 -3
- niwrap_freesurfer/freesurfer/exvivo_hemi_proc.py +10 -1
- niwrap_freesurfer/freesurfer/fiducials_calibration.py +15 -1
- niwrap_freesurfer/freesurfer/fiducials_correction.py +10 -3
- niwrap_freesurfer/freesurfer/fix_subject_corrected_rh.py +3 -2
- niwrap_freesurfer/freesurfer/fix_subject_rh.py +3 -2
- niwrap_freesurfer/freesurfer/fs_check_version.py +19 -1
- niwrap_freesurfer/freesurfer/fs_spmreg_glnxa64.py +19 -4
- niwrap_freesurfer/freesurfer/fs_temp_file.py +36 -1
- niwrap_freesurfer/freesurfer/fs_update.py +19 -1
- niwrap_freesurfer/freesurfer/fsl_sub_mgh.py +1 -2
- niwrap_freesurfer/freesurfer/fsr_import.py +55 -5
- niwrap_freesurfer/freesurfer/fvcompare.py +10 -1
- niwrap_freesurfer/freesurfer/gca_apply.py +3 -2
- niwrap_freesurfer/freesurfer/gdcmconv_fs.py +2 -2
- niwrap_freesurfer/freesurfer/get_label_thickness.py +1 -2
- niwrap_freesurfer/freesurfer/groupstats.py +97 -1
- niwrap_freesurfer/freesurfer/groupstatsdiff.py +4 -4
- niwrap_freesurfer/freesurfer/hiam_make_surfaces.py +1 -2
- niwrap_freesurfer/freesurfer/histo_synthesize.py +1 -2
- niwrap_freesurfer/freesurfer/inflate_subject_lh.py +3 -2
- niwrap_freesurfer/freesurfer/inflate_subject_new_lh.py +3 -3
- niwrap_freesurfer/freesurfer/inflate_subject_new_rh.py +3 -2
- niwrap_freesurfer/freesurfer/inflate_subject_rh.py +3 -2
- niwrap_freesurfer/freesurfer/inflate_subject_sc.py +28 -3
- niwrap_freesurfer/freesurfer/irepifitvol_glnx64.py +2 -2
- niwrap_freesurfer/freesurfer/is_surface.py +3 -2
- niwrap_freesurfer/freesurfer/isolate_labels_csh.py +17 -2
- niwrap_freesurfer/freesurfer/label_subject_flash.py +2 -2
- niwrap_freesurfer/freesurfer/label_subject_mixed.py +2 -2
- niwrap_freesurfer/freesurfer/listsubj.py +82 -2
- niwrap_freesurfer/freesurfer/long_stats_combine.py +1 -2
- niwrap_freesurfer/freesurfer/long_stats_tps.py +7 -7
- niwrap_freesurfer/freesurfer/long_submit_jobs.py +1 -5
- niwrap_freesurfer/freesurfer/longmc.py +10 -1
- niwrap_freesurfer/freesurfer/lta_convert.py +157 -1
- niwrap_freesurfer/freesurfer/make_average_volume.py +19 -1
- niwrap_freesurfer/freesurfer/make_folding_atlas.py +10 -1
- niwrap_freesurfer/freesurfer/map_all_labels_lh.py +11 -3
- niwrap_freesurfer/freesurfer/map_central_sulcus.py +2 -2
- niwrap_freesurfer/freesurfer/merge_stats_tables.py +58 -35
- niwrap_freesurfer/freesurfer/mideface.py +121 -14
- niwrap_freesurfer/freesurfer/mni152reg.py +2 -2
- niwrap_freesurfer/freesurfer/morph_only_subject_lh.py +3 -2
- niwrap_freesurfer/freesurfer/morph_only_subject_rh.py +3 -2
- niwrap_freesurfer/freesurfer/morph_rgb_lh.py +3 -2
- niwrap_freesurfer/freesurfer/morph_rgb_rh.py +3 -2
- niwrap_freesurfer/freesurfer/morph_subject_lh.py +3 -2
- niwrap_freesurfer/freesurfer/morph_subject_rh.py +3 -2
- niwrap_freesurfer/freesurfer/morph_tables_lh.py +3 -2
- niwrap_freesurfer/freesurfer/morph_tables_rh.py +3 -2
- niwrap_freesurfer/freesurfer/mri_aparc2aseg.py +10 -1
- niwrap_freesurfer/freesurfer/mri_apply_bias.py +1 -2
- niwrap_freesurfer/freesurfer/mri_average.py +10 -1
- niwrap_freesurfer/freesurfer/mri_brain_volume.py +23 -2
- niwrap_freesurfer/freesurfer/mri_ca_label.py +603 -2
- niwrap_freesurfer/freesurfer/mri_ca_train.py +10 -1
- niwrap_freesurfer/freesurfer/mri_convert.py +188 -2
- niwrap_freesurfer/freesurfer/mri_fuse_segmentations.py +10 -3
- niwrap_freesurfer/freesurfer/mri_gcab_train.py +15 -1
- niwrap_freesurfer/freesurfer/mri_gdfglm.py +13 -1
- niwrap_freesurfer/freesurfer/mri_gtmpvc.py +19 -1
- niwrap_freesurfer/freesurfer/mri_hausdorff_dist.py +1 -2
- niwrap_freesurfer/freesurfer/mri_head.py +19 -1
- niwrap_freesurfer/freesurfer/mri_jacobian.py +10 -1
- niwrap_freesurfer/freesurfer/mri_nl_align.py +27 -1
- niwrap_freesurfer/freesurfer/mri_relabel_nonwm_hypos.py +3 -3
- niwrap_freesurfer/freesurfer/mri_reorient_lr_csh.py +2 -2
- niwrap_freesurfer/freesurfer/mri_seg_diff.py +14 -1
- niwrap_freesurfer/freesurfer/mri_twoclass.py +1 -2
- niwrap_freesurfer/freesurfer/mri_validate_skull_stripped.py +2 -2
- niwrap_freesurfer/freesurfer/mri_warp_convert.py +131 -1
- niwrap_freesurfer/freesurfer/mri_z2p.py +37 -1
- niwrap_freesurfer/freesurfer/mris_add_template.py +11 -1
- niwrap_freesurfer/freesurfer/mris_apply_reg.py +1 -2
- niwrap_freesurfer/freesurfer/mris_curvature_stats.py +419 -7
- niwrap_freesurfer/freesurfer/mris_diff.py +255 -1
- niwrap_freesurfer/freesurfer/mris_distance_map.py +1 -2
- niwrap_freesurfer/freesurfer/mris_errors.py +1 -2
- niwrap_freesurfer/freesurfer/mris_info.py +45 -46
- niwrap_freesurfer/freesurfer/mris_label_calc.py +14 -1
- niwrap_freesurfer/freesurfer/mris_map_cuts.py +1 -2
- niwrap_freesurfer/freesurfer/mris_nudge.py +1 -2
- niwrap_freesurfer/freesurfer/mris_place_surface.py +1 -2
- niwrap_freesurfer/freesurfer/mris_preproc.py +16 -2
- niwrap_freesurfer/freesurfer/mris_spherical_average.py +93 -8
- niwrap_freesurfer/freesurfer/mris_thickness_diff.py +1 -5
- niwrap_freesurfer/freesurfer/mris_volmask_vtk.py +2 -2
- niwrap_freesurfer/freesurfer/pctsurfcon.py +2 -2
- niwrap_freesurfer/freesurfer/plot_structure_stats_tcl.py +2 -2
- niwrap_freesurfer/freesurfer/post_recon_all.py +39 -2
- niwrap_freesurfer/freesurfer/predict_v1_sh.py +11 -2
- niwrap_freesurfer/freesurfer/print_unique_labels_csh.py +34 -3
- niwrap_freesurfer/freesurfer/rbbr.py +37 -1
- niwrap_freesurfer/freesurfer/rca_base_init.py +3 -2
- niwrap_freesurfer/freesurfer/rca_config.py +3 -2
- niwrap_freesurfer/freesurfer/rca_config2csh.py +3 -2
- niwrap_freesurfer/freesurfer/recon_all.py +75 -1
- niwrap_freesurfer/freesurfer/register_elderly_subject.py +2 -2
- niwrap_freesurfer/freesurfer/reinflate_subject_lh.py +3 -2
- niwrap_freesurfer/freesurfer/reinflate_subject_rh.py +3 -2
- niwrap_freesurfer/freesurfer/renormalize_subject_keep_editting.py +13 -1
- niwrap_freesurfer/freesurfer/rtview.py +34 -1
- niwrap_freesurfer/freesurfer/run_qdec_glm.py +3 -2
- niwrap_freesurfer/freesurfer/samseg.py +14 -1
- niwrap_freesurfer/freesurfer/samseg_long.py +17 -8
- niwrap_freesurfer/freesurfer/samsegmesh2surf.py +5 -7
- niwrap_freesurfer/freesurfer/seg2filled.py +4 -4
- niwrap_freesurfer/freesurfer/segment_subject.py +2 -2
- niwrap_freesurfer/freesurfer/segment_subject_old_skull_strip.py +4 -4
- niwrap_freesurfer/freesurfer/segment_subject_sc.py +4 -4
- niwrap_freesurfer/freesurfer/segment_subject_t2_auto_estimate_alveus_ml.py +11 -1
- niwrap_freesurfer/freesurfer/segpons.py +2 -2
- niwrap_freesurfer/freesurfer/sphere_subject_lh.py +3 -2
- niwrap_freesurfer/freesurfer/sphere_subject_rh.py +3 -2
- niwrap_freesurfer/freesurfer/talairach.py +4 -4
- niwrap_freesurfer/freesurfer/trac_all.py +283 -1
- niwrap_freesurfer/freesurfer/train_gcs_atlas.py +19 -1
- niwrap_freesurfer/freesurfer/update_needed.py +13 -2
- niwrap_freesurfer/freesurfer/vertexvol.py +19 -1
- niwrap_freesurfer/freesurfer/vol2subfield.py +72 -1
- niwrap_freesurfer/freesurfer/wmsaseg.py +2 -2
- {niwrap_freesurfer-0.5.1.dist-info → niwrap_freesurfer-0.5.2.dist-info}/METADATA +1 -1
- {niwrap_freesurfer-0.5.1.dist-info → niwrap_freesurfer-0.5.2.dist-info}/RECORD +142 -153
- niwrap_freesurfer/freesurfer/bet_fsl.py +0 -441
- niwrap_freesurfer/freesurfer/epidewarp_fsl.py +0 -439
- niwrap_freesurfer/freesurfer/flirt_fsl.py +0 -604
- niwrap_freesurfer/freesurfer/fscalc_fsl.py +0 -196
- niwrap_freesurfer/freesurfer/fsfirst_fsl.py +0 -166
- niwrap_freesurfer/freesurfer/fslmaths_fsl.py +0 -196
- niwrap_freesurfer/freesurfer/fslorient_fsl.py +0 -207
- niwrap_freesurfer/freesurfer/fslswapdim_fsl.py +0 -216
- niwrap_freesurfer/freesurfer/fspython.py +0 -175
- niwrap_freesurfer/freesurfer/mri_motion_correct_fsl.py +0 -185
- niwrap_freesurfer/freesurfer/slicetimer_fsl.py +0 -291
- {niwrap_freesurfer-0.5.1.dist-info → niwrap_freesurfer-0.5.2.dist-info}/WHEEL +0 -0
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
INFLATE_SUBJECT_RH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="28e53c36f45c8022dda8ede70eb4400f88349ad3.boutiques",
|
|
10
10
|
name="inflate_subject-rh",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -92,10 +92,11 @@ def inflate_subject_rh_cargs(
|
|
|
92
92
|
Command-line arguments.
|
|
93
93
|
"""
|
|
94
94
|
cargs = []
|
|
95
|
+
cargs.append("inflate_subject-rh")
|
|
95
96
|
if params.get("arguments") is not None:
|
|
96
97
|
cargs.extend([
|
|
97
98
|
"-rh",
|
|
98
|
-
|
|
99
|
+
params.get("arguments")
|
|
99
100
|
])
|
|
100
101
|
return cargs
|
|
101
102
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
INFLATE_SUBJECT_SC_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="0813ce358c83e50fc62e002b6de9508d35f9a2be.boutiques",
|
|
10
10
|
name="inflate_subject_sc",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -15,6 +15,9 @@ INFLATE_SUBJECT_SC_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
InflateSubjectScParameters = typing.TypedDict('InflateSubjectScParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["inflate_subject_sc"],
|
|
18
|
+
"subject_dir": str,
|
|
19
|
+
"verbose": bool,
|
|
20
|
+
"debug": bool,
|
|
18
21
|
})
|
|
19
22
|
|
|
20
23
|
|
|
@@ -61,16 +64,25 @@ class InflateSubjectScOutputs(typing.NamedTuple):
|
|
|
61
64
|
|
|
62
65
|
|
|
63
66
|
def inflate_subject_sc_params(
|
|
67
|
+
subject_dir: str,
|
|
68
|
+
verbose: bool = False,
|
|
69
|
+
debug: bool = False,
|
|
64
70
|
) -> InflateSubjectScParameters:
|
|
65
71
|
"""
|
|
66
72
|
Build parameters.
|
|
67
73
|
|
|
68
74
|
Args:
|
|
75
|
+
subject_dir: Path to the subject directory.
|
|
76
|
+
verbose: Enable verbose output.
|
|
77
|
+
debug: Enable debug mode.
|
|
69
78
|
Returns:
|
|
70
79
|
Parameter dictionary
|
|
71
80
|
"""
|
|
72
81
|
params = {
|
|
73
82
|
"__STYXTYPE__": "inflate_subject_sc",
|
|
83
|
+
"subject_dir": subject_dir,
|
|
84
|
+
"verbose": verbose,
|
|
85
|
+
"debug": debug,
|
|
74
86
|
}
|
|
75
87
|
return params
|
|
76
88
|
|
|
@@ -90,7 +102,11 @@ def inflate_subject_sc_cargs(
|
|
|
90
102
|
"""
|
|
91
103
|
cargs = []
|
|
92
104
|
cargs.append("inflate_subject_sc")
|
|
93
|
-
cargs.append("
|
|
105
|
+
cargs.append(params.get("subject_dir"))
|
|
106
|
+
if params.get("verbose"):
|
|
107
|
+
cargs.append("--verbose")
|
|
108
|
+
if params.get("debug"):
|
|
109
|
+
cargs.append("--debug")
|
|
94
110
|
return cargs
|
|
95
111
|
|
|
96
112
|
|
|
@@ -109,7 +125,7 @@ def inflate_subject_sc_outputs(
|
|
|
109
125
|
"""
|
|
110
126
|
ret = InflateSubjectScOutputs(
|
|
111
127
|
root=execution.output_file("."),
|
|
112
|
-
inflated_output=execution.output_file("
|
|
128
|
+
inflated_output=execution.output_file(params.get("subject_dir") + "/inflated_output"),
|
|
113
129
|
)
|
|
114
130
|
return ret
|
|
115
131
|
|
|
@@ -140,6 +156,9 @@ def inflate_subject_sc_execute(
|
|
|
140
156
|
|
|
141
157
|
|
|
142
158
|
def inflate_subject_sc(
|
|
159
|
+
subject_dir: str,
|
|
160
|
+
verbose: bool = False,
|
|
161
|
+
debug: bool = False,
|
|
143
162
|
runner: Runner | None = None,
|
|
144
163
|
) -> InflateSubjectScOutputs:
|
|
145
164
|
"""
|
|
@@ -151,6 +170,9 @@ def inflate_subject_sc(
|
|
|
151
170
|
URL: https://github.com/freesurfer/freesurfer
|
|
152
171
|
|
|
153
172
|
Args:
|
|
173
|
+
subject_dir: Path to the subject directory.
|
|
174
|
+
verbose: Enable verbose output.
|
|
175
|
+
debug: Enable debug mode.
|
|
154
176
|
runner: Command runner.
|
|
155
177
|
Returns:
|
|
156
178
|
NamedTuple of outputs (described in `InflateSubjectScOutputs`).
|
|
@@ -158,6 +180,9 @@ def inflate_subject_sc(
|
|
|
158
180
|
runner = runner or get_global_runner()
|
|
159
181
|
execution = runner.start_execution(INFLATE_SUBJECT_SC_METADATA)
|
|
160
182
|
params = inflate_subject_sc_params(
|
|
183
|
+
subject_dir=subject_dir,
|
|
184
|
+
verbose=verbose,
|
|
185
|
+
debug=debug,
|
|
161
186
|
)
|
|
162
187
|
return inflate_subject_sc_execute(params, execution)
|
|
163
188
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
IREPIFITVOL_GLNX64_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="a245c53e9539ea6eed51026dad3ae5a54dd3dcd3.boutiques",
|
|
10
10
|
name="irepifitvol.glnx64",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -97,7 +97,7 @@ def irepifitvol_glnx64_cargs(
|
|
|
97
97
|
Command-line arguments.
|
|
98
98
|
"""
|
|
99
99
|
cargs = []
|
|
100
|
-
cargs.append("irepifitvol")
|
|
100
|
+
cargs.append("irepifitvol.glnx64")
|
|
101
101
|
cargs.append(execution.input_file(params.get("input_file")))
|
|
102
102
|
cargs.append(params.get("output_file"))
|
|
103
103
|
return cargs
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
IS_SURFACE_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="86c411bc39041a8b3eae45962259ad09e76de3b1.boutiques",
|
|
10
10
|
name="is-surface",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -90,9 +90,10 @@ def is_surface_cargs(
|
|
|
90
90
|
Command-line arguments.
|
|
91
91
|
"""
|
|
92
92
|
cargs = []
|
|
93
|
+
cargs.append("is-surface")
|
|
93
94
|
cargs.extend([
|
|
94
95
|
"-surface",
|
|
95
|
-
|
|
96
|
+
execution.input_file(params.get("infile"))
|
|
96
97
|
])
|
|
97
98
|
return cargs
|
|
98
99
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
ISOLATE_LABELS_CSH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="b99f5a36e27edd815c27d9c5646229750b881f96.boutiques",
|
|
10
10
|
name="isolate_labels.csh",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -17,6 +17,7 @@ IsolateLabelsCshParameters = typing.TypedDict('IsolateLabelsCshParameters', {
|
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["isolate_labels.csh"],
|
|
18
18
|
"label_volume": InputPathType,
|
|
19
19
|
"output_prefix": str,
|
|
20
|
+
"label_option": typing.NotRequired[str | None],
|
|
20
21
|
"lowercase_label_option": typing.NotRequired[str | None],
|
|
21
22
|
"version": bool,
|
|
22
23
|
"keepval": bool,
|
|
@@ -66,6 +67,7 @@ class IsolateLabelsCshOutputs(typing.NamedTuple):
|
|
|
66
67
|
def isolate_labels_csh_params(
|
|
67
68
|
label_volume: InputPathType,
|
|
68
69
|
output_prefix: str,
|
|
70
|
+
label_option: str | None = None,
|
|
69
71
|
lowercase_label_option: str | None = None,
|
|
70
72
|
version: bool = False,
|
|
71
73
|
keepval: bool = False,
|
|
@@ -77,6 +79,8 @@ def isolate_labels_csh_params(
|
|
|
77
79
|
Args:
|
|
78
80
|
label_volume: Label volume to be analyzed.
|
|
79
81
|
output_prefix: Prefix of binary label file(s).
|
|
82
|
+
label_option: The particular label to be analyzed; default is all\
|
|
83
|
+
labels.
|
|
80
84
|
lowercase_label_option: The particular label to be analyzed; default is\
|
|
81
85
|
all labels.
|
|
82
86
|
version: Print version and exit.
|
|
@@ -93,6 +97,8 @@ def isolate_labels_csh_params(
|
|
|
93
97
|
"keepval": keepval,
|
|
94
98
|
"help": help_,
|
|
95
99
|
}
|
|
100
|
+
if label_option is not None:
|
|
101
|
+
params["label_option"] = label_option
|
|
96
102
|
if lowercase_label_option is not None:
|
|
97
103
|
params["lowercase_label_option"] = lowercase_label_option
|
|
98
104
|
return params
|
|
@@ -112,7 +118,7 @@ def isolate_labels_csh_cargs(
|
|
|
112
118
|
Command-line arguments.
|
|
113
119
|
"""
|
|
114
120
|
cargs = []
|
|
115
|
-
cargs.append("isolate_labels")
|
|
121
|
+
cargs.append("isolate_labels.csh")
|
|
116
122
|
cargs.extend([
|
|
117
123
|
"--vol",
|
|
118
124
|
execution.input_file(params.get("label_volume"))
|
|
@@ -121,6 +127,11 @@ def isolate_labels_csh_cargs(
|
|
|
121
127
|
"--outprefix",
|
|
122
128
|
params.get("output_prefix")
|
|
123
129
|
])
|
|
130
|
+
if params.get("label_option") is not None:
|
|
131
|
+
cargs.extend([
|
|
132
|
+
"--L",
|
|
133
|
+
params.get("label_option")
|
|
134
|
+
])
|
|
124
135
|
if params.get("lowercase_label_option") is not None:
|
|
125
136
|
cargs.extend([
|
|
126
137
|
"--l",
|
|
@@ -182,6 +193,7 @@ def isolate_labels_csh_execute(
|
|
|
182
193
|
def isolate_labels_csh(
|
|
183
194
|
label_volume: InputPathType,
|
|
184
195
|
output_prefix: str,
|
|
196
|
+
label_option: str | None = None,
|
|
185
197
|
lowercase_label_option: str | None = None,
|
|
186
198
|
version: bool = False,
|
|
187
199
|
keepval: bool = False,
|
|
@@ -199,6 +211,8 @@ def isolate_labels_csh(
|
|
|
199
211
|
Args:
|
|
200
212
|
label_volume: Label volume to be analyzed.
|
|
201
213
|
output_prefix: Prefix of binary label file(s).
|
|
214
|
+
label_option: The particular label to be analyzed; default is all\
|
|
215
|
+
labels.
|
|
202
216
|
lowercase_label_option: The particular label to be analyzed; default is\
|
|
203
217
|
all labels.
|
|
204
218
|
version: Print version and exit.
|
|
@@ -213,6 +227,7 @@ def isolate_labels_csh(
|
|
|
213
227
|
params = isolate_labels_csh_params(
|
|
214
228
|
label_volume=label_volume,
|
|
215
229
|
output_prefix=output_prefix,
|
|
230
|
+
label_option=label_option,
|
|
216
231
|
lowercase_label_option=lowercase_label_option,
|
|
217
232
|
version=version,
|
|
218
233
|
keepval=keepval,
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
LABEL_SUBJECT_FLASH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="1d6e63edc1016916b719770e029fc275fe393603.boutiques",
|
|
10
10
|
name="label_subject_flash",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -109,7 +109,7 @@ def label_subject_flash_cargs(
|
|
|
109
109
|
Command-line arguments.
|
|
110
110
|
"""
|
|
111
111
|
cargs = []
|
|
112
|
-
cargs.append("
|
|
112
|
+
cargs.append("label_subject_flash")
|
|
113
113
|
cargs.extend([
|
|
114
114
|
"-flash",
|
|
115
115
|
execution.input_file(params.get("tissue_params"))
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
LABEL_SUBJECT_MIXED_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="4fa18aab4c7257494464ce9a6c1ac24cbb5a4c6e.boutiques",
|
|
10
10
|
name="label_subject_mixed",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -109,7 +109,7 @@ def label_subject_mixed_cargs(
|
|
|
109
109
|
Command-line arguments.
|
|
110
110
|
"""
|
|
111
111
|
cargs = []
|
|
112
|
-
cargs.append("
|
|
112
|
+
cargs.append("label_subject_mixed")
|
|
113
113
|
cargs.extend([
|
|
114
114
|
"-mask",
|
|
115
115
|
execution.input_file(params.get("brain_mask"))
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
LISTSUBJ_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="a18d8b3140e25407e3ae5f429d4a4ba694996847.boutiques",
|
|
10
10
|
name="listsubj",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -16,6 +16,15 @@ LISTSUBJ_METADATA = Metadata(
|
|
|
16
16
|
ListsubjParameters = typing.TypedDict('ListsubjParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["listsubj"],
|
|
18
18
|
"subject_dir": str,
|
|
19
|
+
"cross": bool,
|
|
20
|
+
"base": bool,
|
|
21
|
+
"long": bool,
|
|
22
|
+
"done": bool,
|
|
23
|
+
"error": bool,
|
|
24
|
+
"running": bool,
|
|
25
|
+
"full_path": bool,
|
|
26
|
+
"count": bool,
|
|
27
|
+
"help": bool,
|
|
19
28
|
})
|
|
20
29
|
|
|
21
30
|
|
|
@@ -60,18 +69,45 @@ class ListsubjOutputs(typing.NamedTuple):
|
|
|
60
69
|
|
|
61
70
|
def listsubj_params(
|
|
62
71
|
subject_dir: str,
|
|
72
|
+
cross: bool = False,
|
|
73
|
+
base: bool = False,
|
|
74
|
+
long: bool = False,
|
|
75
|
+
done: bool = False,
|
|
76
|
+
error: bool = False,
|
|
77
|
+
running: bool = False,
|
|
78
|
+
full_path: bool = False,
|
|
79
|
+
count: bool = False,
|
|
80
|
+
help_: bool = False,
|
|
63
81
|
) -> ListsubjParameters:
|
|
64
82
|
"""
|
|
65
83
|
Build parameters.
|
|
66
84
|
|
|
67
85
|
Args:
|
|
68
86
|
subject_dir: Directory where subjects are stored.
|
|
87
|
+
cross: Only cross-sectional stream.
|
|
88
|
+
base: Only base stream.
|
|
89
|
+
long: Only longitudinal stream.
|
|
90
|
+
done: Only subject IDs with scripts/recon-all.done.
|
|
91
|
+
error: Only subject IDs with scripts/recon-all.error.
|
|
92
|
+
running: Only subject IDs with scripts/IsRunning.?h.
|
|
93
|
+
full_path: Prepend full absolute path.
|
|
94
|
+
count: Print number of subjects found.
|
|
95
|
+
help_: Show this help text.
|
|
69
96
|
Returns:
|
|
70
97
|
Parameter dictionary
|
|
71
98
|
"""
|
|
72
99
|
params = {
|
|
73
100
|
"__STYXTYPE__": "listsubj",
|
|
74
101
|
"subject_dir": subject_dir,
|
|
102
|
+
"cross": cross,
|
|
103
|
+
"base": base,
|
|
104
|
+
"long": long,
|
|
105
|
+
"done": done,
|
|
106
|
+
"error": error,
|
|
107
|
+
"running": running,
|
|
108
|
+
"full_path": full_path,
|
|
109
|
+
"count": count,
|
|
110
|
+
"help": help_,
|
|
75
111
|
}
|
|
76
112
|
return params
|
|
77
113
|
|
|
@@ -91,8 +127,25 @@ def listsubj_cargs(
|
|
|
91
127
|
"""
|
|
92
128
|
cargs = []
|
|
93
129
|
cargs.append("listsubj")
|
|
94
|
-
cargs.append("[OPTIONS]")
|
|
95
130
|
cargs.append(params.get("subject_dir"))
|
|
131
|
+
if params.get("cross"):
|
|
132
|
+
cargs.append("-c")
|
|
133
|
+
if params.get("base"):
|
|
134
|
+
cargs.append("-b")
|
|
135
|
+
if params.get("long"):
|
|
136
|
+
cargs.append("-l")
|
|
137
|
+
if params.get("done"):
|
|
138
|
+
cargs.append("-d")
|
|
139
|
+
if params.get("error"):
|
|
140
|
+
cargs.append("-e")
|
|
141
|
+
if params.get("running"):
|
|
142
|
+
cargs.append("-r")
|
|
143
|
+
if params.get("full_path"):
|
|
144
|
+
cargs.append("-f")
|
|
145
|
+
if params.get("count"):
|
|
146
|
+
cargs.append("-n")
|
|
147
|
+
if params.get("help"):
|
|
148
|
+
cargs.append("-h")
|
|
96
149
|
return cargs
|
|
97
150
|
|
|
98
151
|
|
|
@@ -141,6 +194,15 @@ def listsubj_execute(
|
|
|
141
194
|
|
|
142
195
|
def listsubj(
|
|
143
196
|
subject_dir: str,
|
|
197
|
+
cross: bool = False,
|
|
198
|
+
base: bool = False,
|
|
199
|
+
long: bool = False,
|
|
200
|
+
done: bool = False,
|
|
201
|
+
error: bool = False,
|
|
202
|
+
running: bool = False,
|
|
203
|
+
full_path: bool = False,
|
|
204
|
+
count: bool = False,
|
|
205
|
+
help_: bool = False,
|
|
144
206
|
runner: Runner | None = None,
|
|
145
207
|
) -> ListsubjOutputs:
|
|
146
208
|
"""
|
|
@@ -152,6 +214,15 @@ def listsubj(
|
|
|
152
214
|
|
|
153
215
|
Args:
|
|
154
216
|
subject_dir: Directory where subjects are stored.
|
|
217
|
+
cross: Only cross-sectional stream.
|
|
218
|
+
base: Only base stream.
|
|
219
|
+
long: Only longitudinal stream.
|
|
220
|
+
done: Only subject IDs with scripts/recon-all.done.
|
|
221
|
+
error: Only subject IDs with scripts/recon-all.error.
|
|
222
|
+
running: Only subject IDs with scripts/IsRunning.?h.
|
|
223
|
+
full_path: Prepend full absolute path.
|
|
224
|
+
count: Print number of subjects found.
|
|
225
|
+
help_: Show this help text.
|
|
155
226
|
runner: Command runner.
|
|
156
227
|
Returns:
|
|
157
228
|
NamedTuple of outputs (described in `ListsubjOutputs`).
|
|
@@ -160,6 +231,15 @@ def listsubj(
|
|
|
160
231
|
execution = runner.start_execution(LISTSUBJ_METADATA)
|
|
161
232
|
params = listsubj_params(
|
|
162
233
|
subject_dir=subject_dir,
|
|
234
|
+
cross=cross,
|
|
235
|
+
base=base,
|
|
236
|
+
long=long,
|
|
237
|
+
done=done,
|
|
238
|
+
error=error,
|
|
239
|
+
running=running,
|
|
240
|
+
full_path=full_path,
|
|
241
|
+
count=count,
|
|
242
|
+
help_=help_,
|
|
163
243
|
)
|
|
164
244
|
return listsubj_execute(params, execution)
|
|
165
245
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
LONG_STATS_COMBINE_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="75845120ecb7a42bb2814094cd14fceadf929854.boutiques",
|
|
10
10
|
name="long_stats_combine",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -145,7 +145,6 @@ def long_stats_combine_cargs(
|
|
|
145
145
|
"--sd",
|
|
146
146
|
params.get("subject_dir")
|
|
147
147
|
])
|
|
148
|
-
cargs.append("--out")
|
|
149
148
|
cargs.extend([
|
|
150
149
|
"--outqdec",
|
|
151
150
|
params.get("output_qdec")
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
LONG_STATS_TPS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="1bcd114b81501e8287ad3b93601056a429f0aaa9.boutiques",
|
|
10
10
|
name="long_stats_tps",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -126,27 +126,27 @@ def long_stats_tps_cargs(
|
|
|
126
126
|
cargs.append("long_stats_tps")
|
|
127
127
|
cargs.extend([
|
|
128
128
|
"--qdec",
|
|
129
|
-
|
|
129
|
+
execution.input_file(params.get("qdec_table"))
|
|
130
130
|
])
|
|
131
131
|
cargs.extend([
|
|
132
132
|
"--stats",
|
|
133
|
-
|
|
133
|
+
params.get("stats_file")
|
|
134
134
|
])
|
|
135
135
|
cargs.extend([
|
|
136
136
|
"--meas",
|
|
137
|
-
|
|
137
|
+
params.get("measure")
|
|
138
138
|
])
|
|
139
139
|
cargs.extend([
|
|
140
140
|
"--sd",
|
|
141
|
-
|
|
141
|
+
params.get("subjects_dir")
|
|
142
142
|
])
|
|
143
143
|
cargs.extend([
|
|
144
144
|
"--tp",
|
|
145
|
-
|
|
145
|
+
str(params.get("time_point"))
|
|
146
146
|
])
|
|
147
147
|
cargs.extend([
|
|
148
148
|
"--out",
|
|
149
|
-
|
|
149
|
+
params.get("output_file")
|
|
150
150
|
])
|
|
151
151
|
if params.get("qcolumn") is not None:
|
|
152
152
|
cargs.extend([
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
LONG_SUBMIT_JOBS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="73a46d90ad07cf1b262590059e8ca43cc4fde840.boutiques",
|
|
10
10
|
name="long_submit_jobs",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -256,12 +256,8 @@ def long_submit_jobs_cargs(
|
|
|
256
256
|
cargs.append("--simulate")
|
|
257
257
|
if params.get("simfiles"):
|
|
258
258
|
cargs.append("--simfiles")
|
|
259
|
-
cargs.append("[--skip]")
|
|
260
|
-
cargs.append("[--skiperror]")
|
|
261
259
|
if params.get("check"):
|
|
262
260
|
cargs.append("--check")
|
|
263
|
-
cargs.append("[--update-recon-all]")
|
|
264
|
-
cargs.append("[--use-recon-all]")
|
|
265
261
|
if params.get("pause") is not None:
|
|
266
262
|
cargs.extend([
|
|
267
263
|
"--pause",
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
LONGMC_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="a60463859b66f4dac910ccf5dd67f14573c1ca1f.boutiques",
|
|
10
10
|
name="longmc",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -18,6 +18,7 @@ LongmcParameters = typing.TypedDict('LongmcParameters', {
|
|
|
18
18
|
"cross_tp_name": str,
|
|
19
19
|
"base_name": str,
|
|
20
20
|
"conform_to_hires": bool,
|
|
21
|
+
"no_conform_to_hires": bool,
|
|
21
22
|
"subjects_dir": str,
|
|
22
23
|
"subject_name": typing.NotRequired[str | None],
|
|
23
24
|
"no_force_update": bool,
|
|
@@ -68,6 +69,7 @@ def longmc_params(
|
|
|
68
69
|
base_name: str,
|
|
69
70
|
subjects_dir: str,
|
|
70
71
|
conform_to_hires: bool = False,
|
|
72
|
+
no_conform_to_hires: bool = False,
|
|
71
73
|
subject_name: str | None = None,
|
|
72
74
|
no_force_update: bool = False,
|
|
73
75
|
) -> LongmcParameters:
|
|
@@ -79,6 +81,7 @@ def longmc_params(
|
|
|
79
81
|
base_name: Base name for the longitudinal analysis.
|
|
80
82
|
subjects_dir: Set the SUBJECTS_DIR directory.
|
|
81
83
|
conform_to_hires: Option to conform input to high-resolution.
|
|
84
|
+
no_conform_to_hires: Option to not conform input to high-resolution.
|
|
82
85
|
subject_name: Subject name override, must be declared after -long.
|
|
83
86
|
no_force_update: Do not force update.
|
|
84
87
|
Returns:
|
|
@@ -89,6 +92,7 @@ def longmc_params(
|
|
|
89
92
|
"cross_tp_name": cross_tp_name,
|
|
90
93
|
"base_name": base_name,
|
|
91
94
|
"conform_to_hires": conform_to_hires,
|
|
95
|
+
"no_conform_to_hires": no_conform_to_hires,
|
|
92
96
|
"subjects_dir": subjects_dir,
|
|
93
97
|
"no_force_update": no_force_update,
|
|
94
98
|
}
|
|
@@ -119,6 +123,8 @@ def longmc_cargs(
|
|
|
119
123
|
cargs.append(params.get("base_name"))
|
|
120
124
|
if params.get("conform_to_hires"):
|
|
121
125
|
cargs.append("-conf2hires")
|
|
126
|
+
if params.get("no_conform_to_hires"):
|
|
127
|
+
cargs.append("-no-conf2hires")
|
|
122
128
|
cargs.extend([
|
|
123
129
|
"-sd",
|
|
124
130
|
params.get("subjects_dir")
|
|
@@ -182,6 +188,7 @@ def longmc(
|
|
|
182
188
|
base_name: str,
|
|
183
189
|
subjects_dir: str,
|
|
184
190
|
conform_to_hires: bool = False,
|
|
191
|
+
no_conform_to_hires: bool = False,
|
|
185
192
|
subject_name: str | None = None,
|
|
186
193
|
no_force_update: bool = False,
|
|
187
194
|
runner: Runner | None = None,
|
|
@@ -199,6 +206,7 @@ def longmc(
|
|
|
199
206
|
base_name: Base name for the longitudinal analysis.
|
|
200
207
|
subjects_dir: Set the SUBJECTS_DIR directory.
|
|
201
208
|
conform_to_hires: Option to conform input to high-resolution.
|
|
209
|
+
no_conform_to_hires: Option to not conform input to high-resolution.
|
|
202
210
|
subject_name: Subject name override, must be declared after -long.
|
|
203
211
|
no_force_update: Do not force update.
|
|
204
212
|
runner: Command runner.
|
|
@@ -211,6 +219,7 @@ def longmc(
|
|
|
211
219
|
cross_tp_name=cross_tp_name,
|
|
212
220
|
base_name=base_name,
|
|
213
221
|
conform_to_hires=conform_to_hires,
|
|
222
|
+
no_conform_to_hires=no_conform_to_hires,
|
|
214
223
|
subjects_dir=subjects_dir,
|
|
215
224
|
subject_name=subject_name,
|
|
216
225
|
no_force_update=no_force_update,
|