Skip to content

Commit

Permalink
Changed FSL installation to just copy eddy_openmp and adjusted some e…
Browse files Browse the repository at this point in the history
…ddy inputs
  • Loading branch information
slimnsour authored and oesteban committed Feb 6, 2021
1 parent 1e6b4f2 commit bd1f332
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 31 deletions.
Binary file added .docker/fsl-6.0/bin/eddy_openmp
Binary file not shown.
31 changes: 1 addition & 30 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,38 +94,9 @@ ENV PATH="/usr/lib/fsl/5.0:/usr/lib/afni/bin:$PATH"

COPY .docker/fsl-6.0/bin/topup /usr/share/fsl/5.0/bin/topup
COPY .docker/fsl-6.0/bin/imglob /usr/share/fsl/5.0/bin/imglob
COPY .docker/fsl-6.0/bin/eddy_openmp /usr/lib/fsl/5.0/eddy_openmp
COPY .docker/fsl-6.0/lib/* /usr/lib/fsl/5.0/

ENV FSLDIR="/opt/fsl-5.0.11" \
PATH="/opt/fsl-5.0.11/bin:$PATH" \
FSLOUTPUTTYPE="NIFTI_GZ"

RUN apt-get update -qq && \
apt-get install -y -q --no-install-recommends \
bc \
dc \
file \
libfontconfig1 \
libfreetype6 \
libgl1-mesa-dev \
libglu1-mesa-dev \
libgomp1 \
libice6 \
libxcursor1 \
libxft2 \
libxinerama1 \
libxrandr2 \
libxrender1 \
libxt6 \
python \
wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
echo "Downloading FSL ..." && \
wget -q http://fsl.fmrib.ox.ac.uk/fsldownloads/fslinstaller.py && \
chmod 775 fslinstaller.py && \
/usr/bin/python fslinstaller.py -d /opt/fsl-5.0.11 -V 5.0.11 -q

# Installing ANTs 2.3.3 (NeuroDocker build)
# Note: the URL says 2.3.4 but it is actually 2.3.3
ENV ANTSPATH=/usr/lib/ants
Expand Down
2 changes: 1 addition & 1 deletion dmriprep/workflows/dwi/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _bold_reg_suffix(fallback):
# fmt:off
workflow.connect([
(dwi_reference_wf, eddy_wf, [
("outputnode.ref_image", "inputnode.dwi_file"),
("outputnode.dwi_file", "inputnode.dwi_file"),
("outputnode.dwi_mask", "inputnode.dwi_mask"),
]),
(inputnode, eddy_wf, [
Expand Down
1 change: 1 addition & 0 deletions dmriprep/workflows/dwi/eddy.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def init_eddy_wf(debug=False, name="eddy_wf"):

if debug:
eddy.inputs.niter = 1
eddy.inputs.is_shelled = True

# Generate the acqp and index files for eddy
gen_eddy_files = pe.Node(
Expand Down

0 comments on commit bd1f332

Please sign in to comment.