@@ -1478,7 +1478,7 @@ class FSSourceInputSpec(BaseInterfaceInputSpec):
1478
1478
subjects_dir = Directory (mandatory = True ,
1479
1479
desc = 'Freesurfer subjects directory.' )
1480
1480
subject_id = Str (mandatory = True ,
1481
- desc = 'Subject name for whom to retrieve data' )
1481
+ desc = 'Subject name for whom to retrieve data' )
1482
1482
hemi = traits .Enum ('both' , 'lh' , 'rh' , usedefault = True ,
1483
1483
desc = 'Selects hemisphere specific outputs' )
1484
1484
@@ -1487,8 +1487,8 @@ class FSSourceOutputSpec(TraitedSpec):
1487
1487
T1 = File (
1488
1488
exists = True , desc = 'Intensity normalized whole-head volume' , loc = 'mri' )
1489
1489
aseg = File (
1490
- exists = True , desc = 'Volumetric map of regions from automatic segmentation ' ,
1491
- loc = 'mri ' )
1490
+ exists = True , loc = 'mri ' ,
1491
+ desc = 'Volumetric map of regions from automatic segmentation ' )
1492
1492
brain = File (
1493
1493
exists = True , desc = 'Intensity normalized brain-only volume' , loc = 'mri' )
1494
1494
brainmask = File (
@@ -1507,16 +1507,27 @@ class FSSourceOutputSpec(TraitedSpec):
1507
1507
loc = 'mri' , altkey = '*ribbon' )
1508
1508
wm = File (exists = True , desc = 'Segmented white-matter volume' , loc = 'mri' )
1509
1509
wmparc = File (
1510
- exists = True , desc = 'Aparc parcellation projected into subcortical white matter ' ,
1511
- loc = 'mri ' )
1510
+ exists = True , loc = 'mri ' ,
1511
+ desc = 'Aparc parcellation projected into subcortical white matter ' )
1512
1512
curv = OutputMultiPath (File (exists = True ), desc = 'Maps of surface curvature' ,
1513
1513
loc = 'surf' )
1514
+ avg_curv = OutputMultiPath (
1515
+ File (exists = True ), desc = 'Average atlas curvature, sampled to subject' ,
1516
+ loc = 'surf' )
1514
1517
inflated = OutputMultiPath (
1515
1518
File (exists = True ), desc = 'Inflated surface meshes' ,
1516
1519
loc = 'surf' )
1517
1520
pial = OutputMultiPath (
1518
1521
File (exists = True ), desc = 'Gray matter/pia mater surface meshes' ,
1519
1522
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' )
1520
1531
smoothwm = OutputMultiPath (File (exists = True ), loc = 'surf' ,
1521
1532
desc = 'Smoothed original surface meshes' )
1522
1533
sphere = OutputMultiPath (
@@ -1531,6 +1542,10 @@ class FSSourceOutputSpec(TraitedSpec):
1531
1542
white = OutputMultiPath (
1532
1543
File (exists = True ), desc = 'White/gray matter surface meshes' ,
1533
1544
loc = 'surf' )
1545
+ jacobian_white = OutputMultiPath (
1546
+ File (exists = True ),
1547
+ desc = 'Distortion required to register to spherical atlas' ,
1548
+ loc = 'surf' )
1534
1549
label = OutputMultiPath (
1535
1550
File (exists = True ), desc = 'Volume and surface label files' ,
1536
1551
loc = 'label' , altkey = '*label' )
@@ -1590,12 +1605,17 @@ def _get_files(self, path, key, dirval, altkey=None):
1590
1605
elif dirval == 'stats' :
1591
1606
globsuffix = '.stats'
1592
1607
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' :
1594
1614
if self .inputs .hemi != 'both' :
1595
1615
globprefix = self .inputs .hemi + '.'
1596
1616
else :
1597
1617
globprefix = '*'
1598
- if key == 'aseg_stats' or key == 'wmparc_stats' :
1618
+ elif key in ( 'aseg_stats' , 'wmparc_stats' ) :
1599
1619
globprefix = ''
1600
1620
keydir = os .path .join (path , dirval )
1601
1621
if altkey :
0 commit comments