Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 6f57adc

Browse files
committed
fix: updated docker with latest nipype, to run eddy with cnr and residuals output
1 parent 4de6634 commit 6f57adc

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

dmriprep/run.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os.path as op
2+
import os
23
from shutil import copyfile
34

45

@@ -357,6 +358,10 @@ def get_dmriprep_pe_workflow():
357358

358359
eddy = prep.get_node('fsl_eddy')
359360
eddy.inputs.repol = True
361+
eddy.inputs.cnr_maps = True
362+
eddy.inputs.residuals = True
363+
import multiprocessing
364+
eddy.inputs.num_threads = multiprocessing.cpu_count()
360365

361366
def id_outliers_fn(outlier_report, threshold, dwi_file):
362367
"""Get list of scans that exceed threshold for number of outliers
@@ -669,6 +674,10 @@ def binarize_aparc(aparc_aseg):
669674
datasink, "dmriprep.qc.@eddyparamsshellalign")
670675
wf.connect(prep, "fsl_eddy.out_parameter",
671676
datasink, "dmriprep.qc.@eddyparams")
677+
wf.connect(prep, "fsl_eddy.out_cnr_maps",
678+
datasink, "dmriprep.qc.@eddycndr")
679+
wf.connect(prep, "fsl_eddy.out_residuals",
680+
datasink, "dmriprep.qc.@eddyresid")
672681

673682
# the file that told us which volumes to trop
674683
wf.connect(id_outliers_node, "outpath", datasink, "dmriprep.qc.@droppedscans")

docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ RUN apt-get update -qq \
132132

133133
COPY ./license.txt /opt/freesurfer-6.0.0/license.txt
134134

135+
#&& sync && conda clean -tipsy && sync
136+
RUN apt-get install -y libopenblas-base
137+
ENV LD_LIBRARY_PATH=/usr/lib/openblas-base/
138+
135139
ADD environment.yml environment.yml
136140
RUN apt-get update && apt-get install -y git gcc
137141
RUN conda env create -f environment.yml
138142

139-
#&& sync && conda clean -tipsy && sync
140-
RUN apt-get install libopenblas-base
141-
ENV LD_LIBRARY_PATH=/usr/lib/openblas-base/
142-
143143
RUN sed -i '$isource activate dmriprep' $ND_ENTRYPOINT
144144

145145

docker/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ dependencies:
1111
- pandas
1212
- tqdm
1313
- pip:
14-
- "--editable=git+https://github.com/nipy/nipype@fa0a101fec2d010dcb68910000f66d7c64e5d03e#egg=nipype"
14+
- "--editable=git+https://github.com/nipy/nipype@35b58cdb59a900430f4b9639e220c8408341805d#egg=nipype"
1515
- bids
1616
- duecredit

0 commit comments

Comments
 (0)