Skip to content

Commit e99d34d

Browse files
committed
Merge pull request #1437 from BRAINSia/RemoveSimpleITK
FIX: Removes unnecessary methods from smri freesurfer workflow utils.
2 parents 6b0fbaa + c39acaf commit e99d34d

File tree

6 files changed

+3
-435
lines changed

6 files changed

+3
-435
lines changed

nipype/workflows/smri/freesurfer/autorecon1.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import sys
2-
import os
3-
import nipype
41
from nipype.interfaces.utility import Function,IdentityInterface
52
import nipype.pipeline.engine as pe # pypeline engine
63
from nipype.interfaces.freesurfer import *
7-
from .utils import copy_file, copy_files
4+
from .utils import copy_file
85

96

107
def checkT1s(T1_files, cw256=False):

nipype/workflows/smri/freesurfer/autorecon2.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
import nipype
31
from nipype.interfaces.utility import Function, IdentityInterface, Merge
42
import nipype.pipeline.engine as pe # pypeline engine
53
from nipype.interfaces.freesurfer import *

nipype/workflows/smri/freesurfer/autorecon3.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import os
2-
import nipype
3-
from nipype.interfaces.utility import Function, IdentityInterface, Merge
1+
from nipype.interfaces.utility import IdentityInterface, Merge
42
import nipype.pipeline.engine as pe # pypeline engine
53
from nipype.interfaces.freesurfer import *
64
from .ba_maps import create_ba_maps_wf
7-
from .utils import createsrcsubj
85
from nipype.interfaces.io import DataGrabber
96

107
def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,

nipype/workflows/smri/freesurfer/recode_tables/fs2abc.csv

Lines changed: 0 additions & 41 deletions
This file was deleted.

nipype/workflows/smri/freesurfer/recon.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ def link_masks(subjects_dir, subject_id):
7979
wf.connect(autorecon_resume, "subject_id", outputnode, "subject_id")
8080
return wf
8181

82-
def create_reconall_workflow(name="ReconAll", plugin_args=None,
83-
recoding_file=None):
82+
def create_reconall_workflow(name="ReconAll", plugin_args=None):
8483
"""Creates the ReconAll workflow in nipype.
8584
8685
Example
@@ -510,15 +509,6 @@ def completemethod(datasinked_files, subject_id):
510509
(inputspec, completion, [('subject_id', 'subject_id')]),
511510
(completion, postds_outputspec, [('subject_id', 'subject_id')])])
512511

513-
514-
#### Workflow additions go here
515-
if recoding_file:
516-
from utils import create_recoding_wf
517-
recode = create_recoding_wf(recoding_file)
518-
reconall.connect([(ar3_wf, recode, [('outputspec.aseg', 'inputspec.labelmap')]),
519-
(recode, outputspec, [('outputspec.recodedlabelmap', 'recoded_labelmap')])])
520-
521-
522512
return reconall
523513

524514

0 commit comments

Comments
 (0)