-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit and PR fixes and updates mridefacer, as it crashed based on inconsistencies in the respective function's setup. The following files were changed: - generate_iamges.sh & Dockerfile -> FSL templates were added to the container as they are needed by mridefacer - defacing_algorithms -> mridefacer commands and workflow were updated to remove problems wrt copying of the face mask & add the --outdir argument to write defaced images to the respective BIDS root directory - run_deeid -> updated to reflect the changes made in defacing_algorithms
- Loading branch information
1 parent
61d389e
commit 5ddcc42
Showing
4 changed files
with
131 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Your version: 0.6.0 Latest version: 0.7.0 | ||
# Generated by Neurodocker version 0.6.0 | ||
# Timestamp: 2021-04-13 14:10:53 UTC | ||
# Timestamp: 2021-06-07 18:59:26 UTC | ||
# | ||
# Thank you for using Neurodocker. If you discover any issues | ||
# or ways to improve this software, please submit an issue or | ||
|
@@ -44,6 +44,7 @@ ENTRYPOINT ["/neurodocker/startup.sh"] | |
RUN apt-get update -qq \ | ||
&& apt-get install -y -q --no-install-recommends \ | ||
fsl-core \ | ||
fsl-mni152-templates \ | ||
git \ | ||
num-utils \ | ||
gcc \ | ||
|
@@ -116,4 +117,122 @@ ENV IS_DOCKER="1" | |
|
||
WORKDIR /tmp/ | ||
|
||
ENTRYPOINT ["/neurodocker/startup.sh", "bidsonym"] | ||
ENTRYPOINT ["/neurodocker/startup.sh", "bidsonym"] | ||
|
||
RUN echo '{ \ | ||
\n "pkg_manager": "apt", \ | ||
\n "instructions": [ \ | ||
\n [ \ | ||
\n "base", \ | ||
\n "neurodebian:stretch-non-free" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "install", \ | ||
\n [ \ | ||
\n "fsl-core", \ | ||
\n "fsl-mni152-templates", \ | ||
\n "git", \ | ||
\n "num-utils", \ | ||
\n "gcc", \ | ||
\n "g++", \ | ||
\n "curl", \ | ||
\n "build-essential", \ | ||
\n "nano" \ | ||
\n ] \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt-get install -y nodejs && apt-get install -y npm" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "add_to_entrypoint", \ | ||
\n "source /etc/fsl/fsl.sh" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "miniconda", \ | ||
\n { \ | ||
\n "conda_install": [ \ | ||
\n "python=3.6", \ | ||
\n "numpy", \ | ||
\n "nipype", \ | ||
\n "nibabel", \ | ||
\n "pandas" \ | ||
\n ], \ | ||
\n "pip_install": [ \ | ||
\n "deepdefacer", \ | ||
\n "tensorflow", \ | ||
\n "scikit-image" \ | ||
\n ], \ | ||
\n "create_env": "bidsonym", \ | ||
\n "activate": true \ | ||
\n } \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "source activate bidsonym && git clone https://github.com/poldracklab/pydeface.git && cd pydeface && python setup.py install && cd -" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "source activate bidsonym && git clone https://github.com/nipy/quickshear.git && cd quickshear && python setup.py install && cd -" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "source activate bidsonym && git clone https://github.com/neuronets/nobrainer.git && cd nobrainer && python setup.py install && cd -" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "mkdir -p /opt/nobrainer/models && cd /opt/nobrainer/models && curl -LJO https://github.com/neuronets/nobrainer-models/releases/download/0.1/brain-extraction-unet-128iso-model.h5 && cd ~ " \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "git clone https://github.com/mih/mridefacer" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "env", \ | ||
\n { \ | ||
\n "MRIDEFACER_DATA_DIR": "/mridefacer/data" \ | ||
\n } \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "npm install -g [email protected]" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "mkdir /home/mri-deface-detector && cd /home/mri-deface-detector && npm install sharp --unsafe-perm && npm install -g mri-deface-detector --unsafe-perm && cd ~" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "git clone https://github.com/miykael/gif_your_nifti && cd gif_your_nifti && source activate bidsonym && python setup.py install" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "copy", \ | ||
\n [ \ | ||
\n ".", \ | ||
\n "/home/bm" \ | ||
\n ] \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "chmod a+x /home/bm/bidsonym/fs_data/mri_deface" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "run_bash", \ | ||
\n "source activate bidsonym && cd /home/bm && pip install -e ." \ | ||
\n ], \ | ||
\n [ \ | ||
\n "env", \ | ||
\n { \ | ||
\n "IS_DOCKER": "1" \ | ||
\n } \ | ||
\n ], \ | ||
\n [ \ | ||
\n "workdir", \ | ||
\n "/tmp/" \ | ||
\n ], \ | ||
\n [ \ | ||
\n "entrypoint", \ | ||
\n "/neurodocker/startup.sh bidsonym" \ | ||
\n ] \ | ||
\n ] \ | ||
\n}' > /neurodocker/neurodocker_specs.json |
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