-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from UNFmontreal/dev
Update master to 3.2.0
- Loading branch information
Showing
35 changed files
with
828 additions
and
160 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Conda image for installing FSL tools | ||
FROM continuumio/miniconda3 AS build | ||
|
||
# Install FSL tools with conda | ||
COPY environment.yml /tmp/environment.yml | ||
RUN conda env create -f /tmp/environment.yml | ||
|
||
# Install and use conda-pack | ||
RUN conda install -c conda-forge conda-pack | ||
RUN conda-pack -n fsl -o /tmp/env.tar && \ | ||
mkdir /venv && cd /venv && tar xf /tmp/env.tar && \ | ||
rm /tmp/env.tar | ||
RUN /venv/bin/conda-unpack | ||
|
||
# Runtime image for executing FSL tools | ||
FROM debian:stable AS runtime | ||
|
||
# Copy the conda env from previous stage | ||
COPY --from=build /venv /venv | ||
|
||
# Point to conda executables | ||
ENV PATH="/venv/bin:$PATH" | ||
|
||
# Set FSL variables | ||
ENV FSLDIR="/venv" | ||
ENV FSLCONFDIR="${FSLDIR}/config" | ||
ENV FSLOUTPUTTYPE="NIFTI" | ||
ENV FSLMULTIFILEQUIT="TRUE" | ||
ENV FSLTCLSH="${FSLDIR}/bin/fsltclsh" | ||
ENV FSLWISH="${FSLDIR}/bin/fslwish" | ||
ENV FSLGECUDAQ="cuda.q" | ||
|
||
# Update and install some utils | ||
RUN apt-get -y update && apt-get -y install dc wget npm unzip | ||
|
||
# Fetch data | ||
RUN wget -P ${FSLDIR}/data https://git.fmrib.ox.ac.uk/fsl/data_standard/-/raw/master/MNI152_T1_1mm_brain.nii.gz | ||
|
||
# Install bids-validator | ||
RUN npm install -g bids-validator | ||
|
||
# Install dcm2niix | ||
WORKDIR / | ||
RUN wget https://github.com/rordenlab/dcm2niix/releases/download/v1.0.20240202/dcm2niix_lnx.zip | ||
RUN unzip dcm2niix_lnx.zip | ||
RUN mv dcm2niix /usr/bin/ | ||
|
||
# Install dcm2bids | ||
|
||
WORKDIR / | ||
ADD . /dcm2bids | ||
WORKDIR /dcm2bids | ||
RUN pip install -e . | ||
|
||
RUN pip install pydeface | ||
|
||
ENTRYPOINT ["dcm2bids"] |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.