niwrap-freesurfer 0.5.1__py3-none-any.whl → 0.5.3__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.3.dist-info}/METADATA +1 -1
- {niwrap_freesurfer-0.5.1.dist-info → niwrap_freesurfer-0.5.3.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.3.dist-info}/WHEEL +0 -0
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
PRINT_UNIQUE_LABELS_CSH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="61620e17b7f1d9248e212d87048973a57d06b37e.boutiques",
|
|
10
10
|
name="print_unique_labels.csh",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -16,7 +16,10 @@ PRINT_UNIQUE_LABELS_CSH_METADATA = Metadata(
|
|
|
16
16
|
PrintUniqueLabelsCshParameters = typing.TypedDict('PrintUniqueLabelsCshParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["print_unique_labels.csh"],
|
|
18
18
|
"label_volume": InputPathType,
|
|
19
|
+
"output_file": typing.NotRequired[str | None],
|
|
19
20
|
"list_only": bool,
|
|
21
|
+
"version": bool,
|
|
22
|
+
"help": bool,
|
|
20
23
|
})
|
|
21
24
|
|
|
22
25
|
|
|
@@ -58,20 +61,26 @@ class PrintUniqueLabelsCshOutputs(typing.NamedTuple):
|
|
|
58
61
|
"""
|
|
59
62
|
root: OutputPathType
|
|
60
63
|
"""Output root folder. This is the root folder for all outputs."""
|
|
61
|
-
results_file: OutputPathType
|
|
64
|
+
results_file: OutputPathType | None
|
|
62
65
|
"""Output file with the list of unique labels"""
|
|
63
66
|
|
|
64
67
|
|
|
65
68
|
def print_unique_labels_csh_params(
|
|
66
69
|
label_volume: InputPathType,
|
|
70
|
+
output_file: str | None = None,
|
|
67
71
|
list_only: bool = False,
|
|
72
|
+
version: bool = False,
|
|
73
|
+
help_: bool = False,
|
|
68
74
|
) -> PrintUniqueLabelsCshParameters:
|
|
69
75
|
"""
|
|
70
76
|
Build parameters.
|
|
71
77
|
|
|
72
78
|
Args:
|
|
73
79
|
label_volume: Label volume to be analyzed.
|
|
80
|
+
output_file: Text file where the results are written.
|
|
74
81
|
list_only: Only list the labels.
|
|
82
|
+
version: Print version and exit.
|
|
83
|
+
help_: Print help and exit.
|
|
75
84
|
Returns:
|
|
76
85
|
Parameter dictionary
|
|
77
86
|
"""
|
|
@@ -79,7 +88,11 @@ def print_unique_labels_csh_params(
|
|
|
79
88
|
"__STYXTYPE__": "print_unique_labels.csh",
|
|
80
89
|
"label_volume": label_volume,
|
|
81
90
|
"list_only": list_only,
|
|
91
|
+
"version": version,
|
|
92
|
+
"help": help_,
|
|
82
93
|
}
|
|
94
|
+
if output_file is not None:
|
|
95
|
+
params["output_file"] = output_file
|
|
83
96
|
return params
|
|
84
97
|
|
|
85
98
|
|
|
@@ -102,8 +115,17 @@ def print_unique_labels_csh_cargs(
|
|
|
102
115
|
"--vol",
|
|
103
116
|
execution.input_file(params.get("label_volume"))
|
|
104
117
|
])
|
|
118
|
+
if params.get("output_file") is not None:
|
|
119
|
+
cargs.extend([
|
|
120
|
+
"--out",
|
|
121
|
+
params.get("output_file")
|
|
122
|
+
])
|
|
105
123
|
if params.get("list_only"):
|
|
106
124
|
cargs.append("--list")
|
|
125
|
+
if params.get("version"):
|
|
126
|
+
cargs.append("--version")
|
|
127
|
+
if params.get("help"):
|
|
128
|
+
cargs.append("--help")
|
|
107
129
|
return cargs
|
|
108
130
|
|
|
109
131
|
|
|
@@ -122,7 +144,7 @@ def print_unique_labels_csh_outputs(
|
|
|
122
144
|
"""
|
|
123
145
|
ret = PrintUniqueLabelsCshOutputs(
|
|
124
146
|
root=execution.output_file("."),
|
|
125
|
-
results_file=execution.output_file("
|
|
147
|
+
results_file=execution.output_file(params.get("output_file")) if (params.get("output_file") is not None) else None,
|
|
126
148
|
)
|
|
127
149
|
return ret
|
|
128
150
|
|
|
@@ -153,7 +175,10 @@ def print_unique_labels_csh_execute(
|
|
|
153
175
|
|
|
154
176
|
def print_unique_labels_csh(
|
|
155
177
|
label_volume: InputPathType,
|
|
178
|
+
output_file: str | None = None,
|
|
156
179
|
list_only: bool = False,
|
|
180
|
+
version: bool = False,
|
|
181
|
+
help_: bool = False,
|
|
157
182
|
runner: Runner | None = None,
|
|
158
183
|
) -> PrintUniqueLabelsCshOutputs:
|
|
159
184
|
"""
|
|
@@ -165,7 +190,10 @@ def print_unique_labels_csh(
|
|
|
165
190
|
|
|
166
191
|
Args:
|
|
167
192
|
label_volume: Label volume to be analyzed.
|
|
193
|
+
output_file: Text file where the results are written.
|
|
168
194
|
list_only: Only list the labels.
|
|
195
|
+
version: Print version and exit.
|
|
196
|
+
help_: Print help and exit.
|
|
169
197
|
runner: Command runner.
|
|
170
198
|
Returns:
|
|
171
199
|
NamedTuple of outputs (described in `PrintUniqueLabelsCshOutputs`).
|
|
@@ -174,7 +202,10 @@ def print_unique_labels_csh(
|
|
|
174
202
|
execution = runner.start_execution(PRINT_UNIQUE_LABELS_CSH_METADATA)
|
|
175
203
|
params = print_unique_labels_csh_params(
|
|
176
204
|
label_volume=label_volume,
|
|
205
|
+
output_file=output_file,
|
|
177
206
|
list_only=list_only,
|
|
207
|
+
version=version,
|
|
208
|
+
help_=help_,
|
|
178
209
|
)
|
|
179
210
|
return print_unique_labels_csh_execute(params, execution)
|
|
180
211
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
RBBR_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="5e244d64ac10cdbe8cb73d1d3628ed3768d60a04.boutiques",
|
|
10
10
|
name="rbbr",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -17,7 +17,11 @@ RbbrParameters = typing.TypedDict('RbbrParameters', {
|
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["rbbr"],
|
|
18
18
|
"subject": typing.NotRequired[str | None],
|
|
19
19
|
"moving_image": str,
|
|
20
|
+
"t1_contrast": bool,
|
|
20
21
|
"t2_contrast": bool,
|
|
22
|
+
"init_reg": bool,
|
|
23
|
+
"init_spm": bool,
|
|
24
|
+
"init_fsl": bool,
|
|
21
25
|
"init_header": bool,
|
|
22
26
|
"cost_threshold": typing.NotRequired[float | None],
|
|
23
27
|
"gtm_synthesize": typing.NotRequired[str | None],
|
|
@@ -85,7 +89,11 @@ class RbbrOutputs(typing.NamedTuple):
|
|
|
85
89
|
def rbbr_params(
|
|
86
90
|
moving_image: str,
|
|
87
91
|
subject: str | None = None,
|
|
92
|
+
t1_contrast: bool = False,
|
|
88
93
|
t2_contrast: bool = False,
|
|
94
|
+
init_reg: bool = False,
|
|
95
|
+
init_spm: bool = False,
|
|
96
|
+
init_fsl: bool = False,
|
|
89
97
|
init_header: bool = False,
|
|
90
98
|
cost_threshold: float | None = None,
|
|
91
99
|
gtm_synthesize: str | None = None,
|
|
@@ -108,7 +116,11 @@ def rbbr_params(
|
|
|
108
116
|
Args:
|
|
109
117
|
moving_image: Input moving image.
|
|
110
118
|
subject: FreeSurfer subject (not needed with --init-reg).
|
|
119
|
+
t1_contrast: Use T1 tissue contrast.
|
|
111
120
|
t2_contrast: Use T2 tissue contrast.
|
|
121
|
+
init_reg: Initialize registration.
|
|
122
|
+
init_spm: Initialize with SPM.
|
|
123
|
+
init_fsl: Initialize with FSL.
|
|
112
124
|
init_header: Initialize using header.
|
|
113
125
|
cost_threshold: Cost threshold to define outlier.
|
|
114
126
|
gtm_synthesize: Use GTM to synthesize.
|
|
@@ -130,7 +142,11 @@ def rbbr_params(
|
|
|
130
142
|
params = {
|
|
131
143
|
"__STYXTYPE__": "rbbr",
|
|
132
144
|
"moving_image": moving_image,
|
|
145
|
+
"t1_contrast": t1_contrast,
|
|
133
146
|
"t2_contrast": t2_contrast,
|
|
147
|
+
"init_reg": init_reg,
|
|
148
|
+
"init_spm": init_spm,
|
|
149
|
+
"init_fsl": init_fsl,
|
|
134
150
|
"init_header": init_header,
|
|
135
151
|
"tt_reduce": tt_reduce,
|
|
136
152
|
"left_hemi": left_hemi,
|
|
@@ -186,8 +202,16 @@ def rbbr_cargs(
|
|
|
186
202
|
"--mov",
|
|
187
203
|
params.get("moving_image")
|
|
188
204
|
])
|
|
205
|
+
if params.get("t1_contrast"):
|
|
206
|
+
cargs.append("--t1")
|
|
189
207
|
if params.get("t2_contrast"):
|
|
190
208
|
cargs.append("--t2")
|
|
209
|
+
if params.get("init_reg"):
|
|
210
|
+
cargs.append("--init-reg")
|
|
211
|
+
if params.get("init_spm"):
|
|
212
|
+
cargs.append("--init-spm")
|
|
213
|
+
if params.get("init_fsl"):
|
|
214
|
+
cargs.append("--init-fsl")
|
|
191
215
|
if params.get("init_header"):
|
|
192
216
|
cargs.append("--init-header")
|
|
193
217
|
if params.get("cost_threshold") is not None:
|
|
@@ -300,7 +324,11 @@ def rbbr_execute(
|
|
|
300
324
|
def rbbr(
|
|
301
325
|
moving_image: str,
|
|
302
326
|
subject: str | None = None,
|
|
327
|
+
t1_contrast: bool = False,
|
|
303
328
|
t2_contrast: bool = False,
|
|
329
|
+
init_reg: bool = False,
|
|
330
|
+
init_spm: bool = False,
|
|
331
|
+
init_fsl: bool = False,
|
|
304
332
|
init_header: bool = False,
|
|
305
333
|
cost_threshold: float | None = None,
|
|
306
334
|
gtm_synthesize: str | None = None,
|
|
@@ -328,7 +356,11 @@ def rbbr(
|
|
|
328
356
|
Args:
|
|
329
357
|
moving_image: Input moving image.
|
|
330
358
|
subject: FreeSurfer subject (not needed with --init-reg).
|
|
359
|
+
t1_contrast: Use T1 tissue contrast.
|
|
331
360
|
t2_contrast: Use T2 tissue contrast.
|
|
361
|
+
init_reg: Initialize registration.
|
|
362
|
+
init_spm: Initialize with SPM.
|
|
363
|
+
init_fsl: Initialize with FSL.
|
|
332
364
|
init_header: Initialize using header.
|
|
333
365
|
cost_threshold: Cost threshold to define outlier.
|
|
334
366
|
gtm_synthesize: Use GTM to synthesize.
|
|
@@ -353,7 +385,11 @@ def rbbr(
|
|
|
353
385
|
params = rbbr_params(
|
|
354
386
|
subject=subject,
|
|
355
387
|
moving_image=moving_image,
|
|
388
|
+
t1_contrast=t1_contrast,
|
|
356
389
|
t2_contrast=t2_contrast,
|
|
390
|
+
init_reg=init_reg,
|
|
391
|
+
init_spm=init_spm,
|
|
392
|
+
init_fsl=init_fsl,
|
|
357
393
|
init_header=init_header,
|
|
358
394
|
cost_threshold=cost_threshold,
|
|
359
395
|
gtm_synthesize=gtm_synthesize,
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
RCA_BASE_INIT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="3c8d3ad6bcb4fc42684b1829ed14e08e22b13cd8.boutiques",
|
|
10
10
|
name="rca-base-init",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -101,10 +101,11 @@ def rca_base_init_cargs(
|
|
|
101
101
|
Command-line arguments.
|
|
102
102
|
"""
|
|
103
103
|
cargs = []
|
|
104
|
+
cargs.append("rca-base-init")
|
|
104
105
|
if params.get("log_file") is not None:
|
|
105
106
|
cargs.extend([
|
|
106
107
|
"-init",
|
|
107
|
-
|
|
108
|
+
params.get("log_file")
|
|
108
109
|
])
|
|
109
110
|
if params.get("status_file") is not None:
|
|
110
111
|
cargs.append(params.get("status_file"))
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
RCA_CONFIG_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="46eae30104e8ee7e67f818e2a5df2c8456668ef9.boutiques",
|
|
10
10
|
name="rca-config",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -104,9 +104,10 @@ def rca_config_cargs(
|
|
|
104
104
|
Command-line arguments.
|
|
105
105
|
"""
|
|
106
106
|
cargs = []
|
|
107
|
+
cargs.append("rca-config")
|
|
107
108
|
cargs.extend([
|
|
108
109
|
"-config",
|
|
109
|
-
|
|
110
|
+
execution.input_file(params.get("source_config"))
|
|
110
111
|
])
|
|
111
112
|
cargs.append(execution.input_file(params.get("updated_config")))
|
|
112
113
|
cargs.append(execution.input_file(params.get("unknown_args_file")))
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
RCA_CONFIG2CSH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="7da3f443ce243dae4e35d8db7f6e15691dc59ca6.boutiques",
|
|
10
10
|
name="rca-config2csh",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -90,9 +90,10 @@ def rca_config2csh_cargs(
|
|
|
90
90
|
Command-line arguments.
|
|
91
91
|
"""
|
|
92
92
|
cargs = []
|
|
93
|
+
cargs.append("rca-config2csh")
|
|
93
94
|
cargs.extend([
|
|
94
95
|
"-config2csh",
|
|
95
|
-
|
|
96
|
+
execution.input_file(params.get("configfile"))
|
|
96
97
|
])
|
|
97
98
|
return cargs
|
|
98
99
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
RECON_ALL_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="1798c3fdbe8f172aa9c2b07b5d9c964e492cfd06.boutiques",
|
|
10
10
|
name="recon-all",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -16,6 +16,14 @@ RECON_ALL_METADATA = Metadata(
|
|
|
16
16
|
ReconAllParameters = typing.TypedDict('ReconAllParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["recon-all"],
|
|
18
18
|
"subjid": str,
|
|
19
|
+
"all_flag": bool,
|
|
20
|
+
"autorecon_all_flag": bool,
|
|
21
|
+
"autorecon1_flag": bool,
|
|
22
|
+
"autorecon2_flag": bool,
|
|
23
|
+
"autorecon2_cp_flag": bool,
|
|
24
|
+
"autorecon2_wm_flag": bool,
|
|
25
|
+
"autorecon2_inflate1_flag": bool,
|
|
26
|
+
"autorecon2_perhemi_flag": bool,
|
|
19
27
|
"autorecon3_flag": bool,
|
|
20
28
|
"hemi": typing.NotRequired[str | None],
|
|
21
29
|
"pons_crs": typing.NotRequired[list[float] | None],
|
|
@@ -125,6 +133,14 @@ class ReconAllOutputs(typing.NamedTuple):
|
|
|
125
133
|
|
|
126
134
|
def recon_all_params(
|
|
127
135
|
subjid: str,
|
|
136
|
+
all_flag: bool = False,
|
|
137
|
+
autorecon_all_flag: bool = False,
|
|
138
|
+
autorecon1_flag: bool = False,
|
|
139
|
+
autorecon2_flag: bool = False,
|
|
140
|
+
autorecon2_cp_flag: bool = False,
|
|
141
|
+
autorecon2_wm_flag: bool = False,
|
|
142
|
+
autorecon2_inflate1_flag: bool = False,
|
|
143
|
+
autorecon2_perhemi_flag: bool = False,
|
|
128
144
|
autorecon3_flag: bool = False,
|
|
129
145
|
hemi: str | None = None,
|
|
130
146
|
pons_crs: list[float] | None = None,
|
|
@@ -191,6 +207,15 @@ def recon_all_params(
|
|
|
191
207
|
|
|
192
208
|
Args:
|
|
193
209
|
subjid: Subject ID for the FreeSurfer analysis.
|
|
210
|
+
all_flag: Performs all stages of cortical reconstruction.
|
|
211
|
+
autorecon_all_flag: Same as -all.
|
|
212
|
+
autorecon1_flag: Process stages 1-5.
|
|
213
|
+
autorecon2_flag: Process stages 6-23.
|
|
214
|
+
autorecon2_cp_flag: Process stages 12-23.
|
|
215
|
+
autorecon2_wm_flag: Process stages 15-23.
|
|
216
|
+
autorecon2_inflate1_flag: Process stages 6-18.
|
|
217
|
+
autorecon2_perhemi_flag: Tessellation, Smooth1, Inflate1, Qsphere, Fix,\
|
|
218
|
+
Smooth2, Inflate2, Finalsurf, Ribbon.
|
|
194
219
|
autorecon3_flag: Process stages 24-34.
|
|
195
220
|
hemi: Specify hemisphere ('lh' or 'rh').
|
|
196
221
|
pons_crs: Specify CRS for pons during fill operation.
|
|
@@ -264,6 +289,14 @@ def recon_all_params(
|
|
|
264
289
|
params = {
|
|
265
290
|
"__STYXTYPE__": "recon-all",
|
|
266
291
|
"subjid": subjid,
|
|
292
|
+
"all_flag": all_flag,
|
|
293
|
+
"autorecon_all_flag": autorecon_all_flag,
|
|
294
|
+
"autorecon1_flag": autorecon1_flag,
|
|
295
|
+
"autorecon2_flag": autorecon2_flag,
|
|
296
|
+
"autorecon2_cp_flag": autorecon2_cp_flag,
|
|
297
|
+
"autorecon2_wm_flag": autorecon2_wm_flag,
|
|
298
|
+
"autorecon2_inflate1_flag": autorecon2_inflate1_flag,
|
|
299
|
+
"autorecon2_perhemi_flag": autorecon2_perhemi_flag,
|
|
267
300
|
"autorecon3_flag": autorecon3_flag,
|
|
268
301
|
"nofill": nofill,
|
|
269
302
|
"wsless": wsless,
|
|
@@ -377,6 +410,22 @@ def recon_all_cargs(
|
|
|
377
410
|
"-subjid",
|
|
378
411
|
params.get("subjid")
|
|
379
412
|
])
|
|
413
|
+
if params.get("all_flag"):
|
|
414
|
+
cargs.append("-all")
|
|
415
|
+
if params.get("autorecon_all_flag"):
|
|
416
|
+
cargs.append("-autorecon-all")
|
|
417
|
+
if params.get("autorecon1_flag"):
|
|
418
|
+
cargs.append("-autorecon1")
|
|
419
|
+
if params.get("autorecon2_flag"):
|
|
420
|
+
cargs.append("-autorecon2")
|
|
421
|
+
if params.get("autorecon2_cp_flag"):
|
|
422
|
+
cargs.append("-autorecon2-cp")
|
|
423
|
+
if params.get("autorecon2_wm_flag"):
|
|
424
|
+
cargs.append("-autorecon2-wm")
|
|
425
|
+
if params.get("autorecon2_inflate1_flag"):
|
|
426
|
+
cargs.append("-autorecon2-inflate1")
|
|
427
|
+
if params.get("autorecon2_perhemi_flag"):
|
|
428
|
+
cargs.append("-autorecon2-perhemi")
|
|
380
429
|
if params.get("autorecon3_flag"):
|
|
381
430
|
cargs.append("-autorecon3")
|
|
382
431
|
if params.get("hemi") is not None:
|
|
@@ -637,6 +686,14 @@ def recon_all_execute(
|
|
|
637
686
|
|
|
638
687
|
def recon_all(
|
|
639
688
|
subjid: str,
|
|
689
|
+
all_flag: bool = False,
|
|
690
|
+
autorecon_all_flag: bool = False,
|
|
691
|
+
autorecon1_flag: bool = False,
|
|
692
|
+
autorecon2_flag: bool = False,
|
|
693
|
+
autorecon2_cp_flag: bool = False,
|
|
694
|
+
autorecon2_wm_flag: bool = False,
|
|
695
|
+
autorecon2_inflate1_flag: bool = False,
|
|
696
|
+
autorecon2_perhemi_flag: bool = False,
|
|
640
697
|
autorecon3_flag: bool = False,
|
|
641
698
|
hemi: str | None = None,
|
|
642
699
|
pons_crs: list[float] | None = None,
|
|
@@ -708,6 +765,15 @@ def recon_all(
|
|
|
708
765
|
|
|
709
766
|
Args:
|
|
710
767
|
subjid: Subject ID for the FreeSurfer analysis.
|
|
768
|
+
all_flag: Performs all stages of cortical reconstruction.
|
|
769
|
+
autorecon_all_flag: Same as -all.
|
|
770
|
+
autorecon1_flag: Process stages 1-5.
|
|
771
|
+
autorecon2_flag: Process stages 6-23.
|
|
772
|
+
autorecon2_cp_flag: Process stages 12-23.
|
|
773
|
+
autorecon2_wm_flag: Process stages 15-23.
|
|
774
|
+
autorecon2_inflate1_flag: Process stages 6-18.
|
|
775
|
+
autorecon2_perhemi_flag: Tessellation, Smooth1, Inflate1, Qsphere, Fix,\
|
|
776
|
+
Smooth2, Inflate2, Finalsurf, Ribbon.
|
|
711
777
|
autorecon3_flag: Process stages 24-34.
|
|
712
778
|
hemi: Specify hemisphere ('lh' or 'rh').
|
|
713
779
|
pons_crs: Specify CRS for pons during fill operation.
|
|
@@ -783,6 +849,14 @@ def recon_all(
|
|
|
783
849
|
execution = runner.start_execution(RECON_ALL_METADATA)
|
|
784
850
|
params = recon_all_params(
|
|
785
851
|
subjid=subjid,
|
|
852
|
+
all_flag=all_flag,
|
|
853
|
+
autorecon_all_flag=autorecon_all_flag,
|
|
854
|
+
autorecon1_flag=autorecon1_flag,
|
|
855
|
+
autorecon2_flag=autorecon2_flag,
|
|
856
|
+
autorecon2_cp_flag=autorecon2_cp_flag,
|
|
857
|
+
autorecon2_wm_flag=autorecon2_wm_flag,
|
|
858
|
+
autorecon2_inflate1_flag=autorecon2_inflate1_flag,
|
|
859
|
+
autorecon2_perhemi_flag=autorecon2_perhemi_flag,
|
|
786
860
|
autorecon3_flag=autorecon3_flag,
|
|
787
861
|
hemi=hemi,
|
|
788
862
|
pons_crs=pons_crs,
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
REGISTER_ELDERLY_SUBJECT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="6846052f6f1ffde9ddad0703126f73b72a6cd671.boutiques",
|
|
10
10
|
name="register_elderly_subject",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -117,7 +117,7 @@ def register_elderly_subject_cargs(
|
|
|
117
117
|
Command-line arguments.
|
|
118
118
|
"""
|
|
119
119
|
cargs = []
|
|
120
|
-
cargs.append("
|
|
120
|
+
cargs.append("register_elderly_subject")
|
|
121
121
|
if params.get("sampling_percentage") is not None:
|
|
122
122
|
cargs.extend([
|
|
123
123
|
"-p",
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
REINFLATE_SUBJECT_LH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="02ce6c00d84a61d80dd02bb72d0ef33c7f1446d6.boutiques",
|
|
10
10
|
name="reinflate_subject-lh",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -93,9 +93,10 @@ def reinflate_subject_lh_cargs(
|
|
|
93
93
|
Command-line arguments.
|
|
94
94
|
"""
|
|
95
95
|
cargs = []
|
|
96
|
+
cargs.append("reinflate_subject-lh")
|
|
96
97
|
cargs.extend([
|
|
97
98
|
"-lh",
|
|
98
|
-
|
|
99
|
+
params.get("subject_id")
|
|
99
100
|
])
|
|
100
101
|
return cargs
|
|
101
102
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
REINFLATE_SUBJECT_RH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="9cd92db80be80b0a27f77251253c9b44f8012411.boutiques",
|
|
10
10
|
name="reinflate_subject-rh",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -96,9 +96,10 @@ def reinflate_subject_rh_cargs(
|
|
|
96
96
|
Command-line arguments.
|
|
97
97
|
"""
|
|
98
98
|
cargs = []
|
|
99
|
+
cargs.append("reinflate_subject-rh")
|
|
99
100
|
cargs.extend([
|
|
100
101
|
"-rh",
|
|
101
|
-
|
|
102
|
+
params.get("subject_dir")
|
|
102
103
|
])
|
|
103
104
|
if params.get("additional_options") is not None:
|
|
104
105
|
cargs.append(params.get("additional_options"))
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
RENORMALIZE_SUBJECT_KEEP_EDITTING_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="f922d68383395cff18ea3f5fe5e68eae32a7b22e.boutiques",
|
|
10
10
|
name="renormalize_subject_keep_editting",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -15,6 +15,7 @@ RENORMALIZE_SUBJECT_KEEP_EDITTING_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
RenormalizeSubjectKeepEdittingParameters = typing.TypedDict('RenormalizeSubjectKeepEdittingParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["renormalize_subject_keep_editting"],
|
|
18
|
+
"placeholder_input": typing.NotRequired[str | None],
|
|
18
19
|
})
|
|
19
20
|
|
|
20
21
|
|
|
@@ -61,17 +62,22 @@ class RenormalizeSubjectKeepEdittingOutputs(typing.NamedTuple):
|
|
|
61
62
|
|
|
62
63
|
|
|
63
64
|
def renormalize_subject_keep_editting_params(
|
|
65
|
+
placeholder_input: str | None = None,
|
|
64
66
|
) -> RenormalizeSubjectKeepEdittingParameters:
|
|
65
67
|
"""
|
|
66
68
|
Build parameters.
|
|
67
69
|
|
|
68
70
|
Args:
|
|
71
|
+
placeholder_input: Placeholder input since tool details are not\
|
|
72
|
+
available.
|
|
69
73
|
Returns:
|
|
70
74
|
Parameter dictionary
|
|
71
75
|
"""
|
|
72
76
|
params = {
|
|
73
77
|
"__STYXTYPE__": "renormalize_subject_keep_editting",
|
|
74
78
|
}
|
|
79
|
+
if placeholder_input is not None:
|
|
80
|
+
params["placeholder_input"] = placeholder_input
|
|
75
81
|
return params
|
|
76
82
|
|
|
77
83
|
|
|
@@ -90,6 +96,8 @@ def renormalize_subject_keep_editting_cargs(
|
|
|
90
96
|
"""
|
|
91
97
|
cargs = []
|
|
92
98
|
cargs.append("renormalize_subject_keep_editting")
|
|
99
|
+
if params.get("placeholder_input") is not None:
|
|
100
|
+
cargs.append(params.get("placeholder_input"))
|
|
93
101
|
return cargs
|
|
94
102
|
|
|
95
103
|
|
|
@@ -139,6 +147,7 @@ def renormalize_subject_keep_editting_execute(
|
|
|
139
147
|
|
|
140
148
|
|
|
141
149
|
def renormalize_subject_keep_editting(
|
|
150
|
+
placeholder_input: str | None = None,
|
|
142
151
|
runner: Runner | None = None,
|
|
143
152
|
) -> RenormalizeSubjectKeepEdittingOutputs:
|
|
144
153
|
"""
|
|
@@ -150,6 +159,8 @@ def renormalize_subject_keep_editting(
|
|
|
150
159
|
URL: https://github.com/freesurfer/freesurfer
|
|
151
160
|
|
|
152
161
|
Args:
|
|
162
|
+
placeholder_input: Placeholder input since tool details are not\
|
|
163
|
+
available.
|
|
153
164
|
runner: Command runner.
|
|
154
165
|
Returns:
|
|
155
166
|
NamedTuple of outputs (described in `RenormalizeSubjectKeepEdittingOutputs`).
|
|
@@ -157,6 +168,7 @@ def renormalize_subject_keep_editting(
|
|
|
157
168
|
runner = runner or get_global_runner()
|
|
158
169
|
execution = runner.start_execution(RENORMALIZE_SUBJECT_KEEP_EDITTING_METADATA)
|
|
159
170
|
params = renormalize_subject_keep_editting_params(
|
|
171
|
+
placeholder_input=placeholder_input,
|
|
160
172
|
)
|
|
161
173
|
return renormalize_subject_keep_editting_execute(params, execution)
|
|
162
174
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
RTVIEW_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="d1062fc3fcb7c8d781138ed45f8feb4a04671369.boutiques",
|
|
10
10
|
name="rtview",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -16,7 +16,10 @@ RTVIEW_METADATA = Metadata(
|
|
|
16
16
|
RtviewParameters = typing.TypedDict('RtviewParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["rtview"],
|
|
18
18
|
"subject": typing.NotRequired[str | None],
|
|
19
|
+
"hemi": typing.NotRequired[str | None],
|
|
20
|
+
"left_hemi": bool,
|
|
19
21
|
"right_hemi": bool,
|
|
22
|
+
"eccen": bool,
|
|
20
23
|
"polar": bool,
|
|
21
24
|
"real_file": typing.NotRequired[InputPathType | None],
|
|
22
25
|
"imag_file": typing.NotRequired[InputPathType | None],
|
|
@@ -70,7 +73,10 @@ class RtviewOutputs(typing.NamedTuple):
|
|
|
70
73
|
|
|
71
74
|
def rtview_params(
|
|
72
75
|
subject: str | None = None,
|
|
76
|
+
hemi: str | None = None,
|
|
77
|
+
left_hemi: bool = False,
|
|
73
78
|
right_hemi: bool = False,
|
|
79
|
+
eccen: bool = False,
|
|
74
80
|
polar: bool = False,
|
|
75
81
|
real_file: InputPathType | None = None,
|
|
76
82
|
imag_file: InputPathType | None = None,
|
|
@@ -86,7 +92,11 @@ def rtview_params(
|
|
|
86
92
|
|
|
87
93
|
Args:
|
|
88
94
|
subject: Subject to use as display.
|
|
95
|
+
hemi: Hemisphere to display: 'lh' for left hemisphere or 'rh' for right\
|
|
96
|
+
hemisphere.
|
|
97
|
+
left_hemi: Display left hemisphere.
|
|
89
98
|
right_hemi: Display right hemisphere.
|
|
99
|
+
eccen: Display eccentricity data.
|
|
90
100
|
polar: Display polar data.
|
|
91
101
|
real_file: File containing real (cosine) values.
|
|
92
102
|
imag_file: File containing imaginary (sine) values.
|
|
@@ -101,13 +111,17 @@ def rtview_params(
|
|
|
101
111
|
"""
|
|
102
112
|
params = {
|
|
103
113
|
"__STYXTYPE__": "rtview",
|
|
114
|
+
"left_hemi": left_hemi,
|
|
104
115
|
"right_hemi": right_hemi,
|
|
116
|
+
"eccen": eccen,
|
|
105
117
|
"polar": polar,
|
|
106
118
|
"flat_display": flat_display,
|
|
107
119
|
"no_cleanup": no_cleanup,
|
|
108
120
|
}
|
|
109
121
|
if subject is not None:
|
|
110
122
|
params["subject"] = subject
|
|
123
|
+
if hemi is not None:
|
|
124
|
+
params["hemi"] = hemi
|
|
111
125
|
if real_file is not None:
|
|
112
126
|
params["real_file"] = real_file
|
|
113
127
|
if imag_file is not None:
|
|
@@ -143,8 +157,17 @@ def rtview_cargs(
|
|
|
143
157
|
"--s",
|
|
144
158
|
params.get("subject")
|
|
145
159
|
])
|
|
160
|
+
if params.get("hemi") is not None:
|
|
161
|
+
cargs.extend([
|
|
162
|
+
"--hemi",
|
|
163
|
+
params.get("hemi")
|
|
164
|
+
])
|
|
165
|
+
if params.get("left_hemi"):
|
|
166
|
+
cargs.append("--lh")
|
|
146
167
|
if params.get("right_hemi"):
|
|
147
168
|
cargs.append("--rh")
|
|
169
|
+
if params.get("eccen"):
|
|
170
|
+
cargs.append("--eccen")
|
|
148
171
|
if params.get("polar"):
|
|
149
172
|
cargs.append("--polar")
|
|
150
173
|
if params.get("real_file") is not None:
|
|
@@ -230,7 +253,10 @@ def rtview_execute(
|
|
|
230
253
|
|
|
231
254
|
def rtview(
|
|
232
255
|
subject: str | None = None,
|
|
256
|
+
hemi: str | None = None,
|
|
257
|
+
left_hemi: bool = False,
|
|
233
258
|
right_hemi: bool = False,
|
|
259
|
+
eccen: bool = False,
|
|
234
260
|
polar: bool = False,
|
|
235
261
|
real_file: InputPathType | None = None,
|
|
236
262
|
imag_file: InputPathType | None = None,
|
|
@@ -252,7 +278,11 @@ def rtview(
|
|
|
252
278
|
|
|
253
279
|
Args:
|
|
254
280
|
subject: Subject to use as display.
|
|
281
|
+
hemi: Hemisphere to display: 'lh' for left hemisphere or 'rh' for right\
|
|
282
|
+
hemisphere.
|
|
283
|
+
left_hemi: Display left hemisphere.
|
|
255
284
|
right_hemi: Display right hemisphere.
|
|
285
|
+
eccen: Display eccentricity data.
|
|
256
286
|
polar: Display polar data.
|
|
257
287
|
real_file: File containing real (cosine) values.
|
|
258
288
|
imag_file: File containing imaginary (sine) values.
|
|
@@ -270,7 +300,10 @@ def rtview(
|
|
|
270
300
|
execution = runner.start_execution(RTVIEW_METADATA)
|
|
271
301
|
params = rtview_params(
|
|
272
302
|
subject=subject,
|
|
303
|
+
hemi=hemi,
|
|
304
|
+
left_hemi=left_hemi,
|
|
273
305
|
right_hemi=right_hemi,
|
|
306
|
+
eccen=eccen,
|
|
274
307
|
polar=polar,
|
|
275
308
|
real_file=real_file,
|
|
276
309
|
imag_file=imag_file,
|