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
|
@@ -36,7 +36,6 @@ from .bblabel import *
|
|
|
36
36
|
from .bbmask import *
|
|
37
37
|
from .bbregister import *
|
|
38
38
|
from .bedpostx_mgh import *
|
|
39
|
-
from .bet_fsl import *
|
|
40
39
|
from .beta2sxa import *
|
|
41
40
|
from .biasfield import *
|
|
42
41
|
from .bmedits2surf import *
|
|
@@ -90,7 +89,6 @@ from .dmri_trk2trk import *
|
|
|
90
89
|
from .dmri_violin_plots import *
|
|
91
90
|
from .dmri_vox2vox import *
|
|
92
91
|
from .dt_recon import *
|
|
93
|
-
from .epidewarp_fsl import *
|
|
94
92
|
from .export_gcam import *
|
|
95
93
|
from .extract_seg_waveform import *
|
|
96
94
|
from .exvivo_hemi_proc import *
|
|
@@ -104,7 +102,6 @@ from .fix_subject_corrected_rh import *
|
|
|
104
102
|
from .fix_subject_rh import *
|
|
105
103
|
from .fixup_mni_paths import *
|
|
106
104
|
from .flip_4dfp import *
|
|
107
|
-
from .flirt_fsl import *
|
|
108
105
|
from .flirt_newdefault_20080811_sch import *
|
|
109
106
|
from .fname2ext import *
|
|
110
107
|
from .fname2stem import *
|
|
@@ -121,19 +118,13 @@ from .fs_time import *
|
|
|
121
118
|
from .fs_tutorial_data import *
|
|
122
119
|
from .fs_update import *
|
|
123
120
|
from .fscalc import *
|
|
124
|
-
from .fscalc_fsl import *
|
|
125
121
|
from .fsdcmdecompress import *
|
|
126
|
-
from .fsfirst_fsl import *
|
|
127
122
|
from .fsl_5_0_2_xyztrans_sch import *
|
|
128
123
|
from .fsl_label2voxel import *
|
|
129
124
|
from .fsl_rigid_register import *
|
|
130
125
|
from .fsl_sub_mgh import *
|
|
131
|
-
from .fslmaths_fsl import *
|
|
132
|
-
from .fslorient_fsl import *
|
|
133
126
|
from .fslregister import *
|
|
134
|
-
from .fslswapdim_fsl import *
|
|
135
127
|
from .fspalm import *
|
|
136
|
-
from .fspython import *
|
|
137
128
|
from .fsr_coreg import *
|
|
138
129
|
from .fsr_getxopts import *
|
|
139
130
|
from .fsr_import import *
|
|
@@ -361,7 +352,6 @@ from .mri_modify import *
|
|
|
361
352
|
from .mri_morphology import *
|
|
362
353
|
from .mri_motion_correct import *
|
|
363
354
|
from .mri_motion_correct2 import *
|
|
364
|
-
from .mri_motion_correct_fsl import *
|
|
365
355
|
from .mri_ms_fitparms import *
|
|
366
356
|
from .mri_nl_align import *
|
|
367
357
|
from .mri_nl_align_binary import *
|
|
@@ -652,7 +642,6 @@ from .segpons import *
|
|
|
652
642
|
from .setlabelstat import *
|
|
653
643
|
from .sfa2fieldsign import *
|
|
654
644
|
from .slicedelay import *
|
|
655
|
-
from .slicetimer_fsl import *
|
|
656
645
|
from .sphere_subject import *
|
|
657
646
|
from .sphere_subject_lh import *
|
|
658
647
|
from .sphere_subject_rh import *
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
ANNOT2STD_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="2c9123403463828b0f1e87c964b86cb68c130b07.boutiques",
|
|
10
10
|
name="annot2std",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -20,11 +20,14 @@ Annot2stdParameters = typing.TypedDict('Annot2stdParameters', {
|
|
|
20
20
|
"fsgd_file": typing.NotRequired[InputPathType | None],
|
|
21
21
|
"subject_list_file": typing.NotRequired[InputPathType | None],
|
|
22
22
|
"target": typing.NotRequired[str | None],
|
|
23
|
+
"left_hemisphere": bool,
|
|
23
24
|
"right_hemisphere": bool,
|
|
24
25
|
"xhemi": bool,
|
|
25
26
|
"surfreg": typing.NotRequired[str | None],
|
|
26
27
|
"srcsurfreg": typing.NotRequired[str | None],
|
|
27
28
|
"trgsurfreg": typing.NotRequired[str | None],
|
|
29
|
+
"annotname": typing.NotRequired[str | None],
|
|
30
|
+
"aparc": bool,
|
|
28
31
|
"a2009s": bool,
|
|
29
32
|
"segmentation": typing.NotRequired[str | None],
|
|
30
33
|
"stack": typing.NotRequired[str | None],
|
|
@@ -85,11 +88,14 @@ def annot2std_params(
|
|
|
85
88
|
fsgd_file: InputPathType | None = None,
|
|
86
89
|
subject_list_file: InputPathType | None = None,
|
|
87
90
|
target: str | None = None,
|
|
91
|
+
left_hemisphere: bool = False,
|
|
88
92
|
right_hemisphere: bool = False,
|
|
89
93
|
xhemi: bool = False,
|
|
90
94
|
surfreg: str | None = None,
|
|
91
95
|
srcsurfreg: str | None = None,
|
|
92
96
|
trgsurfreg: str | None = None,
|
|
97
|
+
annotname: str | None = None,
|
|
98
|
+
aparc: bool = False,
|
|
93
99
|
a2009s: bool = False,
|
|
94
100
|
segmentation: str | None = None,
|
|
95
101
|
stack: str | None = None,
|
|
@@ -106,11 +112,14 @@ def annot2std_params(
|
|
|
106
112
|
fsgd_file: FSGD file for group descriptor.
|
|
107
113
|
subject_list_file: Subject list file.
|
|
108
114
|
target: Target subject (e.g., fsaverage).
|
|
115
|
+
left_hemisphere: Use left hemisphere.
|
|
109
116
|
right_hemisphere: Use right hemisphere.
|
|
110
117
|
xhemi: For interhemispheric analysis.
|
|
111
118
|
surfreg: Surface registration type (default is sphere.reg).
|
|
112
119
|
srcsurfreg: Source surface registration type (default is sphere.reg).
|
|
113
120
|
trgsurfreg: Target surface registration type (default is sphere.reg).
|
|
121
|
+
annotname: Input annotation name (?h.annotname.annot).
|
|
122
|
+
aparc: Annotation name set to aparc.
|
|
114
123
|
a2009s: Annotation name set to aparc.a2009s.
|
|
115
124
|
segmentation: Save output as a surface segmentation (2 frames, second =\
|
|
116
125
|
p).
|
|
@@ -124,8 +133,10 @@ def annot2std_params(
|
|
|
124
133
|
"__STYXTYPE__": "annot2std",
|
|
125
134
|
"output_annot_path": output_annot_path,
|
|
126
135
|
"subjects": subjects,
|
|
136
|
+
"left_hemisphere": left_hemisphere,
|
|
127
137
|
"right_hemisphere": right_hemisphere,
|
|
128
138
|
"xhemi": xhemi,
|
|
139
|
+
"aparc": aparc,
|
|
129
140
|
"a2009s": a2009s,
|
|
130
141
|
"help": help_,
|
|
131
142
|
"version": version,
|
|
@@ -142,6 +153,8 @@ def annot2std_params(
|
|
|
142
153
|
params["srcsurfreg"] = srcsurfreg
|
|
143
154
|
if trgsurfreg is not None:
|
|
144
155
|
params["trgsurfreg"] = trgsurfreg
|
|
156
|
+
if annotname is not None:
|
|
157
|
+
params["annotname"] = annotname
|
|
145
158
|
if segmentation is not None:
|
|
146
159
|
params["segmentation"] = segmentation
|
|
147
160
|
if stack is not None:
|
|
@@ -187,6 +200,8 @@ def annot2std_cargs(
|
|
|
187
200
|
"--t",
|
|
188
201
|
params.get("target")
|
|
189
202
|
])
|
|
203
|
+
if params.get("left_hemisphere"):
|
|
204
|
+
cargs.append("--lh")
|
|
190
205
|
if params.get("right_hemisphere"):
|
|
191
206
|
cargs.append("--rh")
|
|
192
207
|
if params.get("xhemi"):
|
|
@@ -206,6 +221,13 @@ def annot2std_cargs(
|
|
|
206
221
|
"--trgsurfreg",
|
|
207
222
|
params.get("trgsurfreg")
|
|
208
223
|
])
|
|
224
|
+
if params.get("annotname") is not None:
|
|
225
|
+
cargs.extend([
|
|
226
|
+
"--a",
|
|
227
|
+
params.get("annotname")
|
|
228
|
+
])
|
|
229
|
+
if params.get("aparc"):
|
|
230
|
+
cargs.append("--aparc")
|
|
209
231
|
if params.get("a2009s"):
|
|
210
232
|
cargs.append("--a2009s")
|
|
211
233
|
if params.get("segmentation") is not None:
|
|
@@ -279,11 +301,14 @@ def annot2std(
|
|
|
279
301
|
fsgd_file: InputPathType | None = None,
|
|
280
302
|
subject_list_file: InputPathType | None = None,
|
|
281
303
|
target: str | None = None,
|
|
304
|
+
left_hemisphere: bool = False,
|
|
282
305
|
right_hemisphere: bool = False,
|
|
283
306
|
xhemi: bool = False,
|
|
284
307
|
surfreg: str | None = None,
|
|
285
308
|
srcsurfreg: str | None = None,
|
|
286
309
|
trgsurfreg: str | None = None,
|
|
310
|
+
annotname: str | None = None,
|
|
311
|
+
aparc: bool = False,
|
|
287
312
|
a2009s: bool = False,
|
|
288
313
|
segmentation: str | None = None,
|
|
289
314
|
stack: str | None = None,
|
|
@@ -307,11 +332,14 @@ def annot2std(
|
|
|
307
332
|
fsgd_file: FSGD file for group descriptor.
|
|
308
333
|
subject_list_file: Subject list file.
|
|
309
334
|
target: Target subject (e.g., fsaverage).
|
|
335
|
+
left_hemisphere: Use left hemisphere.
|
|
310
336
|
right_hemisphere: Use right hemisphere.
|
|
311
337
|
xhemi: For interhemispheric analysis.
|
|
312
338
|
surfreg: Surface registration type (default is sphere.reg).
|
|
313
339
|
srcsurfreg: Source surface registration type (default is sphere.reg).
|
|
314
340
|
trgsurfreg: Target surface registration type (default is sphere.reg).
|
|
341
|
+
annotname: Input annotation name (?h.annotname.annot).
|
|
342
|
+
aparc: Annotation name set to aparc.
|
|
315
343
|
a2009s: Annotation name set to aparc.a2009s.
|
|
316
344
|
segmentation: Save output as a surface segmentation (2 frames, second =\
|
|
317
345
|
p).
|
|
@@ -330,11 +358,14 @@ def annot2std(
|
|
|
330
358
|
fsgd_file=fsgd_file,
|
|
331
359
|
subject_list_file=subject_list_file,
|
|
332
360
|
target=target,
|
|
361
|
+
left_hemisphere=left_hemisphere,
|
|
333
362
|
right_hemisphere=right_hemisphere,
|
|
334
363
|
xhemi=xhemi,
|
|
335
364
|
surfreg=surfreg,
|
|
336
365
|
srcsurfreg=srcsurfreg,
|
|
337
366
|
trgsurfreg=trgsurfreg,
|
|
367
|
+
annotname=annotname,
|
|
368
|
+
aparc=aparc,
|
|
338
369
|
a2009s=a2009s,
|
|
339
370
|
segmentation=segmentation,
|
|
340
371
|
stack=stack,
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
APARC2FEAT_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="0ac9c7d7d17f6bd66cfbc4ec10b36ae576f35039.boutiques",
|
|
10
10
|
name="aparc2feat",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -22,6 +22,8 @@ Aparc2featParameters = typing.TypedDict('Aparc2featParameters', {
|
|
|
22
22
|
"annot_a2005s_flag": bool,
|
|
23
23
|
"annot_a2009s_flag": bool,
|
|
24
24
|
"debug_flag": bool,
|
|
25
|
+
"help_flag": bool,
|
|
26
|
+
"version_flag": bool,
|
|
25
27
|
})
|
|
26
28
|
|
|
27
29
|
|
|
@@ -77,6 +79,8 @@ def aparc2feat_params(
|
|
|
77
79
|
annot_a2005s_flag: bool = False,
|
|
78
80
|
annot_a2009s_flag: bool = False,
|
|
79
81
|
debug_flag: bool = False,
|
|
82
|
+
help_flag: bool = False,
|
|
83
|
+
version_flag: bool = False,
|
|
80
84
|
) -> Aparc2featParameters:
|
|
81
85
|
"""
|
|
82
86
|
Build parameters.
|
|
@@ -91,6 +95,8 @@ def aparc2feat_params(
|
|
|
91
95
|
annot_a2005s_flag: Specify annotation = aparc.a2005s.
|
|
92
96
|
annot_a2009s_flag: Specify annotation = aparc.a2009s.
|
|
93
97
|
debug_flag: Turn on debugging.
|
|
98
|
+
help_flag: Print help and exit.
|
|
99
|
+
version_flag: Print version and exit.
|
|
94
100
|
Returns:
|
|
95
101
|
Parameter dictionary
|
|
96
102
|
"""
|
|
@@ -100,6 +106,8 @@ def aparc2feat_params(
|
|
|
100
106
|
"annot_a2005s_flag": annot_a2005s_flag,
|
|
101
107
|
"annot_a2009s_flag": annot_a2009s_flag,
|
|
102
108
|
"debug_flag": debug_flag,
|
|
109
|
+
"help_flag": help_flag,
|
|
110
|
+
"version_flag": version_flag,
|
|
103
111
|
}
|
|
104
112
|
if featdirfile is not None:
|
|
105
113
|
params["featdirfile"] = featdirfile
|
|
@@ -150,6 +158,10 @@ def aparc2feat_cargs(
|
|
|
150
158
|
cargs.append("--a2009s")
|
|
151
159
|
if params.get("debug_flag"):
|
|
152
160
|
cargs.append("--debug")
|
|
161
|
+
if params.get("help_flag"):
|
|
162
|
+
cargs.append("--help")
|
|
163
|
+
if params.get("version_flag"):
|
|
164
|
+
cargs.append("--version")
|
|
153
165
|
return cargs
|
|
154
166
|
|
|
155
167
|
|
|
@@ -207,6 +219,8 @@ def aparc2feat(
|
|
|
207
219
|
annot_a2005s_flag: bool = False,
|
|
208
220
|
annot_a2009s_flag: bool = False,
|
|
209
221
|
debug_flag: bool = False,
|
|
222
|
+
help_flag: bool = False,
|
|
223
|
+
version_flag: bool = False,
|
|
210
224
|
runner: Runner | None = None,
|
|
211
225
|
) -> Aparc2featOutputs:
|
|
212
226
|
"""
|
|
@@ -227,6 +241,8 @@ def aparc2feat(
|
|
|
227
241
|
annot_a2005s_flag: Specify annotation = aparc.a2005s.
|
|
228
242
|
annot_a2009s_flag: Specify annotation = aparc.a2009s.
|
|
229
243
|
debug_flag: Turn on debugging.
|
|
244
|
+
help_flag: Print help and exit.
|
|
245
|
+
version_flag: Print version and exit.
|
|
230
246
|
runner: Command runner.
|
|
231
247
|
Returns:
|
|
232
248
|
NamedTuple of outputs (described in `Aparc2featOutputs`).
|
|
@@ -241,6 +257,8 @@ def aparc2feat(
|
|
|
241
257
|
annot_a2005s_flag=annot_a2005s_flag,
|
|
242
258
|
annot_a2009s_flag=annot_a2009s_flag,
|
|
243
259
|
debug_flag=debug_flag,
|
|
260
|
+
help_flag=help_flag,
|
|
261
|
+
version_flag=version_flag,
|
|
244
262
|
)
|
|
245
263
|
return aparc2feat_execute(params, execution)
|
|
246
264
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
BBREGISTER_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="dc717dfae108a6dd8224d23542be08c7135f2602.boutiques",
|
|
10
10
|
name="bbregister",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -18,7 +18,19 @@ BbregisterParameters = typing.TypedDict('BbregisterParameters', {
|
|
|
18
18
|
"subject": str,
|
|
19
19
|
"moveable_volume": InputPathType,
|
|
20
20
|
"reg_file": str,
|
|
21
|
+
"contrast_type_t1": bool,
|
|
21
22
|
"contrast_type_t2": bool,
|
|
23
|
+
"vsm": typing.NotRequired[InputPathType | None],
|
|
24
|
+
"init_coreg": bool,
|
|
25
|
+
"no_coreg_ref_mask": bool,
|
|
26
|
+
"init_header": bool,
|
|
27
|
+
"init_reg": typing.NotRequired[InputPathType | None],
|
|
28
|
+
"intvol": typing.NotRequired[InputPathType | None],
|
|
29
|
+
"mid_frame": bool,
|
|
30
|
+
"frame_no": typing.NotRequired[float | None],
|
|
31
|
+
"template_out": typing.NotRequired[str | None],
|
|
32
|
+
"o_outvol": typing.NotRequired[str | None],
|
|
33
|
+
"s_from_reg": bool,
|
|
22
34
|
})
|
|
23
35
|
|
|
24
36
|
|
|
@@ -62,7 +74,7 @@ class BbregisterOutputs(typing.NamedTuple):
|
|
|
62
74
|
"""Output root folder. This is the root folder for all outputs."""
|
|
63
75
|
reg_output: OutputPathType
|
|
64
76
|
"""Output registration file in dat or lta format."""
|
|
65
|
-
out_volume: OutputPathType
|
|
77
|
+
out_volume: OutputPathType | None
|
|
66
78
|
"""Resampled moveable volume."""
|
|
67
79
|
|
|
68
80
|
|
|
@@ -70,7 +82,19 @@ def bbregister_params(
|
|
|
70
82
|
subject: str,
|
|
71
83
|
moveable_volume: InputPathType,
|
|
72
84
|
reg_file: str,
|
|
85
|
+
contrast_type_t1: bool = False,
|
|
73
86
|
contrast_type_t2: bool = False,
|
|
87
|
+
vsm: InputPathType | None = None,
|
|
88
|
+
init_coreg: bool = False,
|
|
89
|
+
no_coreg_ref_mask: bool = False,
|
|
90
|
+
init_header: bool = False,
|
|
91
|
+
init_reg: InputPathType | None = None,
|
|
92
|
+
intvol: InputPathType | None = None,
|
|
93
|
+
mid_frame: bool = False,
|
|
94
|
+
frame_no: float | None = None,
|
|
95
|
+
template_out: str | None = None,
|
|
96
|
+
o_outvol: str | None = None,
|
|
97
|
+
s_from_reg: bool = False,
|
|
74
98
|
) -> BbregisterParameters:
|
|
75
99
|
"""
|
|
76
100
|
Build parameters.
|
|
@@ -81,8 +105,24 @@ def bbregister_params(
|
|
|
81
105
|
E.g., fMRI volume used for motion correction.
|
|
82
106
|
reg_file: Output FreeSurfer registration file (tkregister-style or LTA\
|
|
83
107
|
format).
|
|
108
|
+
contrast_type_t1: Assume T1 contrast, White Matter brighter than Grey\
|
|
109
|
+
Matter.
|
|
84
110
|
contrast_type_t2: Assume T2 contrast, Grey Matter brighter than White\
|
|
85
111
|
Matter. Same as --bold and --dti.
|
|
112
|
+
vsm: Include B0 distortion correction. A voxel shift map can be created\
|
|
113
|
+
with the epidewarp.fsl script.
|
|
114
|
+
init_coreg: Initialize with FreeSurfer mri_coreg program.
|
|
115
|
+
no_coreg_ref_mask: Do not use aparc+aseg.mgz as a reference mask.
|
|
116
|
+
init_header: Use geometry info for close voxel-to-voxel registration.\
|
|
117
|
+
Typically valid if acquired in same session.
|
|
118
|
+
init_reg: Supply an initial registration matrix; can be LTA format.
|
|
119
|
+
intvol: Volume used as an intermediate during registration. Useful for\
|
|
120
|
+
partial field-of-view volumes.
|
|
121
|
+
mid_frame: Register to middle frame (not with --frame option).
|
|
122
|
+
frame_no: Register to specified frame (default is 0=1st).
|
|
123
|
+
template_out: Save template (beneficial with --frame).
|
|
124
|
+
o_outvol: Resample moveable volume and save as specified output volume.
|
|
125
|
+
s_from_reg: Get subject name from registration file.
|
|
86
126
|
Returns:
|
|
87
127
|
Parameter dictionary
|
|
88
128
|
"""
|
|
@@ -91,8 +131,26 @@ def bbregister_params(
|
|
|
91
131
|
"subject": subject,
|
|
92
132
|
"moveable_volume": moveable_volume,
|
|
93
133
|
"reg_file": reg_file,
|
|
134
|
+
"contrast_type_t1": contrast_type_t1,
|
|
94
135
|
"contrast_type_t2": contrast_type_t2,
|
|
136
|
+
"init_coreg": init_coreg,
|
|
137
|
+
"no_coreg_ref_mask": no_coreg_ref_mask,
|
|
138
|
+
"init_header": init_header,
|
|
139
|
+
"mid_frame": mid_frame,
|
|
140
|
+
"s_from_reg": s_from_reg,
|
|
95
141
|
}
|
|
142
|
+
if vsm is not None:
|
|
143
|
+
params["vsm"] = vsm
|
|
144
|
+
if init_reg is not None:
|
|
145
|
+
params["init_reg"] = init_reg
|
|
146
|
+
if intvol is not None:
|
|
147
|
+
params["intvol"] = intvol
|
|
148
|
+
if frame_no is not None:
|
|
149
|
+
params["frame_no"] = frame_no
|
|
150
|
+
if template_out is not None:
|
|
151
|
+
params["template_out"] = template_out
|
|
152
|
+
if o_outvol is not None:
|
|
153
|
+
params["o_outvol"] = o_outvol
|
|
96
154
|
return params
|
|
97
155
|
|
|
98
156
|
|
|
@@ -123,9 +181,50 @@ def bbregister_cargs(
|
|
|
123
181
|
"--reg",
|
|
124
182
|
params.get("reg_file")
|
|
125
183
|
])
|
|
184
|
+
if params.get("contrast_type_t1"):
|
|
185
|
+
cargs.append("--t1")
|
|
126
186
|
if params.get("contrast_type_t2"):
|
|
127
187
|
cargs.append("--t2")
|
|
128
|
-
|
|
188
|
+
if params.get("vsm") is not None:
|
|
189
|
+
cargs.extend([
|
|
190
|
+
"--vsm",
|
|
191
|
+
execution.input_file(params.get("vsm"))
|
|
192
|
+
])
|
|
193
|
+
if params.get("init_coreg"):
|
|
194
|
+
cargs.append("--init-coreg")
|
|
195
|
+
if params.get("no_coreg_ref_mask"):
|
|
196
|
+
cargs.append("--no-coreg-ref-mask")
|
|
197
|
+
if params.get("init_header"):
|
|
198
|
+
cargs.append("--init-header")
|
|
199
|
+
if params.get("init_reg") is not None:
|
|
200
|
+
cargs.extend([
|
|
201
|
+
"--init-reg",
|
|
202
|
+
execution.input_file(params.get("init_reg"))
|
|
203
|
+
])
|
|
204
|
+
if params.get("intvol") is not None:
|
|
205
|
+
cargs.extend([
|
|
206
|
+
"--int",
|
|
207
|
+
execution.input_file(params.get("intvol"))
|
|
208
|
+
])
|
|
209
|
+
if params.get("mid_frame"):
|
|
210
|
+
cargs.append("--mid-frame")
|
|
211
|
+
if params.get("frame_no") is not None:
|
|
212
|
+
cargs.extend([
|
|
213
|
+
"--frame",
|
|
214
|
+
str(params.get("frame_no"))
|
|
215
|
+
])
|
|
216
|
+
if params.get("template_out") is not None:
|
|
217
|
+
cargs.extend([
|
|
218
|
+
"--template-out",
|
|
219
|
+
params.get("template_out")
|
|
220
|
+
])
|
|
221
|
+
if params.get("o_outvol") is not None:
|
|
222
|
+
cargs.extend([
|
|
223
|
+
"--o",
|
|
224
|
+
params.get("o_outvol")
|
|
225
|
+
])
|
|
226
|
+
if params.get("s_from_reg"):
|
|
227
|
+
cargs.append("--s-from-reg")
|
|
129
228
|
return cargs
|
|
130
229
|
|
|
131
230
|
|
|
@@ -145,7 +244,7 @@ def bbregister_outputs(
|
|
|
145
244
|
ret = BbregisterOutputs(
|
|
146
245
|
root=execution.output_file("."),
|
|
147
246
|
reg_output=execution.output_file(params.get("reg_file")),
|
|
148
|
-
out_volume=execution.output_file("
|
|
247
|
+
out_volume=execution.output_file(params.get("o_outvol")) if (params.get("o_outvol") is not None) else None,
|
|
149
248
|
)
|
|
150
249
|
return ret
|
|
151
250
|
|
|
@@ -179,7 +278,19 @@ def bbregister(
|
|
|
179
278
|
subject: str,
|
|
180
279
|
moveable_volume: InputPathType,
|
|
181
280
|
reg_file: str,
|
|
281
|
+
contrast_type_t1: bool = False,
|
|
182
282
|
contrast_type_t2: bool = False,
|
|
283
|
+
vsm: InputPathType | None = None,
|
|
284
|
+
init_coreg: bool = False,
|
|
285
|
+
no_coreg_ref_mask: bool = False,
|
|
286
|
+
init_header: bool = False,
|
|
287
|
+
init_reg: InputPathType | None = None,
|
|
288
|
+
intvol: InputPathType | None = None,
|
|
289
|
+
mid_frame: bool = False,
|
|
290
|
+
frame_no: float | None = None,
|
|
291
|
+
template_out: str | None = None,
|
|
292
|
+
o_outvol: str | None = None,
|
|
293
|
+
s_from_reg: bool = False,
|
|
183
294
|
runner: Runner | None = None,
|
|
184
295
|
) -> BbregisterOutputs:
|
|
185
296
|
"""
|
|
@@ -196,8 +307,24 @@ def bbregister(
|
|
|
196
307
|
E.g., fMRI volume used for motion correction.
|
|
197
308
|
reg_file: Output FreeSurfer registration file (tkregister-style or LTA\
|
|
198
309
|
format).
|
|
310
|
+
contrast_type_t1: Assume T1 contrast, White Matter brighter than Grey\
|
|
311
|
+
Matter.
|
|
199
312
|
contrast_type_t2: Assume T2 contrast, Grey Matter brighter than White\
|
|
200
313
|
Matter. Same as --bold and --dti.
|
|
314
|
+
vsm: Include B0 distortion correction. A voxel shift map can be created\
|
|
315
|
+
with the epidewarp.fsl script.
|
|
316
|
+
init_coreg: Initialize with FreeSurfer mri_coreg program.
|
|
317
|
+
no_coreg_ref_mask: Do not use aparc+aseg.mgz as a reference mask.
|
|
318
|
+
init_header: Use geometry info for close voxel-to-voxel registration.\
|
|
319
|
+
Typically valid if acquired in same session.
|
|
320
|
+
init_reg: Supply an initial registration matrix; can be LTA format.
|
|
321
|
+
intvol: Volume used as an intermediate during registration. Useful for\
|
|
322
|
+
partial field-of-view volumes.
|
|
323
|
+
mid_frame: Register to middle frame (not with --frame option).
|
|
324
|
+
frame_no: Register to specified frame (default is 0=1st).
|
|
325
|
+
template_out: Save template (beneficial with --frame).
|
|
326
|
+
o_outvol: Resample moveable volume and save as specified output volume.
|
|
327
|
+
s_from_reg: Get subject name from registration file.
|
|
201
328
|
runner: Command runner.
|
|
202
329
|
Returns:
|
|
203
330
|
NamedTuple of outputs (described in `BbregisterOutputs`).
|
|
@@ -208,7 +335,19 @@ def bbregister(
|
|
|
208
335
|
subject=subject,
|
|
209
336
|
moveable_volume=moveable_volume,
|
|
210
337
|
reg_file=reg_file,
|
|
338
|
+
contrast_type_t1=contrast_type_t1,
|
|
211
339
|
contrast_type_t2=contrast_type_t2,
|
|
340
|
+
vsm=vsm,
|
|
341
|
+
init_coreg=init_coreg,
|
|
342
|
+
no_coreg_ref_mask=no_coreg_ref_mask,
|
|
343
|
+
init_header=init_header,
|
|
344
|
+
init_reg=init_reg,
|
|
345
|
+
intvol=intvol,
|
|
346
|
+
mid_frame=mid_frame,
|
|
347
|
+
frame_no=frame_no,
|
|
348
|
+
template_out=template_out,
|
|
349
|
+
o_outvol=o_outvol,
|
|
350
|
+
s_from_reg=s_from_reg,
|
|
212
351
|
)
|
|
213
352
|
return bbregister_execute(params, execution)
|
|
214
353
|
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
BMEDITS2SURF_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="f869eae38aafdf868c159585778d592e90997dbd.boutiques",
|
|
10
10
|
name="bmedits2surf",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -146,7 +146,7 @@ def bmedits2surf_cargs(
|
|
|
146
146
|
cargs.append("bmedits2surf")
|
|
147
147
|
cargs.extend([
|
|
148
148
|
"-s",
|
|
149
|
-
|
|
149
|
+
params.get("subject")
|
|
150
150
|
])
|
|
151
151
|
if params.get("self"):
|
|
152
152
|
cargs.append("--self")
|
|
@@ -6,7 +6,7 @@ import pathlib
|
|
|
6
6
|
from styxdefs import *
|
|
7
7
|
|
|
8
8
|
COMPUTE_INTERRATER_VARIABILITY_CSH_METADATA = Metadata(
|
|
9
|
-
id="
|
|
9
|
+
id="7363f7a4d7e7af9a9827c3ca57854bc1610a9623.boutiques",
|
|
10
10
|
name="compute_interrater_variability.csh",
|
|
11
11
|
package="freesurfer",
|
|
12
12
|
container_image_tag="freesurfer/freesurfer:7.4.1",
|
|
@@ -18,6 +18,8 @@ ComputeInterraterVariabilityCshParameters = typing.TypedDict('ComputeInterraterV
|
|
|
18
18
|
"label_vol1": InputPathType,
|
|
19
19
|
"label_vol2": InputPathType,
|
|
20
20
|
"output_prefix": str,
|
|
21
|
+
"version": bool,
|
|
22
|
+
"help": bool,
|
|
21
23
|
})
|
|
22
24
|
|
|
23
25
|
|
|
@@ -72,6 +74,8 @@ def compute_interrater_variability_csh_params(
|
|
|
72
74
|
label_vol1: InputPathType,
|
|
73
75
|
label_vol2: InputPathType,
|
|
74
76
|
output_prefix: str,
|
|
77
|
+
version: bool = False,
|
|
78
|
+
help_: bool = False,
|
|
75
79
|
) -> ComputeInterraterVariabilityCshParameters:
|
|
76
80
|
"""
|
|
77
81
|
Build parameters.
|
|
@@ -81,6 +85,8 @@ def compute_interrater_variability_csh_params(
|
|
|
81
85
|
label_vol2: Label volume from rater 2.
|
|
82
86
|
output_prefix: Prefix for the output text files containing results. A\
|
|
83
87
|
total of three files will be produced.
|
|
88
|
+
version: Print version information and exit.
|
|
89
|
+
help_: Print help information and exit.
|
|
84
90
|
Returns:
|
|
85
91
|
Parameter dictionary
|
|
86
92
|
"""
|
|
@@ -89,6 +95,8 @@ def compute_interrater_variability_csh_params(
|
|
|
89
95
|
"label_vol1": label_vol1,
|
|
90
96
|
"label_vol2": label_vol2,
|
|
91
97
|
"output_prefix": output_prefix,
|
|
98
|
+
"version": version,
|
|
99
|
+
"help": help_,
|
|
92
100
|
}
|
|
93
101
|
return params
|
|
94
102
|
|
|
@@ -107,7 +115,7 @@ def compute_interrater_variability_csh_cargs(
|
|
|
107
115
|
Command-line arguments.
|
|
108
116
|
"""
|
|
109
117
|
cargs = []
|
|
110
|
-
cargs.append("compute_interrater_variability")
|
|
118
|
+
cargs.append("compute_interrater_variability.csh")
|
|
111
119
|
cargs.extend([
|
|
112
120
|
"--vol1",
|
|
113
121
|
execution.input_file(params.get("label_vol1"))
|
|
@@ -120,6 +128,10 @@ def compute_interrater_variability_csh_cargs(
|
|
|
120
128
|
"--out",
|
|
121
129
|
params.get("output_prefix")
|
|
122
130
|
])
|
|
131
|
+
if params.get("version"):
|
|
132
|
+
cargs.append("--version")
|
|
133
|
+
if params.get("help"):
|
|
134
|
+
cargs.append("--help")
|
|
123
135
|
return cargs
|
|
124
136
|
|
|
125
137
|
|
|
@@ -174,6 +186,8 @@ def compute_interrater_variability_csh(
|
|
|
174
186
|
label_vol1: InputPathType,
|
|
175
187
|
label_vol2: InputPathType,
|
|
176
188
|
output_prefix: str,
|
|
189
|
+
version: bool = False,
|
|
190
|
+
help_: bool = False,
|
|
177
191
|
runner: Runner | None = None,
|
|
178
192
|
) -> ComputeInterraterVariabilityCshOutputs:
|
|
179
193
|
"""
|
|
@@ -189,6 +203,8 @@ def compute_interrater_variability_csh(
|
|
|
189
203
|
label_vol2: Label volume from rater 2.
|
|
190
204
|
output_prefix: Prefix for the output text files containing results. A\
|
|
191
205
|
total of three files will be produced.
|
|
206
|
+
version: Print version information and exit.
|
|
207
|
+
help_: Print help information and exit.
|
|
192
208
|
runner: Command runner.
|
|
193
209
|
Returns:
|
|
194
210
|
NamedTuple of outputs (described in `ComputeInterraterVariabilityCshOutputs`).
|
|
@@ -199,6 +215,8 @@ def compute_interrater_variability_csh(
|
|
|
199
215
|
label_vol1=label_vol1,
|
|
200
216
|
label_vol2=label_vol2,
|
|
201
217
|
output_prefix=output_prefix,
|
|
218
|
+
version=version,
|
|
219
|
+
help_=help_,
|
|
202
220
|
)
|
|
203
221
|
return compute_interrater_variability_csh_execute(params, execution)
|
|
204
222
|
|