Skip to content

Commit 0b51c54

Browse files
committed
Update LongReconAll to separate base template id.
1 parent d6ec3bd commit 0b51c54

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

nipype/interfaces/freesurfer/longitudinal.py

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,18 @@ def cmdline(self):
353353

354354
class LongReconAllInputSpec(ReconAllInputSpec):
355355
subject_id = traits.Str(argstr="-subjid %s", desc="subject name")
356-
long_id = traits.Tuple(
357-
traits.Str(),
358-
traits.Str(),
359-
argstr="-long %s %s",
360-
desc="longitudinal name followed by base template name",
361-
xor=["subject_id"]
356+
long_id = traits.Str(
357+
argstr="-long %s",
358+
desc="longitudinal session/timepoint id",
359+
xor=["subject_id"],
360+
requires=["base_id"],
361+
position=1
362+
)
363+
base_id = traits.Str(
364+
argstr="%s",
365+
desc="longitudinal base template id",
366+
requires=["long_id"],
367+
position=2
362368
)
363369

364370

@@ -376,11 +382,12 @@ class LongReconAll(CommandLine):
376382
377383
>>> from nipype.interfaces.freesurfer.longitudinal import LongReconAll
378384
>>> longrecon = LongReconAll()
379-
>>> longrecon.inputs.long_id = ("ses-1","sub-template")
385+
>>> longrecon.inputs.long_id = "ses-1"
386+
>>> longrecon.inputs.base_id = "sub-template"
380387
>>> longrecon.inputs.directive = "all"
381388
>>> longrecon.inputs.subjects_dir = "."
382389
>>> longrecon.cmdline
383-
'recon-all -all -long ses-1 sub-template -sd .'
390+
'recon-all -all -long ses-1 -base sub-template -sd .'
384391
"""
385392

386393
_cmd = "recon-all"

0 commit comments

Comments
 (0)