Skip to content

Commit bc5803c

Browse files
committed
Split over-eager globs in FreeSurferSource
1 parent 15f520d commit bc5803c

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

nipype/interfaces/io.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,12 +1511,23 @@ class FSSourceOutputSpec(TraitedSpec):
15111511
loc='mri')
15121512
curv = OutputMultiPath(File(exists=True), desc='Maps of surface curvature',
15131513
loc='surf')
1514+
avg_curv = OutputMultiPath(
1515+
File(exists=True), desc='Average atlas curvature, sampled to subject',
1516+
loc='surf')
15141517
inflated = OutputMultiPath(
15151518
File(exists=True), desc='Inflated surface meshes',
15161519
loc='surf')
15171520
pial = OutputMultiPath(
15181521
File(exists=True), desc='Gray matter/pia mater surface meshes',
15191522
loc='surf')
1523+
area_pial = OutputMultiPath(
1524+
File(exists=True),
1525+
desc='Mean area of triangles each vertex on the pial surface is '
1526+
'associated with',
1527+
loc='surf', altkey='area.pial')
1528+
curv_pial = OutputMultiPath(
1529+
File(exists=True), desc='Curvature of pial surface',
1530+
loc='surf', altkey='curv.pial')
15201531
smoothwm = OutputMultiPath(File(exists=True), loc='surf',
15211532
desc='Smoothed original surface meshes')
15221533
sphere = OutputMultiPath(
@@ -1531,6 +1542,10 @@ class FSSourceOutputSpec(TraitedSpec):
15311542
white = OutputMultiPath(
15321543
File(exists=True), desc='White/gray matter surface meshes',
15331544
loc='surf')
1545+
jacobian_white = OutputMultiPath(
1546+
File(exists=True),
1547+
desc='Distortion required to register to spherical atlas',
1548+
loc='surf')
15341549
label = OutputMultiPath(
15351550
File(exists=True), desc='Volume and surface label files',
15361551
loc='label', altkey='*label')
@@ -1590,12 +1605,17 @@ def _get_files(self, path, key, dirval, altkey=None):
15901605
elif dirval == 'stats':
15911606
globsuffix = '.stats'
15921607
globprefix = ''
1593-
if key == 'ribbon' or dirval in ['surf', 'label', 'stats']:
1608+
if dirval in ('surf', 'label', 'stats'):
1609+
if self.inputs.hemi != 'both':
1610+
globprefix = self.inputs.hemi + '.'
1611+
else:
1612+
globprefix = '?h.'
1613+
elif key == 'ribbon':
15941614
if self.inputs.hemi != 'both':
15951615
globprefix = self.inputs.hemi + '.'
15961616
else:
15971617
globprefix = '*'
1598-
if key == 'aseg_stats' or key == 'wmparc_stats':
1618+
elif key in ('aseg_stats', 'wmparc_stats'):
15991619
globprefix = ''
16001620
keydir = os.path.join(path, dirval)
16011621
if altkey:

0 commit comments

Comments
 (0)