Skip to content

Commit 03656b3

Browse files
committed
update petsurfer.py
1 parent 0755948 commit 03656b3

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

nipype/interfaces/freesurfer/petsurfer.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class GTMSegInputSpec(FSTraitedSpec):
5353
desc="run xcerebralseg on this subject to create apas+head.mgz"
5454
)
5555

56-
out_file = File(
56+
gtm_file = File(
5757
argstr="--o %s",
5858
desc="output volume relative to subject/mri (default is gtmseg.mgz)"
5959
)
@@ -445,8 +445,7 @@ def _format_arg(self, name, spec, value):
445445
class MRTMInputSpec(GLMFitInputSpec):
446446

447447
mrtm1 = InputMultiPath(
448-
(File(exists=True, mandatory=True),
449-
File(exists=True, mandatory=True)),
448+
traits.Tuple(File(exists=True, mandatory=True), File(exists=True, mandatory=True)),
450449
argstr="--mrtm1 %s %s...",
451450
desc="RefTac TimeSec : perform MRTM1 kinetic modeling",
452451
)
@@ -461,7 +460,7 @@ class MRTM(GLMFit):
461460
--------
462461
>>> mrtm = MRTM()
463462
>>> mrtm.inputs.in_file = 'tac.nii'
464-
>>> gtmseg.inputs.mrtm = [('ref_tac.dat', 'timing.dat')]
463+
>>> mrtm.inputs.mrtm1 = [('ref_tac.dat', 'timing.dat')]
465464
>>> mrtm.inputs.glmdir = 'mrtm'
466465
>>> mrtm.cmdline == 'mri_glmfit --glmdir mrtm --y tac.nii --mrtm1 ref_tac.dat timing.dat'
467466
"""
@@ -502,11 +501,11 @@ class MRTM2(GLMFit):
502501
"""Perform MRTM2 kinetic modeling.
503502
Examples
504503
--------
505-
>>> mrtm = MRTM()
506-
>>> mrtm.inputs.in_file = 'tac.nii'
507-
>>> gtmseg.inputs.mrtm = [('ref_tac.dat', 'timing.dat', 'k2prime.dat')]
508-
>>> mrtm.inputs.glmdir = 'mrtm2'
509-
>>> mrtm2.cmdline == 'mri_glmfit --glmdir mrtm2 --y tac.nii --mrtm2 ref_tac.dat timing.dat k2prime.dat'
504+
>>> mrtm2 = MRTM2()
505+
>>> mrtm2.inputs.in_file = 'tac.nii'
506+
>>> mrtm2.inputs.mrtm2 = [('ref_tac.dat', 'timing.dat', 0.07872)]
507+
>>> mrtm2.inputs.glmdir = 'mrtm2'
508+
>>> mrtm2.cmdline == 'mri_glmfit --glmdir mrtm2 --y tac.nii --mrtm2 ref_tac.dat timing.dat 0.07872'
510509
"""
511510

512511
_cmd = "mri_glmfit"
@@ -521,7 +520,7 @@ def _list_outputs(self):
521520
ext = '.nii'
522521
else:
523522
ext = '.mgh'
524-
outputs['bp'] = os.path.join(self.inputs.glm_dir, 'bp', ext)
523+
outputs['bp'] = os.join(self.inputs.glm_dir, 'bp', ext)
525524
return outputs
526525

527526
class LoganRefInputSpec(GLMFitInputSpec):
@@ -560,5 +559,5 @@ def _list_outputs(self):
560559
ext = '.nii'
561560
else:
562561
ext = '.mgh'
563-
outputs['bp'] = os.path.join(self.inputs.glm_dir, 'bp' + ext)
562+
outputs['bp'] = os.join(self.inputs.glm_dir, 'bp', ext)
564563
return outputs

0 commit comments

Comments
 (0)