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
|
DMRI_MERGEPATHS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="73d51f5dfd2648daefced42e8f22083b6b9e5b42.boutiques",
|
|
10
10
|
name="dmri_mergepaths",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -116,7 +116,7 @@ def dmri_mergepaths_cargs(
|
|
|
116
116
|
Command-line arguments.
|
|
117
117
|
"""
|
|
118
118
|
cargs = []
|
|
119
|
-
cargs.append("
|
|
119
|
+
cargs.append("dmri_mergepaths")
|
|
120
120
|
cargs.extend([execution.input_file(f) for f in params.get("input_volumes")])
|
|
121
121
|
if params.get("input_directory") is not None:
|
|
122
122
|
cargs.extend([
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
DMRI_PATHSTATS_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="73f70ca60d1c2b790ac7388127c1b36f4da4bbff.boutiques",
|
|
10
10
|
name="dmri_pathstats",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -184,7 +184,7 @@ def dmri_pathstats_cargs(
|
|
|
184
184
|
Command-line arguments.
|
|
185
185
|
"""
|
|
186
186
|
cargs = []
|
|
187
|
-
cargs.append("
|
|
187
|
+
cargs.append("dmri_pathstats")
|
|
188
188
|
cargs.extend([
|
|
189
189
|
"--intrk",
|
|
190
190
|
execution.input_file(params.get("intrk"))
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
DMRI_STATS_AC_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="9fdd3938d34618874c191c301489c6b70e1c5c5b.boutiques",
|
|
10
10
|
name="dmri_stats_ac",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -122,8 +122,6 @@ def dmri_stats_ac_cargs(
|
|
|
122
122
|
"-c",
|
|
123
123
|
params.get("correspondence_file")
|
|
124
124
|
])
|
|
125
|
-
cargs.append("-m")
|
|
126
|
-
cargs.append("[NUM_MEASURES]")
|
|
127
125
|
cargs.extend([
|
|
128
126
|
"-m",
|
|
129
127
|
*params.get("measures")
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
EXVIVO_HEMI_PROC_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="e3813e1b2b5ac9842148171363015c6a44f9e300.boutiques",
|
|
10
10
|
name="exvivo-hemi-proc",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -18,6 +18,7 @@ ExvivoHemiProcParameters = typing.TypedDict('ExvivoHemiProcParameters', {
|
|
|
18
18
|
"flashdir": str,
|
|
19
19
|
"outdir": str,
|
|
20
20
|
"subject": str,
|
|
21
|
+
"left_hemi": bool,
|
|
21
22
|
"right_hemi": bool,
|
|
22
23
|
"suptent": bool,
|
|
23
24
|
"no_rotate": bool,
|
|
@@ -75,6 +76,7 @@ def exvivo_hemi_proc_params(
|
|
|
75
76
|
flashdir: str,
|
|
76
77
|
outdir: str,
|
|
77
78
|
subject: str,
|
|
79
|
+
left_hemi: bool = False,
|
|
78
80
|
right_hemi: bool = False,
|
|
79
81
|
suptent: bool = False,
|
|
80
82
|
no_rotate: bool = False,
|
|
@@ -94,6 +96,7 @@ def exvivo_hemi_proc_params(
|
|
|
94
96
|
flashdir: Path to the FLASH data directory.
|
|
95
97
|
outdir: Output directory where results will be saved.
|
|
96
98
|
subject: Full path to the subject.
|
|
99
|
+
left_hemi: Process left hemisphere.
|
|
97
100
|
right_hemi: Process right hemisphere.
|
|
98
101
|
suptent: Indicate no tentorium (cblum and bstem) in the sample.
|
|
99
102
|
no_rotate: Indicate rotation is not needed.
|
|
@@ -114,6 +117,7 @@ def exvivo_hemi_proc_params(
|
|
|
114
117
|
"flashdir": flashdir,
|
|
115
118
|
"outdir": outdir,
|
|
116
119
|
"subject": subject,
|
|
120
|
+
"left_hemi": left_hemi,
|
|
117
121
|
"right_hemi": right_hemi,
|
|
118
122
|
"suptent": suptent,
|
|
119
123
|
"no_rotate": no_rotate,
|
|
@@ -159,6 +163,8 @@ def exvivo_hemi_proc_cargs(
|
|
|
159
163
|
"--s",
|
|
160
164
|
params.get("subject")
|
|
161
165
|
])
|
|
166
|
+
if params.get("left_hemi"):
|
|
167
|
+
cargs.append("--lh")
|
|
162
168
|
if params.get("right_hemi"):
|
|
163
169
|
cargs.append("--rh")
|
|
164
170
|
if params.get("suptent"):
|
|
@@ -240,6 +246,7 @@ def exvivo_hemi_proc(
|
|
|
240
246
|
flashdir: str,
|
|
241
247
|
outdir: str,
|
|
242
248
|
subject: str,
|
|
249
|
+
left_hemi: bool = False,
|
|
243
250
|
right_hemi: bool = False,
|
|
244
251
|
suptent: bool = False,
|
|
245
252
|
no_rotate: bool = False,
|
|
@@ -264,6 +271,7 @@ def exvivo_hemi_proc(
|
|
|
264
271
|
flashdir: Path to the FLASH data directory.
|
|
265
272
|
outdir: Output directory where results will be saved.
|
|
266
273
|
subject: Full path to the subject.
|
|
274
|
+
left_hemi: Process left hemisphere.
|
|
267
275
|
right_hemi: Process right hemisphere.
|
|
268
276
|
suptent: Indicate no tentorium (cblum and bstem) in the sample.
|
|
269
277
|
no_rotate: Indicate rotation is not needed.
|
|
@@ -286,6 +294,7 @@ def exvivo_hemi_proc(
|
|
|
286
294
|
flashdir=flashdir,
|
|
287
295
|
outdir=outdir,
|
|
288
296
|
subject=subject,
|
|
297
|
+
left_hemi=left_hemi,
|
|
289
298
|
right_hemi=right_hemi,
|
|
290
299
|
suptent=suptent,
|
|
291
300
|
no_rotate=no_rotate,
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
FIDUCIALS_CALIBRATION_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="b87cb0a61e77503c416b5bd15c7cec1c1ef97456.boutiques",
|
|
10
10
|
name="fiducials_calibration",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -15,6 +15,7 @@ FIDUCIALS_CALIBRATION_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
FiducialsCalibrationParameters = typing.TypedDict('FiducialsCalibrationParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["fiducials_calibration"],
|
|
18
|
+
"qt_plugin_installation": typing.NotRequired[str | None],
|
|
18
19
|
})
|
|
19
20
|
|
|
20
21
|
|
|
@@ -58,17 +59,23 @@ class FiducialsCalibrationOutputs(typing.NamedTuple):
|
|
|
58
59
|
|
|
59
60
|
|
|
60
61
|
def fiducials_calibration_params(
|
|
62
|
+
qt_plugin_installation: str | None = "Check Qt installation and platform plugin availability",
|
|
61
63
|
) -> FiducialsCalibrationParameters:
|
|
62
64
|
"""
|
|
63
65
|
Build parameters.
|
|
64
66
|
|
|
65
67
|
Args:
|
|
68
|
+
qt_plugin_installation: This application requires a functional Qt\
|
|
69
|
+
installation. If it fails to start, reinstalling the application might\
|
|
70
|
+
fix the problem.
|
|
66
71
|
Returns:
|
|
67
72
|
Parameter dictionary
|
|
68
73
|
"""
|
|
69
74
|
params = {
|
|
70
75
|
"__STYXTYPE__": "fiducials_calibration",
|
|
71
76
|
}
|
|
77
|
+
if qt_plugin_installation is not None:
|
|
78
|
+
params["qt_plugin_installation"] = qt_plugin_installation
|
|
72
79
|
return params
|
|
73
80
|
|
|
74
81
|
|
|
@@ -87,6 +94,8 @@ def fiducials_calibration_cargs(
|
|
|
87
94
|
"""
|
|
88
95
|
cargs = []
|
|
89
96
|
cargs.append("fiducials_calibration")
|
|
97
|
+
if params.get("qt_plugin_installation") is not None:
|
|
98
|
+
cargs.append(params.get("qt_plugin_installation"))
|
|
90
99
|
return cargs
|
|
91
100
|
|
|
92
101
|
|
|
@@ -134,6 +143,7 @@ def fiducials_calibration_execute(
|
|
|
134
143
|
|
|
135
144
|
|
|
136
145
|
def fiducials_calibration(
|
|
146
|
+
qt_plugin_installation: str | None = "Check Qt installation and platform plugin availability",
|
|
137
147
|
runner: Runner | None = None,
|
|
138
148
|
) -> FiducialsCalibrationOutputs:
|
|
139
149
|
"""
|
|
@@ -144,6 +154,9 @@ def fiducials_calibration(
|
|
|
144
154
|
URL: https://github.com/freesurfer/freesurfer
|
|
145
155
|
|
|
146
156
|
Args:
|
|
157
|
+
qt_plugin_installation: This application requires a functional Qt\
|
|
158
|
+
installation. If it fails to start, reinstalling the application might\
|
|
159
|
+
fix the problem.
|
|
147
160
|
runner: Command runner.
|
|
148
161
|
Returns:
|
|
149
162
|
NamedTuple of outputs (described in `FiducialsCalibrationOutputs`).
|
|
@@ -151,6 +164,7 @@ def fiducials_calibration(
|
|
|
151
164
|
runner = runner or get_global_runner()
|
|
152
165
|
execution = runner.start_execution(FIDUCIALS_CALIBRATION_METADATA)
|
|
153
166
|
params = fiducials_calibration_params(
|
|
167
|
+
qt_plugin_installation=qt_plugin_installation,
|
|
154
168
|
)
|
|
155
169
|
return fiducials_calibration_execute(params, execution)
|
|
156
170
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
FIDUCIALS_CORRECTION_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="6353e9d7f0b132461e7ac43f5dc929e2584cbb0a.boutiques",
|
|
10
10
|
name="fiducials_correction",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -16,6 +16,7 @@ FIDUCIALS_CORRECTION_METADATA = Metadata(
|
|
|
16
16
|
FiducialsCorrectionParameters = typing.TypedDict('FiducialsCorrectionParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["fiducials_correction"],
|
|
18
18
|
"input_file": InputPathType,
|
|
19
|
+
"output_file": str,
|
|
19
20
|
})
|
|
20
21
|
|
|
21
22
|
|
|
@@ -63,6 +64,7 @@ class FiducialsCorrectionOutputs(typing.NamedTuple):
|
|
|
63
64
|
|
|
64
65
|
def fiducials_correction_params(
|
|
65
66
|
input_file: InputPathType,
|
|
67
|
+
output_file: str,
|
|
66
68
|
) -> FiducialsCorrectionParameters:
|
|
67
69
|
"""
|
|
68
70
|
Build parameters.
|
|
@@ -70,12 +72,14 @@ def fiducials_correction_params(
|
|
|
70
72
|
Args:
|
|
71
73
|
input_file: Input file containing imaging data with fiducial markers to\
|
|
72
74
|
correct.
|
|
75
|
+
output_file: Output file with corrected fiducial markers.
|
|
73
76
|
Returns:
|
|
74
77
|
Parameter dictionary
|
|
75
78
|
"""
|
|
76
79
|
params = {
|
|
77
80
|
"__STYXTYPE__": "fiducials_correction",
|
|
78
81
|
"input_file": input_file,
|
|
82
|
+
"output_file": output_file,
|
|
79
83
|
}
|
|
80
84
|
return params
|
|
81
85
|
|
|
@@ -96,7 +100,7 @@ def fiducials_correction_cargs(
|
|
|
96
100
|
cargs = []
|
|
97
101
|
cargs.append("fiducials_correction")
|
|
98
102
|
cargs.append(execution.input_file(params.get("input_file")))
|
|
99
|
-
cargs.append("
|
|
103
|
+
cargs.append(params.get("output_file"))
|
|
100
104
|
return cargs
|
|
101
105
|
|
|
102
106
|
|
|
@@ -115,7 +119,7 @@ def fiducials_correction_outputs(
|
|
|
115
119
|
"""
|
|
116
120
|
ret = FiducialsCorrectionOutputs(
|
|
117
121
|
root=execution.output_file("."),
|
|
118
|
-
output_file=execution.output_file("
|
|
122
|
+
output_file=execution.output_file(params.get("output_file")),
|
|
119
123
|
)
|
|
120
124
|
return ret
|
|
121
125
|
|
|
@@ -148,6 +152,7 @@ def fiducials_correction_execute(
|
|
|
148
152
|
|
|
149
153
|
def fiducials_correction(
|
|
150
154
|
input_file: InputPathType,
|
|
155
|
+
output_file: str,
|
|
151
156
|
runner: Runner | None = None,
|
|
152
157
|
) -> FiducialsCorrectionOutputs:
|
|
153
158
|
"""
|
|
@@ -162,6 +167,7 @@ def fiducials_correction(
|
|
|
162
167
|
Args:
|
|
163
168
|
input_file: Input file containing imaging data with fiducial markers to\
|
|
164
169
|
correct.
|
|
170
|
+
output_file: Output file with corrected fiducial markers.
|
|
165
171
|
runner: Command runner.
|
|
166
172
|
Returns:
|
|
167
173
|
NamedTuple of outputs (described in `FiducialsCorrectionOutputs`).
|
|
@@ -170,6 +176,7 @@ def fiducials_correction(
|
|
|
170
176
|
execution = runner.start_execution(FIDUCIALS_CORRECTION_METADATA)
|
|
171
177
|
params = fiducials_correction_params(
|
|
172
178
|
input_file=input_file,
|
|
179
|
+
output_file=output_file,
|
|
173
180
|
)
|
|
174
181
|
return fiducials_correction_execute(params, execution)
|
|
175
182
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
FIX_SUBJECT_CORRECTED_RH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="7b7e39c32815a5cef6cf9aad3f4046ba8b47ddb9.boutiques",
|
|
10
10
|
name="fix_subject_corrected-rh",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -93,9 +93,10 @@ def fix_subject_corrected_rh_cargs(
|
|
|
93
93
|
Command-line arguments.
|
|
94
94
|
"""
|
|
95
95
|
cargs = []
|
|
96
|
+
cargs.append("fix_subject_corrected-rh")
|
|
96
97
|
cargs.extend([
|
|
97
98
|
"-rh",
|
|
98
|
-
|
|
99
|
+
params.get("subject_dir")
|
|
99
100
|
])
|
|
100
101
|
return cargs
|
|
101
102
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
FIX_SUBJECT_RH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="d288abc3ea82bec21208e7703917dbd10a9bc4b7.boutiques",
|
|
10
10
|
name="fix_subject-rh",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -95,9 +95,10 @@ def fix_subject_rh_cargs(
|
|
|
95
95
|
Command-line arguments.
|
|
96
96
|
"""
|
|
97
97
|
cargs = []
|
|
98
|
+
cargs.append("fix_subject-rh")
|
|
98
99
|
cargs.extend([
|
|
99
100
|
"-rh",
|
|
100
|
-
|
|
101
|
+
params.get("input_directory")
|
|
101
102
|
])
|
|
102
103
|
if params.get("help_flag"):
|
|
103
104
|
cargs.append("--help")
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
FS_CHECK_VERSION_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="660409ce98a2983c236b82f391b2216637f1c37f.boutiques",
|
|
10
10
|
name="fs-check-version",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -18,7 +18,9 @@ FsCheckVersionParameters = typing.TypedDict('FsCheckVersionParameters', {
|
|
|
18
18
|
"subjects_dir": str,
|
|
19
19
|
"outfile": str,
|
|
20
20
|
"subject": typing.NotRequired[str | None],
|
|
21
|
+
"require_match": bool,
|
|
21
22
|
"no_require_match": bool,
|
|
23
|
+
"test": bool,
|
|
22
24
|
"test_debug": bool,
|
|
23
25
|
})
|
|
24
26
|
|
|
@@ -69,7 +71,9 @@ def fs_check_version_params(
|
|
|
69
71
|
subjects_dir: str,
|
|
70
72
|
outfile: str,
|
|
71
73
|
subject: str | None = None,
|
|
74
|
+
require_match: bool = False,
|
|
72
75
|
no_require_match: bool = False,
|
|
76
|
+
test: bool = False,
|
|
73
77
|
test_debug: bool = False,
|
|
74
78
|
) -> FsCheckVersionParameters:
|
|
75
79
|
"""
|
|
@@ -79,7 +83,9 @@ def fs_check_version_params(
|
|
|
79
83
|
subjects_dir: Subjects directory path.
|
|
80
84
|
outfile: Output file path where result of version check will be written.
|
|
81
85
|
subject: Subject name (optional).
|
|
86
|
+
require_match: Set REQUIRE_FS_MATCH for testing.
|
|
82
87
|
no_require_match: Unset REQUIRE_FS_MATCH for testing.
|
|
88
|
+
test: Go through permutations for testing.
|
|
83
89
|
test_debug: Go through permutations for debugging.
|
|
84
90
|
Returns:
|
|
85
91
|
Parameter dictionary
|
|
@@ -88,7 +94,9 @@ def fs_check_version_params(
|
|
|
88
94
|
"__STYXTYPE__": "fs-check-version",
|
|
89
95
|
"subjects_dir": subjects_dir,
|
|
90
96
|
"outfile": outfile,
|
|
97
|
+
"require_match": require_match,
|
|
91
98
|
"no_require_match": no_require_match,
|
|
99
|
+
"test": test,
|
|
92
100
|
"test_debug": test_debug,
|
|
93
101
|
}
|
|
94
102
|
if subject is not None:
|
|
@@ -124,8 +132,12 @@ def fs_check_version_cargs(
|
|
|
124
132
|
"--s",
|
|
125
133
|
params.get("subject")
|
|
126
134
|
])
|
|
135
|
+
if params.get("require_match"):
|
|
136
|
+
cargs.append("--require-match")
|
|
127
137
|
if params.get("no_require_match"):
|
|
128
138
|
cargs.append("--no-require-match")
|
|
139
|
+
if params.get("test"):
|
|
140
|
+
cargs.append("--test")
|
|
129
141
|
if params.get("test_debug"):
|
|
130
142
|
cargs.append("--test-debug")
|
|
131
143
|
return cargs
|
|
@@ -180,7 +192,9 @@ def fs_check_version(
|
|
|
180
192
|
subjects_dir: str,
|
|
181
193
|
outfile: str,
|
|
182
194
|
subject: str | None = None,
|
|
195
|
+
require_match: bool = False,
|
|
183
196
|
no_require_match: bool = False,
|
|
197
|
+
test: bool = False,
|
|
184
198
|
test_debug: bool = False,
|
|
185
199
|
runner: Runner | None = None,
|
|
186
200
|
) -> FsCheckVersionOutputs:
|
|
@@ -196,7 +210,9 @@ def fs_check_version(
|
|
|
196
210
|
subjects_dir: Subjects directory path.
|
|
197
211
|
outfile: Output file path where result of version check will be written.
|
|
198
212
|
subject: Subject name (optional).
|
|
213
|
+
require_match: Set REQUIRE_FS_MATCH for testing.
|
|
199
214
|
no_require_match: Unset REQUIRE_FS_MATCH for testing.
|
|
215
|
+
test: Go through permutations for testing.
|
|
200
216
|
test_debug: Go through permutations for debugging.
|
|
201
217
|
runner: Command runner.
|
|
202
218
|
Returns:
|
|
@@ -208,7 +224,9 @@ def fs_check_version(
|
|
|
208
224
|
subjects_dir=subjects_dir,
|
|
209
225
|
outfile=outfile,
|
|
210
226
|
subject=subject,
|
|
227
|
+
require_match=require_match,
|
|
211
228
|
no_require_match=no_require_match,
|
|
229
|
+
test=test,
|
|
212
230
|
test_debug=test_debug,
|
|
213
231
|
)
|
|
214
232
|
return fs_check_version_execute(params, execution)
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
FS_SPMREG_GLNXA64_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="92aa0f707d8268c4082f03447b8e27b77445669e.boutiques",
|
|
10
10
|
name="fs_spmreg.glnxa64",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -15,6 +15,8 @@ FS_SPMREG_GLNXA64_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
FsSpmregGlnxa64Parameters = typing.TypedDict('FsSpmregGlnxa64Parameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["fs_spmreg.glnxa64"],
|
|
18
|
+
"input_volume": InputPathType,
|
|
19
|
+
"output_matrix": str,
|
|
18
20
|
})
|
|
19
21
|
|
|
20
22
|
|
|
@@ -61,16 +63,22 @@ class FsSpmregGlnxa64Outputs(typing.NamedTuple):
|
|
|
61
63
|
|
|
62
64
|
|
|
63
65
|
def fs_spmreg_glnxa64_params(
|
|
66
|
+
input_volume: InputPathType,
|
|
67
|
+
output_matrix: str = "output.mat",
|
|
64
68
|
) -> FsSpmregGlnxa64Parameters:
|
|
65
69
|
"""
|
|
66
70
|
Build parameters.
|
|
67
71
|
|
|
68
72
|
Args:
|
|
73
|
+
input_volume: Input anatomical volume.
|
|
74
|
+
output_matrix: Output registration matrix.
|
|
69
75
|
Returns:
|
|
70
76
|
Parameter dictionary
|
|
71
77
|
"""
|
|
72
78
|
params = {
|
|
73
79
|
"__STYXTYPE__": "fs_spmreg.glnxa64",
|
|
80
|
+
"input_volume": input_volume,
|
|
81
|
+
"output_matrix": output_matrix,
|
|
74
82
|
}
|
|
75
83
|
return params
|
|
76
84
|
|
|
@@ -89,8 +97,9 @@ def fs_spmreg_glnxa64_cargs(
|
|
|
89
97
|
Command-line arguments.
|
|
90
98
|
"""
|
|
91
99
|
cargs = []
|
|
92
|
-
cargs.append("fs_spmreg")
|
|
93
|
-
cargs.append("
|
|
100
|
+
cargs.append("fs_spmreg.glnxa64")
|
|
101
|
+
cargs.append(execution.input_file(params.get("input_volume")))
|
|
102
|
+
cargs.append(params.get("output_matrix"))
|
|
94
103
|
return cargs
|
|
95
104
|
|
|
96
105
|
|
|
@@ -109,7 +118,7 @@ def fs_spmreg_glnxa64_outputs(
|
|
|
109
118
|
"""
|
|
110
119
|
ret = FsSpmregGlnxa64Outputs(
|
|
111
120
|
root=execution.output_file("."),
|
|
112
|
-
output_matrix_file=execution.output_file("
|
|
121
|
+
output_matrix_file=execution.output_file(params.get("output_matrix")),
|
|
113
122
|
)
|
|
114
123
|
return ret
|
|
115
124
|
|
|
@@ -139,6 +148,8 @@ def fs_spmreg_glnxa64_execute(
|
|
|
139
148
|
|
|
140
149
|
|
|
141
150
|
def fs_spmreg_glnxa64(
|
|
151
|
+
input_volume: InputPathType,
|
|
152
|
+
output_matrix: str = "output.mat",
|
|
142
153
|
runner: Runner | None = None,
|
|
143
154
|
) -> FsSpmregGlnxa64Outputs:
|
|
144
155
|
"""
|
|
@@ -149,6 +160,8 @@ def fs_spmreg_glnxa64(
|
|
|
149
160
|
URL: https://github.com/freesurfer/freesurfer
|
|
150
161
|
|
|
151
162
|
Args:
|
|
163
|
+
input_volume: Input anatomical volume.
|
|
164
|
+
output_matrix: Output registration matrix.
|
|
152
165
|
runner: Command runner.
|
|
153
166
|
Returns:
|
|
154
167
|
NamedTuple of outputs (described in `FsSpmregGlnxa64Outputs`).
|
|
@@ -156,6 +169,8 @@ def fs_spmreg_glnxa64(
|
|
|
156
169
|
runner = runner or get_global_runner()
|
|
157
170
|
execution = runner.start_execution(FS_SPMREG_GLNXA64_METADATA)
|
|
158
171
|
params = fs_spmreg_glnxa64_params(
|
|
172
|
+
input_volume=input_volume,
|
|
173
|
+
output_matrix=output_matrix,
|
|
159
174
|
)
|
|
160
175
|
return fs_spmreg_glnxa64_execute(params, execution)
|
|
161
176
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
FS_TEMP_FILE_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="66a8be9a7267979a485ac7d37ceb69ea952d8f36.boutiques",
|
|
10
10
|
name="fs_temp_file",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -15,9 +15,12 @@ FS_TEMP_FILE_METADATA = Metadata(
|
|
|
15
15
|
|
|
16
16
|
FsTempFileParameters = typing.TypedDict('FsTempFileParameters', {
|
|
17
17
|
"__STYX_TYPE__": typing.Literal["fs_temp_file"],
|
|
18
|
+
"base_dir": typing.NotRequired[str | None],
|
|
18
19
|
"base_dir_alt": typing.NotRequired[str | None],
|
|
20
|
+
"suffix": typing.NotRequired[str | None],
|
|
19
21
|
"suffix_alt": typing.NotRequired[str | None],
|
|
20
22
|
"scratch": bool,
|
|
23
|
+
"help": bool,
|
|
21
24
|
"help_alt": bool,
|
|
22
25
|
})
|
|
23
26
|
|
|
@@ -62,19 +65,25 @@ class FsTempFileOutputs(typing.NamedTuple):
|
|
|
62
65
|
|
|
63
66
|
|
|
64
67
|
def fs_temp_file_params(
|
|
68
|
+
base_dir: str | None = None,
|
|
65
69
|
base_dir_alt: str | None = None,
|
|
70
|
+
suffix: str | None = None,
|
|
66
71
|
suffix_alt: str | None = None,
|
|
67
72
|
scratch: bool = False,
|
|
73
|
+
help_: bool = False,
|
|
68
74
|
help_alt: bool = False,
|
|
69
75
|
) -> FsTempFileParameters:
|
|
70
76
|
"""
|
|
71
77
|
Build parameters.
|
|
72
78
|
|
|
73
79
|
Args:
|
|
80
|
+
base_dir: Manually specify base temporary directory.
|
|
74
81
|
base_dir_alt: Manually specify base temporary directory.
|
|
82
|
+
suffix: Optional file suffix.
|
|
75
83
|
suffix_alt: Optional file suffix.
|
|
76
84
|
scratch: Use /scratch directory if available, but FS_TMPDIR takes\
|
|
77
85
|
priority.
|
|
86
|
+
help_: Print help text and exit.
|
|
78
87
|
help_alt: Print help text and exit.
|
|
79
88
|
Returns:
|
|
80
89
|
Parameter dictionary
|
|
@@ -82,10 +91,15 @@ def fs_temp_file_params(
|
|
|
82
91
|
params = {
|
|
83
92
|
"__STYXTYPE__": "fs_temp_file",
|
|
84
93
|
"scratch": scratch,
|
|
94
|
+
"help": help_,
|
|
85
95
|
"help_alt": help_alt,
|
|
86
96
|
}
|
|
97
|
+
if base_dir is not None:
|
|
98
|
+
params["base_dir"] = base_dir
|
|
87
99
|
if base_dir_alt is not None:
|
|
88
100
|
params["base_dir_alt"] = base_dir_alt
|
|
101
|
+
if suffix is not None:
|
|
102
|
+
params["suffix"] = suffix
|
|
89
103
|
if suffix_alt is not None:
|
|
90
104
|
params["suffix_alt"] = suffix_alt
|
|
91
105
|
return params
|
|
@@ -106,11 +120,21 @@ def fs_temp_file_cargs(
|
|
|
106
120
|
"""
|
|
107
121
|
cargs = []
|
|
108
122
|
cargs.append("fs_temp_file")
|
|
123
|
+
if params.get("base_dir") is not None:
|
|
124
|
+
cargs.extend([
|
|
125
|
+
"-b",
|
|
126
|
+
params.get("base_dir")
|
|
127
|
+
])
|
|
109
128
|
if params.get("base_dir_alt") is not None:
|
|
110
129
|
cargs.extend([
|
|
111
130
|
"--base",
|
|
112
131
|
params.get("base_dir_alt")
|
|
113
132
|
])
|
|
133
|
+
if params.get("suffix") is not None:
|
|
134
|
+
cargs.extend([
|
|
135
|
+
"-s",
|
|
136
|
+
params.get("suffix")
|
|
137
|
+
])
|
|
114
138
|
if params.get("suffix_alt") is not None:
|
|
115
139
|
cargs.extend([
|
|
116
140
|
"--suffix",
|
|
@@ -118,6 +142,8 @@ def fs_temp_file_cargs(
|
|
|
118
142
|
])
|
|
119
143
|
if params.get("scratch"):
|
|
120
144
|
cargs.append("--scratch")
|
|
145
|
+
if params.get("help"):
|
|
146
|
+
cargs.append("-h")
|
|
121
147
|
if params.get("help_alt"):
|
|
122
148
|
cargs.append("--help")
|
|
123
149
|
return cargs
|
|
@@ -168,9 +194,12 @@ def fs_temp_file_execute(
|
|
|
168
194
|
|
|
169
195
|
|
|
170
196
|
def fs_temp_file(
|
|
197
|
+
base_dir: str | None = None,
|
|
171
198
|
base_dir_alt: str | None = None,
|
|
199
|
+
suffix: str | None = None,
|
|
172
200
|
suffix_alt: str | None = None,
|
|
173
201
|
scratch: bool = False,
|
|
202
|
+
help_: bool = False,
|
|
174
203
|
help_alt: bool = False,
|
|
175
204
|
runner: Runner | None = None,
|
|
176
205
|
) -> FsTempFileOutputs:
|
|
@@ -183,10 +212,13 @@ def fs_temp_file(
|
|
|
183
212
|
URL: https://github.com/freesurfer/freesurfer
|
|
184
213
|
|
|
185
214
|
Args:
|
|
215
|
+
base_dir: Manually specify base temporary directory.
|
|
186
216
|
base_dir_alt: Manually specify base temporary directory.
|
|
217
|
+
suffix: Optional file suffix.
|
|
187
218
|
suffix_alt: Optional file suffix.
|
|
188
219
|
scratch: Use /scratch directory if available, but FS_TMPDIR takes\
|
|
189
220
|
priority.
|
|
221
|
+
help_: Print help text and exit.
|
|
190
222
|
help_alt: Print help text and exit.
|
|
191
223
|
runner: Command runner.
|
|
192
224
|
Returns:
|
|
@@ -195,9 +227,12 @@ def fs_temp_file(
|
|
|
195
227
|
runner = runner or get_global_runner()
|
|
196
228
|
execution = runner.start_execution(FS_TEMP_FILE_METADATA)
|
|
197
229
|
params = fs_temp_file_params(
|
|
230
|
+
base_dir=base_dir,
|
|
198
231
|
base_dir_alt=base_dir_alt,
|
|
232
|
+
suffix=suffix,
|
|
199
233
|
suffix_alt=suffix_alt,
|
|
200
234
|
scratch=scratch,
|
|
235
|
+
help_=help_,
|
|
201
236
|
help_alt=help_alt,
|
|
202
237
|
)
|
|
203
238
|
return fs_temp_file_execute(params, execution)
|