Skip to content

Commit 55a02b8

Browse files
authored
Merge pull request #131 from oesteban/enh/remove-fmriprep-dep
ENH: Use ``bbregister`` upstreamed to NiWorkflows, with sloppy mode
2 parents 6e409a2 + 67289e6 commit 55a02b8

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

dmriprep/workflows/base.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
from nipype.interfaces import utility as niu
99

1010
from niworkflows.engine.workflows import LiterateWorkflow as Workflow
11+
from niworkflows.anat.coregistration import init_bbreg_wf
1112
from niworkflows.interfaces.bids import BIDSInfo, BIDSFreeSurferDir
1213
from niworkflows.utils.misc import fix_multi_T1w_source_name
1314
from niworkflows.utils.spaces import Reference
1415
from smriprep.workflows.anatomical import init_anat_preproc_wf
15-
from fmriprep.workflows.bold.registration import init_bbreg_wf
1616

1717
from ..interfaces import DerivativesDataSink, BIDSDataGrabber
1818
from ..interfaces.reports import SubjectSummary, AboutSummary
@@ -362,10 +362,9 @@ def init_single_subject_wf(subject_id):
362362
t1w_brain = pe.Node(ApplyMask(), name="t1w_brain")
363363

364364
bbr_wf = init_bbreg_wf(
365-
bold2t1w_dof=6,
366-
bold2t1w_init=config.workflow.dwi2t1w_init,
365+
debug=config.execution.debug,
366+
epi2t1w_init=config.workflow.dwi2t1w_init,
367367
omp_nthreads=config.nipype.omp_nthreads,
368-
use_bbr=True,
369368
)
370369

371370
ds_report_reg = pe.Node(
@@ -388,8 +387,6 @@ def _bold_reg_suffix(fallback):
388387
(early_b0ref_wf, bbr_wf, [
389388
("outputnode.dwi_reference", "inputnode.in_file")
390389
]),
391-
(t1w_brain, bbr_wf, [("out_file", "inputnode.t1w_brain")]),
392-
(anat_preproc_wf, bbr_wf, [("outputnode.t1w_dseg", "inputnode.t1w_dseg")]),
393390
(fsinputnode, bbr_wf, [("subjects_dir", "inputnode.subjects_dir")]),
394391
(bids_info, bbr_wf, [(("subject", _prefix), "inputnode.subject_id")]),
395392
(anat_preproc_wf, bbr_wf, [

docs/requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
git+https://github.com/AleksandarPetrov/napoleon.git@0dc3f28a309ad602be5f44a9049785a1026451b3#egg=sphinxcontrib-napoleon
22
git+https://github.com/rwblair/sphinxcontrib-versioning.git@39b40b0b84bf872fc398feff05344051bbce0f63#egg=sphinxcontrib-versioning
3-
fmriprep
43
nbsphinx
5-
nipype ~= 1.4
6-
git+https://github.com/nipreps/niworkflows.git@master#egg=niworkflows
4+
nipype ~= 1.5.1
5+
git+https://github.com/oesteban/niworkflows.git@cc328fee37266985ed3f9f7ca42f3e3f1ac26487#egg=niworkflows
76
packaging
87
pydot>=1.2.3
98
pydotplus

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ install_requires =
2525
indexed_gzip >=0.8.8
2626
nibabel ~= 3.0
2727
nipype ~= 1.5.1
28-
niworkflows ~= 1.3.2
28+
niworkflows @ git+https://github.com/oesteban/niworkflows.git@cc328fee37266985ed3f9f7ca42f3e3f1ac26487
2929
numpy
3030
pybids >= 0.11.1
3131
pyyaml
3232
sdcflows ~= 1.3.3
3333
smriprep ~= 0.7.0
3434
templateflow ~= 0.6
3535
toml
36-
fmriprep ~= 20.2
3736
setup_requires =
3837
setuptools >= 40.8.0
3938
test_requires =

0 commit comments

Comments
 (0)