You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smriprep/interfaces/msm.py
+25-13Lines changed: 25 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -25,37 +25,47 @@ class MSMInputSpec(CommandLineInputSpec):
25
25
reference_mesh=File(
26
26
exists=True,
27
27
argstr="--refmesh=%s",
28
-
desc="reference mesh (available formats: VTK, ASCII, GIFTI). Needs to be a sphere. If not included algorithm assumes reference mesh is equivalent input",
28
+
desc="reference mesh (available formats: VTK, ASCII, GIFTI). Needs to be a sphere."
29
+
"If not included algorithm assumes reference mesh is equivalent input",
29
30
)
30
31
in_data=File(
31
32
exists=True,
32
33
argstr="--indata=%s",
33
-
desc="scalar or multivariate data for input - can be ASCII (.asc,.dpv,.txt) or GIFTI (.func.gii or .shape.gii)",
34
+
desc="scalar or multivariate data for input - can be ASCII (.asc,.dpv,.txt) "
35
+
"or GIFTI (.func.gii or .shape.gii)",
34
36
)
35
37
reference_data=File(
36
38
exists=True,
37
39
argstr="--refdata=%s",
38
-
desc="scalar or multivariate data for reference - can be ASCII (.asc,.dpv,.txt) or GIFTI (.func.gii or .shape.gii)",
40
+
desc="scalar or multivariate data for reference - can be ASCII (.asc,.dpv,.txt) "
41
+
"or GIFTI (.func.gii or .shape.gii)",
39
42
)
40
43
transformed_mesh=File(
41
44
exists=True,
42
45
argstr="--trans=%s",
43
-
desc="Transformed source mesh (output of a previous registration). Use this to initiliase the current registration.",
46
+
desc="Transformed source mesh (output of a previous registration). "
47
+
"Use this to initiliase the current registration.",
44
48
)
45
49
in_register=File(
46
50
exists=True,
47
51
argstr="--in_register=%s",
48
-
desc="Input mesh at data resolution. Used to resample data onto input mesh if data is supplied at a different resolution. Note this mesh HAS to be in alignment with either the input_mesh of (if supplied) the transformed source mesh. Use with supreme caution.",
52
+
desc="Input mesh at data resolution. Used to resample data onto input mesh if data "
53
+
"is supplied at a different resolution. Note this mesh HAS to be in alignment with "
54
+
"either the input_mesh of (if supplied) the transformed source mesh. "
55
+
"Use with supreme caution.",
49
56
)
50
57
in_weight=File(
51
58
exists=True,
52
59
argstr="--inweight=%s",
53
-
desc="cost function weighting for input - weights data in these vertices when calculating similarity (ASCII or GIFTI). Can be multivariate provided dimension equals that of data",
60
+
desc="cost function weighting for input - weights data in these vertices when calculating "
61
+
"similarity (ASCII or GIFTI). Can be multivariate provided dimension equals that of data",
54
62
)
55
63
reference_weight=File(
56
64
exists=True,
57
65
argstr="--refweight=%s",
58
-
desc="cost function weighting for reference - weights data in these vertices when calculating similarity (ASCII or GIFTI). Can be multivariate provided dimension equals that of data",
66
+
desc="cost function weighting for reference - weights data in these vertices when "
67
+
"calculating similarity (ASCII or GIFTI). Can be multivariate provided dimension "
68
+
"equals that of data",
59
69
)
60
70
output_format=traits.Enum(
61
71
"GIFTI",
@@ -72,7 +82,8 @@ class MSMInputSpec(CommandLineInputSpec):
72
82
)
73
83
levels=traits.Int(
74
84
argstr="--levels=%d",
75
-
desc="number of resolution levels (default = number of resolution levels specified by --opt in config file)",
85
+
desc="number of resolution levels (default = number of resolution levels specified "
86
+
"by --opt in config file)",
76
87
)
77
88
smooth_output_sigma=traits.Int(
78
89
argstr="--smoothout=%d",
@@ -86,10 +97,12 @@ class MSMInputSpec(CommandLineInputSpec):
86
97
87
98
classMSMOutputSpec(TraitedSpec):
88
99
warped_mesh=File(
89
-
desc="the warped input mesh (i.e., new vertex locations - this capture the warp field, much like a *_warp.nii.gz file would for volumetric warps created by FNIRT)."
100
+
desc="the warped input mesh (i.e., new vertex locations - this capture the warp field, "
101
+
"much like a _warp.nii.gz file would for volumetric warps created by FNIRT)."
90
102
)
91
103
downsampled_warped_mesh=File(
92
-
desc="a downsampled version of the warped_mesh where the resolution of this mesh will be equivalent to the resolution of the final datamesh"
104
+
desc="a downsampled version of the warped_mesh where the resolution of this mesh will "
105
+
"be equivalent to the resolution of the final datamesh"
93
106
)
94
107
warped_data=File(
95
108
desc="the input data passed through the MSM warp and projected onto the target surface"
@@ -106,9 +119,9 @@ class MSM(CommandLine):
106
119
univariate (sulcal depth, curvature, myelin), multivariate (Task fMRI, or Resting State
107
120
Networks) or multimodal (combinations of folding, myelin and fMRI) feature sets.
108
121
109
-
The main MSM tool is currently run from the command line using the program `msm`.
122
+
The main MSM tool is currently run from the command line using the program ``msm``.
110
123
This enables fast alignment of spherical cortical surfaces by utilising a fast discrete
111
-
optimisation framework (FastPD: Komodakis 2007), which significantly reduces the search
124
+
optimisation framework (FastPD Komodakis 2007), which significantly reduces the search
112
125
space of possible deformations for each vertex, and allows flexibility with regards to the
113
126
choice of similarity metric used to match the images.
0 commit comments