Skip to content

Commit 1a85711

Browse files
committed
RF: Import workflows from niflow-nipype1-workflows
1 parent 714868d commit 1a85711

18 files changed

+28
-26
lines changed

package/niflow/nipype1/examples/dmri_connectivity_advanced.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@
5858
import inspect
5959
import os
6060
import os.path as op # system functions
61-
from nipype.workflows.dmri.fsl.dti import create_eddy_correct_pipeline
62-
from nipype.workflows.dmri.camino.connectivity_mapping import select_aparc_annot
61+
from niflow.nipype1.workflows.dmri.fsl.dti import create_eddy_correct_pipeline
62+
from niflow.nipype1.workflows.dmri.camino.connectivity_mapping import select_aparc_annot
6363
from nipype.utils.misc import package_check
6464
import warnings
65-
from nipype.workflows.dmri.connectivity.nx import create_networkx_pipeline, create_cmats_to_csv_pipeline
66-
from nipype.workflows.smri.freesurfer import create_tessellation_flow
65+
from niflow.nipype1.workflows.dmri.connectivity.nx import create_networkx_pipeline, create_cmats_to_csv_pipeline
66+
from niflow.nipype1.workflows.smri.freesurfer import create_tessellation_flow
6767

6868
try:
6969
package_check('cmp')

package/niflow/nipype1/examples/dmri_dtk_dti.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import nipype.interfaces.utility as util # utility
2727
import nipype.pipeline.engine as pe # pypeline engine
2828
import os # system functions
29-
from nipype.workflows.dmri.fsl.dti import create_eddy_correct_pipeline
29+
from niflow.nipype1.workflows.dmri.fsl.dti import create_eddy_correct_pipeline
3030
"""
3131
Confirm package dependencies are installed. (This is only for the
3232
tutorial, rarely would you put this in your own code.)

package/niflow/nipype1/examples/dmri_dtk_odf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import nipype.interfaces.utility as util # utility
2727
import nipype.pipeline.engine as pe # pypeline engine
2828
import os # system functions
29-
from nipype.workflows.dmri.fsl.dti import create_eddy_correct_pipeline
29+
from niflow.nipype1.workflows.dmri.fsl.dti import create_eddy_correct_pipeline
3030
"""
3131
Confirm package dependencies are installed. (This is only for the
3232
tutorial, rarely would you put this in your own code.)

package/niflow/nipype1/examples/dmri_fsl_dti.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import nipype.interfaces.utility as util # utility
2626
import nipype.pipeline.engine as pe # pypeline engine
2727
import os # system functions
28-
from nipype.workflows.dmri.fsl.dti import create_eddy_correct_pipeline,\
28+
from niflow.nipype1.workflows.dmri.fsl.dti import create_eddy_correct_pipeline,\
2929
create_bedpostx_pipeline
3030
"""
3131
Confirm package dependencies are installed. (This is only for the

package/niflow/nipype1/examples/dmri_group_connectivity_camino.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
import nipype.interfaces.freesurfer as fs # freesurfer
5858
import os.path as op # system functions
5959
import cmp
60-
from nipype.workflows.dmri.camino.group_connectivity import create_group_connectivity_pipeline
61-
from nipype.workflows.dmri.connectivity.group_connectivity import (
60+
from niflow.nipype1.workflows.dmri.camino.group_connectivity import create_group_connectivity_pipeline
61+
from niflow.nipype1.workflows.dmri.connectivity.group_connectivity import (
6262
create_merge_networks_by_group_workflow,
6363
create_merge_group_networks_workflow,
6464
create_average_networks_by_group_workflow)

package/niflow/nipype1/examples/dmri_group_connectivity_mrtrix.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
import nipype.interfaces.freesurfer as fs # freesurfer
5858
import os.path as op # system functions
5959
import cmp
60-
from nipype.workflows.dmri.mrtrix.group_connectivity import create_group_connectivity_pipeline
61-
from nipype.workflows.dmri.connectivity.group_connectivity import (
60+
from niflow.nipype1.workflows.dmri.mrtrix.group_connectivity import create_group_connectivity_pipeline
61+
from niflow.nipype1.workflows.dmri.connectivity.group_connectivity import (
6262
create_merge_network_results_by_group_workflow,
6363
create_merge_group_network_results_workflow,
6464
create_average_networks_by_group_workflow)

package/niflow/nipype1/examples/dmri_preprocessing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
from nipype.interfaces import ants
3333
"""
3434
Load specific nipype's workflows for preprocessing of dMRI data:
35-
:class:`nipype.workflows.dmri.preprocess.epi.all_peb_pipeline`,
35+
:class:`niflow.nipype1.workflows.dmri.preprocess.epi.all_peb_pipeline`,
3636
as data include a *b0* volume with reverse encoding direction
3737
(*P>>>A*, or *y*), in contrast with the general acquisition encoding
3838
that is *A>>>P* or *-y* (in RAS systems).
3939
"""
4040

41-
from nipype.workflows.dmri.fsl.artifacts import all_fsl_pipeline, remove_bias
41+
from niflow.nipype1.workflows.dmri.fsl.artifacts import all_fsl_pipeline, remove_bias
4242
"""
4343
Map field names into individual subject runs
4444
"""

package/niflow/nipype1/examples/dmri_tbss_nki.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
1111
"""
1212

