8000 [ENH] Issue 3345: Adding FreeSurfer longitudinal interfaces by l-espana · Pull Request #3529 · nipy/nipype · GitHub
[go: up one dir, main page]

Skip to content

[ENH] Issue 3345: Adding FreeSurfer longitudinal interfaces #3529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jul 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update LongReconAll to separate base template id.
  • Loading branch information
l-espana committed Dec 2, 2022
commit 0b51c5445a222599042fe66a17a7bc45394f6ae4
23 changes: 15 additions & 8 deletions nipype/interfaces/freesurfer/longitudinal.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,18 @@ def cmdline(self):

class LongReconAllInputSpec(ReconAllInputSpec):
subject_id = traits.Str(argstr="-subjid %s", desc="subject name")
long_id = traits.Tuple(
traits.Str(),
traits.Str(),
argstr="-long %s %s",
desc="longitudinal name followed by base template name",
xor=["subject_id"]
long_id = traits.Str(
argstr="-long %s",
desc="longitudinal session/timepoint id",
xor=["subject_id"],
requires=["base_id"],
position=1
)
base_id = traits.Str(
argstr="%s",
desc="longitudinal base template id",
requires=["long_id"],
position=2
)


Expand All @@ -376,11 +382,12 @@ class LongReconAll(CommandLine):

>>> from nipype.interfaces.freesurfer.longitudinal import LongReconAll
>>> longrecon = LongReconAll()
>>> longrecon.inputs.long_id = ("ses-1","sub-template")
>>> longrecon.inputs.long_id = "ses-1"
>>> longrecon.inputs.base_id = "sub-template"
>>> longrecon.inputs.directive = "all"
>>> longrecon.inputs.subjects_dir = "."
>>> longrecon.cmdline
'recon-all -all -long ses-1 sub-template -sd .'
'recon-all -all -long ses-1 -base sub-template -sd .'
"""

_cmd = "recon-all"
Expand Down
0