Skip to content

fix: ensure that T2 file gets used to clean surface #1282

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 1 commit into from
Nov 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 3 additions & 1 deletion nipype/interfaces/freesurfer/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ class ReconAllInputSpec(CommandLineInputSpec):
T1_files = InputMultiPath(File(exists=True), argstr='-i %s...',
desc='name of T1 file to process')
T2_file = File(exists=True, argstr="-T2 %s", min_ver='5.3.0',
desc='Use a T2 image to refine the cortical surface')
desc='Convert T2 image to orig directory')
use_T2 = traits.Bool(argstr="-T2pial", min_ver='5.3.0',
desc='Use converted T2 to refine the cortical surface')
openmp = traits.Int(argstr="-openmp %d",
desc="Number of processors to use in parallel")
subjects_dir = Directory(exists=True, argstr='-sd %s', hash_files=False,
Expand Down
3 changes: 3 additions & 0 deletions nipype/interfaces/freesurfer/tests/test_auto_ReconAll.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def test_ReconAll_inputs():
),
terminal_output=dict(nohash=True,
),
use_T2=dict(argstr='-T2pial',
min_ver='5.3.0',
),
)
inputs = ReconAll.input_spec()

Expand Down
2 changes: 1 addition & 1 deletion nipype/interfaces/freesurfer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def _list_outputs(self):
source = self.inputs.source_file
else:
source = self.inputs.source_annot_file

# Some recon-all files don't have a proper extension (e.g. "lh.thickness")
# so we have to account for that here
bad_extensions = [".%s" % e for e in ["area", "mid", "pial", "avg_curv", "curv", "inflated",
Expand Down