niwrap-freesurfer 0.5.0__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/tkregisterfv.py +7 -7
- 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.0.dist-info → niwrap_freesurfer-0.5.2.dist-info}/METADATA +1 -1
- {niwrap_freesurfer-0.5.0.dist-info → niwrap_freesurfer-0.5.2.dist-info}/RECORD +143 -154
- 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.0.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
|
LTA_CONVERT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="089d903b1865bcb03759aa837457f18ed456f5ed.boutiques",
|
|
10
10
|
name="lta_convert",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -15,7 +15,19 @@ LTA_CONVERT_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
LtaConvertParameters = typing.TypedDict('LtaConvertParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["lta_convert"],
|
|
18
|
+
"in_lta": typing.NotRequired[InputPathType | None],
|
|
19
|
+
"in_fsl": typing.NotRequired[InputPathType | None],
|
|
20
|
+
"in_mni": typing.NotRequired[InputPathType | None],
|
|
21
|
+
"in_reg": typing.NotRequired[InputPathType | None],
|
|
22
|
+
"in_niftyreg": typing.NotRequired[InputPathType | None],
|
|
23
|
+
"in_itk": typing.NotRequired[InputPathType | None],
|
|
18
24
|
"in_vox": typing.NotRequired[InputPathType | None],
|
|
25
|
+
"out_lta": typing.NotRequired[str | None],
|
|
26
|
+
"out_fsl": typing.NotRequired[str | None],
|
|
27
|
+
"out_mni": typing.NotRequired[str | None],
|
|
28
|
+
"out_reg": typing.NotRequired[str | None],
|
|
29
|
+
"out_niftyreg": typing.NotRequired[str | None],
|
|
30
|
+
"out_itk": typing.NotRequired[str | None],
|
|
19
31
|
"out_vox": typing.NotRequired[str | None],
|
|
20
32
|
"invert": bool,
|
|
21
33
|
"ltavox2vox": bool,
|
|
@@ -70,7 +82,19 @@ class LtaConvertOutputs(typing.NamedTuple):
|
|
|
70
82
|
|
|
71
83
|
|
|
72
84
|
def lta_convert_params(
|
|
85
|
+
in_lta: InputPathType | None = None,
|
|
86
|
+
in_fsl: InputPathType | None = None,
|
|
87
|
+
in_mni: InputPathType | None = None,
|
|
88
|
+
in_reg: InputPathType | None = None,
|
|
89
|
+
in_niftyreg: InputPathType | None = None,
|
|
90
|
+
in_itk: InputPathType | None = None,
|
|
73
91
|
in_vox: InputPathType | None = None,
|
|
92
|
+
out_lta: str | None = None,
|
|
93
|
+
out_fsl: str | None = None,
|
|
94
|
+
out_mni: str | None = None,
|
|
95
|
+
out_reg: str | None = None,
|
|
96
|
+
out_niftyreg: str | None = None,
|
|
97
|
+
out_itk: str | None = None,
|
|
74
98
|
out_vox: str | None = None,
|
|
75
99
|
invert: bool = False,
|
|
76
100
|
ltavox2vox: bool = False,
|
|
@@ -84,7 +108,19 @@ def lta_convert_params(
|
|
|
84
108
|
Build parameters.
|
|
85
109
|
|
|
86
110
|
Args:
|
|
111
|
+
in_lta: Input transform of LTA type.
|
|
112
|
+
in_fsl: Input transform of FSL type.
|
|
113
|
+
in_mni: Input transform of MNI / XFM type.
|
|
114
|
+
in_reg: Input transform of TK REG type (deprecated format).
|
|
115
|
+
in_niftyreg: Input transform of NiftyReg type (inverse RAS2RAS).
|
|
116
|
+
in_itk: Input ITK transform (inverse LPS2LPS).
|
|
87
117
|
in_vox: Input transform in source image space (inverse VOX2VOX).
|
|
118
|
+
out_lta: Output linear transform (LTA FreeSurfer format).
|
|
119
|
+
out_fsl: Output transform in FSL format.
|
|
120
|
+
out_mni: Output transform in MNI/XFM format.
|
|
121
|
+
out_reg: Output transform in REG DAT format.
|
|
122
|
+
out_niftyreg: Output transform in NiftyReg format (inverse RAS2RAS).
|
|
123
|
+
out_itk: Output transform in ITK TXT format (inverse LPS2LPS).
|
|
88
124
|
out_vox: Output transform in source image space (inverse VOX2VOX).
|
|
89
125
|
invert: Inverts transform.
|
|
90
126
|
ltavox2vox: Output type VOX2VOX (default RAS2RAS) with --ltaout.
|
|
@@ -105,8 +141,32 @@ def lta_convert_params(
|
|
|
105
141
|
"ltatkreg": ltatkreg,
|
|
106
142
|
"trg_conform": trg_conform,
|
|
107
143
|
}
|
|
144
|
+
if in_lta is not None:
|
|
145
|
+
params["in_lta"] = in_lta
|
|
146
|
+
if in_fsl is not None:
|
|
147
|
+
params["in_fsl"] = in_fsl
|
|
148
|
+
if in_mni is not None:
|
|
149
|
+
params["in_mni"] = in_mni
|
|
150
|
+
if in_reg is not None:
|
|
151
|
+
params["in_reg"] = in_reg
|
|
152
|
+
if in_niftyreg is not None:
|
|
153
|
+
params["in_niftyreg"] = in_niftyreg
|
|
154
|
+
if in_itk is not None:
|
|
155
|
+
params["in_itk"] = in_itk
|
|
108
156
|
if in_vox is not None:
|
|
109
157
|
params["in_vox"] = in_vox
|
|
158
|
+
if out_lta is not None:
|
|
159
|
+
params["out_lta"] = out_lta
|
|
160
|
+
if out_fsl is not None:
|
|
161
|
+
params["out_fsl"] = out_fsl
|
|
162
|
+
if out_mni is not None:
|
|
163
|
+
params["out_mni"] = out_mni
|
|
164
|
+
if out_reg is not None:
|
|
165
|
+
params["out_reg"] = out_reg
|
|
166
|
+
if out_niftyreg is not None:
|
|
167
|
+
params["out_niftyreg"] = out_niftyreg
|
|
168
|
+
if out_itk is not None:
|
|
169
|
+
params["out_itk"] = out_itk
|
|
110
170
|
if out_vox is not None:
|
|
111
171
|
params["out_vox"] = out_vox
|
|
112
172
|
if src_geometry is not None:
|
|
@@ -133,11 +193,71 @@ def lta_convert_cargs(
|
|
|
133
193
|
"""
|
|
134
194
|
cargs = []
|
|
135
195
|
cargs.append("lta_convert")
|
|
196
|
+
if params.get("in_lta") is not None:
|
|
197
|
+
cargs.extend([
|
|
198
|
+
"--inlta",
|
|
199
|
+
execution.input_file(params.get("in_lta"))
|
|
200
|
+
])
|
|
201
|
+
if params.get("in_fsl") is not None:
|
|
202
|
+
cargs.extend([
|
|
203
|
+
"--infsl",
|
|
204
|
+
execution.input_file(params.get("in_fsl"))
|
|
205
|
+
])
|
|
206
|
+
if params.get("in_mni") is not None:
|
|
207
|
+
cargs.extend([
|
|
208
|
+
"--inmni",
|
|
209
|
+
execution.input_file(params.get("in_mni"))
|
|
210
|
+
])
|
|
211
|
+
if params.get("in_reg") is not None:
|
|
212
|
+
cargs.extend([
|
|
213
|
+
"--inreg",
|
|
214
|
+
execution.input_file(params.get("in_reg"))
|
|
215
|
+
])
|
|
216
|
+
if params.get("in_niftyreg") is not None:
|
|
217
|
+
cargs.extend([
|
|
218
|
+
"--inniftyreg",
|
|
219
|
+
execution.input_file(params.get("in_niftyreg"))
|
|
220
|
+
])
|
|
221
|
+
if params.get("in_itk") is not None:
|
|
222
|
+
cargs.extend([
|
|
223
|
+
"--initk",
|
|
224
|
+
execution.input_file(params.get("in_itk"))
|
|
225
|
+
])
|
|
136
226
|
if params.get("in_vox") is not None:
|
|
137
227
|
cargs.extend([
|
|
138
228
|
"--invox",
|
|
139
229
|
execution.input_file(params.get("in_vox"))
|
|
140
230
|
])
|
|
231
|
+
if params.get("out_lta") is not None:
|
|
232
|
+
cargs.extend([
|
|
233
|
+
"--outlta",
|
|
234
|
+
params.get("out_lta")
|
|
235
|
+
])
|
|
236
|
+
if params.get("out_fsl") is not None:
|
|
237
|
+
cargs.extend([
|
|
238
|
+
"--outfsl",
|
|
239
|
+
params.get("out_fsl")
|
|
240
|
+
])
|
|
241
|
+
if params.get("out_mni") is not None:
|
|
242
|
+
cargs.extend([
|
|
243
|
+
"--outmni",
|
|
244
|
+
params.get("out_mni")
|
|
245
|
+
])
|
|
246
|
+
if params.get("out_reg") is not None:
|
|
247
|
+
cargs.extend([
|
|
248
|
+
"--outreg",
|
|
249
|
+
params.get("out_reg")
|
|
250
|
+
])
|
|
251
|
+
if params.get("out_niftyreg") is not None:
|
|
252
|
+
cargs.extend([
|
|
253
|
+
"--outniftyreg",
|
|
254
|
+
params.get("out_niftyreg")
|
|
255
|
+
])
|
|
256
|
+
if params.get("out_itk") is not None:
|
|
257
|
+
cargs.extend([
|
|
258
|
+
"--outitk",
|
|
259
|
+
params.get("out_itk")
|
|
260
|
+
])
|
|
141
261
|
if params.get("out_vox") is not None:
|
|
142
262
|
cargs.extend([
|
|
143
263
|
"--outvox",
|
|
@@ -214,7 +334,19 @@ def lta_convert_execute(
|
|
|
214
334
|
|
|
215
335
|
|
|
216
336
|
def lta_convert(
|
|
337
|
+
in_lta: InputPathType | None = None,
|
|
338
|
+
in_fsl: InputPathType | None = None,
|
|
339
|
+
in_mni: InputPathType | None = None,
|
|
340
|
+
in_reg: InputPathType | None = None,
|
|
341
|
+
in_niftyreg: InputPathType | None = None,
|
|
342
|
+
in_itk: InputPathType | None = None,
|
|
217
343
|
in_vox: InputPathType | None = None,
|
|
344
|
+
out_lta: str | None = None,
|
|
345
|
+
out_fsl: str | None = None,
|
|
346
|
+
out_mni: str | None = None,
|
|
347
|
+
out_reg: str | None = None,
|
|
348
|
+
out_niftyreg: str | None = None,
|
|
349
|
+
out_itk: str | None = None,
|
|
218
350
|
out_vox: str | None = None,
|
|
219
351
|
invert: bool = False,
|
|
220
352
|
ltavox2vox: bool = False,
|
|
@@ -233,7 +365,19 @@ def lta_convert(
|
|
|
233
365
|
URL: https://github.com/freesurfer/freesurfer
|
|
234
366
|
|
|
235
367
|
Args:
|
|
368
|
+
in_lta: Input transform of LTA type.
|
|
369
|
+
in_fsl: Input transform of FSL type.
|
|
370
|
+
in_mni: Input transform of MNI / XFM type.
|
|
371
|
+
in_reg: Input transform of TK REG type (deprecated format).
|
|
372
|
+
in_niftyreg: Input transform of NiftyReg type (inverse RAS2RAS).
|
|
373
|
+
in_itk: Input ITK transform (inverse LPS2LPS).
|
|
236
374
|
in_vox: Input transform in source image space (inverse VOX2VOX).
|
|
375
|
+
out_lta: Output linear transform (LTA FreeSurfer format).
|
|
376
|
+
out_fsl: Output transform in FSL format.
|
|
377
|
+
out_mni: Output transform in MNI/XFM format.
|
|
378
|
+
out_reg: Output transform in REG DAT format.
|
|
379
|
+
out_niftyreg: Output transform in NiftyReg format (inverse RAS2RAS).
|
|
380
|
+
out_itk: Output transform in ITK TXT format (inverse LPS2LPS).
|
|
237
381
|
out_vox: Output transform in source image space (inverse VOX2VOX).
|
|
238
382
|
invert: Inverts transform.
|
|
239
383
|
ltavox2vox: Output type VOX2VOX (default RAS2RAS) with --ltaout.
|
|
@@ -251,7 +395,19 @@ def lta_convert(
|
|
|
251
395
|
runner = runner or get_global_runner()
|
|
252
396
|
execution = runner.start_execution(LTA_CONVERT_METADATA)
|
|
253
397
|
params = lta_convert_params(
|
|
398
|
+
in_lta=in_lta,
|
|
399
|
+
in_fsl=in_fsl,
|
|
400
|
+
in_mni=in_mni,
|
|
401
|
+
in_reg=in_reg,
|
|
402
|
+
in_niftyreg=in_niftyreg,
|
|
403
|
+
in_itk=in_itk,
|
|
254
404
|
in_vox=in_vox,
|
|
405
|
+
out_lta=out_lta,
|
|
406
|
+
out_fsl=out_fsl,
|
|
407
|
+
out_mni=out_mni,
|
|
408
|
+
out_reg=out_reg,
|
|
409
|
+
out_niftyreg=out_niftyreg,
|
|
410
|
+
out_itk=out_itk,
|
|
255
411
|
out_vox=out_vox,
|
|
256
412
|
invert=invert,
|
|
257
413
|
ltavox2vox=ltavox2vox,
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
MAKE_AVERAGE_VOLUME_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="72e02e18d338618b963b745c51ee6a0b8c78e972.boutiques",
|
|
10
10
|
name="make_average_volume",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -21,12 +21,14 @@ MakeAverageVolumeParameters = typing.TypedDict('MakeAverageVolumeParameters', {
|
|
|
21
21
|
"topdir": typing.NotRequired[str | None],
|
|
22
22
|
"xform": typing.NotRequired[str | None],
|
|
23
23
|
"sdir": typing.NotRequired[str | None],
|
|
24
|
+
"sd_flag": bool,
|
|
24
25
|
"force_flag": bool,
|
|
25
26
|
"keep_all_orig_flag": bool,
|
|
26
27
|
"no_aseg_flag": bool,
|
|
27
28
|
"ctab": typing.NotRequired[str | None],
|
|
28
29
|
"ctab_default_flag": bool,
|
|
29
30
|
"echo_flag": bool,
|
|
31
|
+
"debug_flag": bool,
|
|
30
32
|
"nocleanup_flag": bool,
|
|
31
33
|
})
|
|
32
34
|
|
|
@@ -77,12 +79,14 @@ def make_average_volume_params(
|
|
|
77
79
|
topdir: str | None = None,
|
|
78
80
|
xform: str | None = None,
|
|
79
81
|
sdir: str | None = None,
|
|
82
|
+
sd_flag: bool = False,
|
|
80
83
|
force_flag: bool = False,
|
|
81
84
|
keep_all_orig_flag: bool = False,
|
|
82
85
|
no_aseg_flag: bool = False,
|
|
83
86
|
ctab: str | None = None,
|
|
84
87
|
ctab_default_flag: bool = False,
|
|
85
88
|
echo_flag: bool = False,
|
|
89
|
+
debug_flag: bool = False,
|
|
86
90
|
nocleanup_flag: bool = False,
|
|
87
91
|
) -> MakeAverageVolumeParameters:
|
|
88
92
|
"""
|
|
@@ -95,6 +99,7 @@ def make_average_volume_params(
|
|
|
95
99
|
topdir: Directory to put data and link to SUBJECTS_DIR.
|
|
96
100
|
xform: Transformation name to use, default is talairach.xfm.
|
|
97
101
|
sdir: Use specified SUBJECTS_DIR instead of the environment's one.
|
|
102
|
+
sd_flag: Same as --sdir.
|
|
98
103
|
force_flag: Overwrite existing average subject data.
|
|
99
104
|
keep_all_orig_flag: Concatenate all original volumes into\
|
|
100
105
|
mri/orig.all.mgz.
|
|
@@ -102,6 +107,7 @@ def make_average_volume_params(
|
|
|
102
107
|
ctab: Embed colortable into segmentations.
|
|
103
108
|
ctab_default_flag: Embed FreeSurferColorLUT.txt into segmentations.
|
|
104
109
|
echo_flag: Enable command echo for debugging.
|
|
110
|
+
debug_flag: Same as --echo for debugging.
|
|
105
111
|
nocleanup_flag: Do not delete temporary files.
|
|
106
112
|
Returns:
|
|
107
113
|
Parameter dictionary
|
|
@@ -109,11 +115,13 @@ def make_average_volume_params(
|
|
|
109
115
|
params = {
|
|
110
116
|
"__STYXTYPE__": "make_average_volume",
|
|
111
117
|
"subjects": subjects,
|
|
118
|
+
"sd_flag": sd_flag,
|
|
112
119
|
"force_flag": force_flag,
|
|
113
120
|
"keep_all_orig_flag": keep_all_orig_flag,
|
|
114
121
|
"no_aseg_flag": no_aseg_flag,
|
|
115
122
|
"ctab_default_flag": ctab_default_flag,
|
|
116
123
|
"echo_flag": echo_flag,
|
|
124
|
+
"debug_flag": debug_flag,
|
|
117
125
|
"nocleanup_flag": nocleanup_flag,
|
|
118
126
|
}
|
|
119
127
|
if fsgd is not None:
|
|
@@ -175,6 +183,8 @@ def make_average_volume_cargs(
|
|
|
175
183
|
"--sdir",
|
|
176
184
|
params.get("sdir")
|
|
177
185
|
])
|
|
186
|
+
if params.get("sd_flag"):
|
|
187
|
+
cargs.append("--sd")
|
|
178
188
|
if params.get("force_flag"):
|
|
179
189
|
cargs.append("--force")
|
|
180
190
|
if params.get("keep_all_orig_flag"):
|
|
@@ -190,6 +200,8 @@ def make_average_volume_cargs(
|
|
|
190
200
|
cargs.append("--ctab-default")
|
|
191
201
|
if params.get("echo_flag"):
|
|
192
202
|
cargs.append("--echo")
|
|
203
|
+
if params.get("debug_flag"):
|
|
204
|
+
cargs.append("--debug")
|
|
193
205
|
if params.get("nocleanup_flag"):
|
|
194
206
|
cargs.append("--nocleanup")
|
|
195
207
|
return cargs
|
|
@@ -245,12 +257,14 @@ def make_average_volume(
|
|
|
245
257
|
topdir: str | None = None,
|
|
246
258
|
xform: str | None = None,
|
|
247
259
|
sdir: str | None = None,
|
|
260
|
+
sd_flag: bool = False,
|
|
248
261
|
force_flag: bool = False,
|
|
249
262
|
keep_all_orig_flag: bool = False,
|
|
250
263
|
no_aseg_flag: bool = False,
|
|
251
264
|
ctab: str | None = None,
|
|
252
265
|
ctab_default_flag: bool = False,
|
|
253
266
|
echo_flag: bool = False,
|
|
267
|
+
debug_flag: bool = False,
|
|
254
268
|
nocleanup_flag: bool = False,
|
|
255
269
|
runner: Runner | None = None,
|
|
256
270
|
) -> MakeAverageVolumeOutputs:
|
|
@@ -268,6 +282,7 @@ def make_average_volume(
|
|
|
268
282
|
topdir: Directory to put data and link to SUBJECTS_DIR.
|
|
269
283
|
xform: Transformation name to use, default is talairach.xfm.
|
|
270
284
|
sdir: Use specified SUBJECTS_DIR instead of the environment's one.
|
|
285
|
+
sd_flag: Same as --sdir.
|
|
271
286
|
force_flag: Overwrite existing average subject data.
|
|
272
287
|
keep_all_orig_flag: Concatenate all original volumes into\
|
|
273
288
|
mri/orig.all.mgz.
|
|
@@ -275,6 +290,7 @@ def make_average_volume(
|
|
|
275
290
|
ctab: Embed colortable into segmentations.
|
|
276
291
|
ctab_default_flag: Embed FreeSurferColorLUT.txt into segmentations.
|
|
277
292
|
echo_flag: Enable command echo for debugging.
|
|
293
|
+
debug_flag: Same as --echo for debugging.
|
|
278
294
|
nocleanup_flag: Do not delete temporary files.
|
|
279
295
|
runner: Command runner.
|
|
280
296
|
Returns:
|
|
@@ -289,12 +305,14 @@ def make_average_volume(
|
|
|
289
305
|
topdir=topdir,
|
|
290
306
|
xform=xform,
|
|
291
307
|
sdir=sdir,
|
|
308
|
+
sd_flag=sd_flag,
|
|
292
309
|
force_flag=force_flag,
|
|
293
310
|
keep_all_orig_flag=keep_all_orig_flag,
|
|
294
311
|
no_aseg_flag=no_aseg_flag,
|
|
295
312
|
ctab=ctab,
|
|
296
313
|
ctab_default_flag=ctab_default_flag,
|
|
297
314
|
echo_flag=echo_flag,
|
|
315
|
+
debug_flag=debug_flag,
|
|
298
316
|
nocleanup_flag=nocleanup_flag,
|
|
299
317
|
)
|
|
300
318
|
return make_average_volume_execute(params, execution)
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
MAKE_FOLDING_ATLAS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="2ea9d8d1b60df2ade6f961abd423e6b44d34ffda.boutiques",
|
|
10
10
|
name="make_folding_atlas",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -24,6 +24,7 @@ MakeFoldingAtlasParameters = typing.TypedDict('MakeFoldingAtlasParameters', {
|
|
|
24
24
|
"init_surf_reg": typing.NotRequired[str | None],
|
|
25
25
|
"init_subject": typing.NotRequired[str | None],
|
|
26
26
|
"no_annot_template": bool,
|
|
27
|
+
"left_hemisphere": bool,
|
|
27
28
|
"right_hemisphere": bool,
|
|
28
29
|
"lhrh": bool,
|
|
29
30
|
"ico_order": typing.NotRequired[float | None],
|
|
@@ -90,6 +91,7 @@ def make_folding_atlas_params(
|
|
|
90
91
|
init_surf_reg: str | None = None,
|
|
91
92
|
init_subject: str | None = None,
|
|
92
93
|
no_annot_template: bool = False,
|
|
94
|
+
left_hemisphere: bool = False,
|
|
93
95
|
right_hemisphere: bool = False,
|
|
94
96
|
lhrh: bool = False,
|
|
95
97
|
ico_order: float | None = None,
|
|
@@ -116,6 +118,7 @@ def make_folding_atlas_params(
|
|
|
116
118
|
(default sphere.reg).
|
|
117
119
|
init_subject: Create first atlas from subject instead of all subjects.
|
|
118
120
|
no_annot_template: Disable annotation template (good for monkeys).
|
|
121
|
+
left_hemisphere: Process left hemisphere.
|
|
119
122
|
right_hemisphere: Process right hemisphere.
|
|
120
123
|
lhrh: Process both left and right hemispheres (default).
|
|
121
124
|
ico_order: Icosahedron order; default is 7.
|
|
@@ -136,6 +139,7 @@ def make_folding_atlas_params(
|
|
|
136
139
|
"__STYXTYPE__": "make_folding_atlas",
|
|
137
140
|
"xhemi": xhemi,
|
|
138
141
|
"no_annot_template": no_annot_template,
|
|
142
|
+
"left_hemisphere": left_hemisphere,
|
|
139
143
|
"right_hemisphere": right_hemisphere,
|
|
140
144
|
"lhrh": lhrh,
|
|
141
145
|
"no_vol_on_last": no_vol_on_last,
|
|
@@ -221,6 +225,8 @@ def make_folding_atlas_cargs(
|
|
|
221
225
|
])
|
|
222
226
|
if params.get("no_annot_template"):
|
|
223
227
|
cargs.append("--no-annot-template")
|
|
228
|
+
if params.get("left_hemisphere"):
|
|
229
|
+
cargs.append("--lh")
|
|
224
230
|
if params.get("right_hemisphere"):
|
|
225
231
|
cargs.append("--rh")
|
|
226
232
|
if params.get("lhrh"):
|
|
@@ -307,6 +313,7 @@ def make_folding_atlas(
|
|
|
307
313
|
init_surf_reg: str | None = None,
|
|
308
314
|
init_subject: str | None = None,
|
|
309
315
|
no_annot_template: bool = False,
|
|
316
|
+
left_hemisphere: bool = False,
|
|
310
317
|
right_hemisphere: bool = False,
|
|
311
318
|
lhrh: bool = False,
|
|
312
319
|
ico_order: float | None = None,
|
|
@@ -338,6 +345,7 @@ def make_folding_atlas(
|
|
|
338
345
|
(default sphere.reg).
|
|
339
346
|
init_subject: Create first atlas from subject instead of all subjects.
|
|
340
347
|
no_annot_template: Disable annotation template (good for monkeys).
|
|
348
|
+
left_hemisphere: Process left hemisphere.
|
|
341
349
|
right_hemisphere: Process right hemisphere.
|
|
342
350
|
lhrh: Process both left and right hemispheres (default).
|
|
343
351
|
ico_order: Icosahedron order; default is 7.
|
|
@@ -367,6 +375,7 @@ def make_folding_atlas(
|
|
|
367
375
|
init_surf_reg=init_surf_reg,
|
|
368
376
|
init_subject=init_subject,
|
|
369
377
|
no_annot_template=no_annot_template,
|
|
378
|
+
left_hemisphere=left_hemisphere,
|
|
370
379
|
right_hemisphere=right_hemisphere,
|
|
371
380
|
lhrh=lhrh,
|
|
372
381
|
ico_order=ico_order,
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
MAP_ALL_LABELS_LH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="97a60688b269fc75bd6ea545f965efcd4df1c156.boutiques",
|
|
10
10
|
name="map_all_labels-lh",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -19,6 +19,7 @@ MapAllLabelsLhParameters = typing.TypedDict('MapAllLabelsLhParameters', {
|
|
|
19
19
|
"fname": str,
|
|
20
20
|
"hemi": str,
|
|
21
21
|
"spherical_surf": InputPathType,
|
|
22
|
+
"subjects": list[str],
|
|
22
23
|
"output": str,
|
|
23
24
|
})
|
|
24
25
|
|
|
@@ -70,6 +71,7 @@ def map_all_labels_lh_params(
|
|
|
70
71
|
fname: str,
|
|
71
72
|
hemi: str,
|
|
72
73
|
spherical_surf: InputPathType,
|
|
74
|
+
subjects: list[str],
|
|
73
75
|
output: str,
|
|
74
76
|
) -> MapAllLabelsLhParameters:
|
|
75
77
|
"""
|
|
@@ -81,6 +83,7 @@ def map_all_labels_lh_params(
|
|
|
81
83
|
fname: The file name to process.
|
|
82
84
|
hemi: The hemisphere to process (usually 'lh' for left hemisphere).
|
|
83
85
|
spherical_surf: The spherical surface file.
|
|
86
|
+
subjects: List of subjects to process.
|
|
84
87
|
output: Output file.
|
|
85
88
|
Returns:
|
|
86
89
|
Parameter dictionary
|
|
@@ -91,6 +94,7 @@ def map_all_labels_lh_params(
|
|
|
91
94
|
"fname": fname,
|
|
92
95
|
"hemi": hemi,
|
|
93
96
|
"spherical_surf": spherical_surf,
|
|
97
|
+
"subjects": subjects,
|
|
94
98
|
"output": output,
|
|
95
99
|
}
|
|
96
100
|
return params
|
|
@@ -110,14 +114,15 @@ def map_all_labels_lh_cargs(
|
|
|
110
114
|
Command-line arguments.
|
|
111
115
|
"""
|
|
112
116
|
cargs = []
|
|
117
|
+
cargs.append("map_all_labels-lh")
|
|
113
118
|
cargs.extend([
|
|
114
119
|
"-lh",
|
|
115
|
-
|
|
120
|
+
params.get("which")
|
|
116
121
|
])
|
|
117
122
|
cargs.append(params.get("fname"))
|
|
118
123
|
cargs.append(params.get("hemi"))
|
|
119
124
|
cargs.append(execution.input_file(params.get("spherical_surf")))
|
|
120
|
-
cargs.
|
|
125
|
+
cargs.extend(params.get("subjects"))
|
|
121
126
|
cargs.append(params.get("output"))
|
|
122
127
|
return cargs
|
|
123
128
|
|
|
@@ -171,6 +176,7 @@ def map_all_labels_lh(
|
|
|
171
176
|
fname: str,
|
|
172
177
|
hemi: str,
|
|
173
178
|
spherical_surf: InputPathType,
|
|
179
|
+
subjects: list[str],
|
|
174
180
|
output: str,
|
|
175
181
|
runner: Runner | None = None,
|
|
176
182
|
) -> MapAllLabelsLhOutputs:
|
|
@@ -187,6 +193,7 @@ def map_all_labels_lh(
|
|
|
187
193
|
fname: The file name to process.
|
|
188
194
|
hemi: The hemisphere to process (usually 'lh' for left hemisphere).
|
|
189
195
|
spherical_surf: The spherical surface file.
|
|
196
|
+
subjects: List of subjects to process.
|
|
190
197
|
output: Output file.
|
|
191
198
|
runner: Command runner.
|
|
192
199
|
Returns:
|
|
@@ -199,6 +206,7 @@ def map_all_labels_lh(
|
|
|
199
206
|
fname=fname,
|
|
200
207
|
hemi=hemi,
|
|
201
208
|
spherical_surf=spherical_surf,
|
|
209
|
+
subjects=subjects,
|
|
202
210
|
output=output,
|
|
203
211
|
)
|
|
204
212
|
return map_all_labels_lh_execute(params, execution)
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
MAP_CENTRAL_SULCUS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="516b76e8b1ac8749a680661e63215cc41d8c82f4.boutiques",
|
|
10
10
|
name="map_central_sulcus",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -263,7 +263,7 @@ def map_central_sulcus_cargs(
|
|
|
263
263
|
Command-line arguments.
|
|
264
264
|
"""
|
|
265
265
|
cargs = []
|
|
266
|
-
cargs.append("
|
|
266
|
+
cargs.append("map_central_sulcus")
|
|
267
267
|
cargs.extend([
|
|
268
268
|
"-subjid",
|
|
269
269
|
params.get("subjid")
|