Skip to content

ENH: Enable recon-all -FLAIR / -FLAIRpial options #2279

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 3 commits into from
Nov 13, 2017

Conversation

effigies
Copy link
Member

The invocation of the pial surface correction differs based on whether FreeSurfer thinks it's using a T2 or a FLAIR image. We should thus support both pathways.

Changes proposed in this pull request

  • Adds FLAIR_file input to ReconAll
  • Adds use_FLAIR (mutually exclusive with use_T2) input to ReconAll

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')
FLAIR_file = File(exists=True, argstr="-FLAIR %s",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use a single input i.e. T2, perhaps with:

  1. a requires set for use*
  2. a description update saying T2 file can be T2 or FLAIR
    ?

freesurfer doesn't really distinguish between the inputs in the recon-all process, only the use options change some thresholds to fixing surfaces.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When adding the images, -T2 <file> vs -FLAIR <file> dictates whether it's converted to orig/T2raw.mgz or orig/FLAIRraw.mgz Then -T2pial and -FLAIRpial draw from those files as well as set different options to mris_make_surfaces. (Also note that -T2 and -FLAIR are not mutually exclusive, but -T2pial and -FLAIRpial are.)

Also, recall that someone may use this in multiple stages. The -T2 <file> and -T2pial options may not be passed in the same interface, so dependencies between these options aren't necessarily going to be straightforward.

Given these considerations, do you see a way of simplifying this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@effigies - i was going to say we could set the appropriate argument in _format_arg. but since this interface offers the possibility of passing any of the Do* arguments, perhaps this is cleaner at this point. so i'm ok with the way this PR is currently implemented.

@codecov-io
Copy link

codecov-io commented Nov 13, 2017

Codecov Report

Merging #2279 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2279      +/-   ##
==========================================
+ Coverage   72.52%   72.52%   +<.01%     
==========================================
  Files        1188     1188              
  Lines       59141    59143       +2     
  Branches     8510     8510              
==========================================
+ Hits        42892    42894       +2     
  Misses      14864    14864              
  Partials     1385     1385
Flag Coverage Δ
#smoketests 72.52% <100%> (ø) ⬆️
#unittests 70.14% <100%> (ø) ⬆️
Impacted Files Coverage Δ
.../interfaces/freesurfer/tests/test_auto_ReconAll.py 100% <100%> (ø) ⬆️
nipype/interfaces/freesurfer/preprocess.py 65.87% <100%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca91455...77f5bd4. Read the comment docs.

@effigies effigies merged commit 68e8ef0 into nipy:master Nov 13, 2017
@effigies effigies deleted the enh/reconall_flair branch November 13, 2017 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants