This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
def create_key(template, outtype=('nii.gz'), annotation_classes=None): | |
if template is None or not template: | |
raise ValueError('Template must be a valid format string') | |
return (template, outtype, annotation_classes) | |
def infotodict(seqinfo): | |
"""Heuristic evaluator for determining which runs belong where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Create nipype workflow using dipy's workflows | |
https://github.com/nipy/dipy/blob/master/dipy/workflows/ | |
''' | |
from nipype import config | |
config.set('execution', 'remove_unnecessary_outputs', 'false') | |
#config.set('execution', 'crashfile_format', 'txt') | |
from nipype import Node, Function, Workflow, DataGrabber, IdentityInterface | |
from nipype.interfaces.io import SelectFiles, DataSink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from glob import glob | |
from nipype import config | |
config.enable_provenance() | |
from nipype import Node, Function, Workflow, IdentityInterface | |
from nipype.interfaces.io import SelectFiles, DataSink | |
import os |