13-
from nipype.workflows.dmri.fsl.dti import create_eddy_correct_pipeline
14-
from nipype.workflows.dmri.fsl.tbss import create_tbss_non_FA, create_tbss_all
13+
from niflow.nipype1.workflows.dmri.fsl.dti import create_eddy_correct_pipeline
14+
from niflow.nipype1.workflows.dmri.fsl.tbss import create_tbss_non_FA, create_tbss_all
1515
"""
1616
Tell python where to find the appropriate functions.
1717
"""

package/niflow/nipype1/examples/fmri_ants_openfmri.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from nipype.interfaces.io import FreeSurferSource
3939
import nipype.interfaces.utility as niu
4040
from nipype.interfaces.utility import Merge, IdentityInterface
41-
from nipype.workflows.fmri.fsl import (create_featreg_preproc,
41+
from niflow.nipype1.workflows.fmri.fsl import (create_featreg_preproc,
4242
create_modelfit_workflow,
4343
create_fixed_effects_flow)
4444

package/niflow/nipype1/examples/fmri_fsl_feeds.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from nipype.interfaces import fsl # fsl
2323
from nipype.pipeline import engine as pe # pypeline engine
2424
from nipype.algorithms import modelgen as model # model generation
25-
from nipype.workflows.fmri.fsl import (
25+
from niflow.nipype1.workflows.fmri.fsl import (
2626
create_featreg_preproc, create_modelfit_workflow, create_reg_workflow)
2727
from nipype.interfaces.base import Bunch
2828
"""

package/niflow/nipype1/examples/fmri_fsl_reuse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import nipype.algorithms.modelgen as model # model generation
2929
import nipype.algorithms.rapidart as ra # artifact detection
3030

31-
from nipype.workflows.fmri.fsl import (create_featreg_preproc,
31+
from niflow.nipype1.workflows.fmri.fsl import (create_featreg_preproc,
3232
create_modelfit_workflow,
3333
create_fixed_effects_flow)
3434
"""

package/niflow/nipype1/examples/fmri_spm_dartel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import nipype.interfaces.io as nio # Data i/o
2323
import nipype.interfaces.spm as spm # spm
24-
import nipype.workflows.fmri.spm as spm_wf # spm
24+
import niflow.nipype1.workflows.fmri.spm as spm_wf # spm
2525
import nipype.interfaces.fsl as fsl # fsl
2626
from nipype.interfaces import utility as niu # Utilities
2727
import nipype.pipeline.engine as pe # pypeline engine

package/niflow/nipype1/examples/frontiers_paper/smoothing_comparison.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import nipype.interfaces.utility as util
1717
import nipype.pipeline.engine as pe # pypeline engine
1818
import nipype.algorithms.modelgen as model # model specification
19-
import nipype.workflows.fmri.fsl as fsl_wf
19+
import niflow.nipype1.workflows.fmri.fsl as fsl_wf
2020
from nipype.interfaces.base import Bunch
2121
import os # system functions
2222

package/niflow/nipype1/examples/smri_ants_build_template.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import nipype.interfaces.io as io
2424
import nipype.pipeline.engine as pe # pypeline engine
2525

26-
from nipype.workflows.smri.ants import ANTSTemplateBuildSingleIterationWF
26+
from niflow.nipype1.workflows.smri.ants import ANTSTemplateBuildSingleIterationWF
2727
"""
2828
2. Download T1 volumes into home directory
2929
"""

package/niflow/nipype1/examples/smri_antsregistration_build_template.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import nipype.interfaces.io as io
2323
import nipype.pipeline.engine as pe # pypeline engine
2424

25-
from nipype.workflows.smri.ants import antsRegistrationTemplateBuildSingleIterationWF
25+
from niflow.nipype1.workflows.smri.ants import antsRegistrationTemplateBuildSingleIterationWF
2626
"""
2727
2. Download T1 volumes into home directory
2828
"""

package/niflow/nipype1/examples/smri_fsreconall.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import nipype.pipeline.engine as pe
2222
import nipype.interfaces.io as nio
23-
from nipype.workflows.smri.freesurfer import create_reconall_workflow
23+
from niflow.nipype1.workflows.smri.freesurfer import create_reconall_workflow
2424
from nipype.interfaces.freesurfer.utils import MakeAverageSubject
2525
from nipype.interfaces.utility import IdentityInterface
2626
"""

package/niflow/nipype1/examples/tessellation_tutorial.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Introduction
88
============
99
10-
This script, tessellation_tutorial.py, demonstrates the use of create_tessellation_flow from nipype.workflows.smri.freesurfer, and it can be run with::
10+
This script, tessellation_tutorial.py, demonstrates the use of create_tessellation_flow from niflow.nipype1.workflows.smri.freesurfer, and it can be run with::
1111
1212
python tessellation_tutorial.py
1313
@@ -39,7 +39,7 @@
3939
import nipype.interfaces.io as nio # Data i/o
4040
import os
4141
import os.path as op
42-
from nipype.workflows.smri.freesurfer import create_tessellation_flow
42+
from niflow.nipype1.workflows.smri.freesurfer import create_tessellation_flow
4343
"""
4444
Directories
4545
===========

package/setup.cfg

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ classifiers =
1818
[options]
1919
packages = find:
2020
# Place any Python dependencies here
21-
install_requires = nipype
21+
install_requires =
22+
nipype
23+
niflow-nipype1-workflows
2224
# Uncomment the following line if your package should distribute any non-Python files
2325
# include_package_data = True
2426

0 commit comments

Comments
 (0)