generated from FNNDSC/python-chrisapp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6eccdb2
commit cbf4c3f
Showing
10 changed files
with
103 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
FROM docker.io/fnndsc/pl-mni2common:base-1 | ||
FROM docker.io/fnndsc/pl-mni2common:base-2 AS base | ||
|
||
LABEL org.opencontainers.image.authors="FNNDSC <[email protected]>" \ | ||
org.opencontainers.image.title="pl-mnc2common" \ | ||
org.opencontainers.image.description="A ChRIS plugin to convert MINC volume and MNI .obj surface file formats to NIFTI and Wavefront OBJ respectively." | ||
FROM base AS mni2mz3-installer | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y curl | ||
|
||
# use micromamba to install binary python dependencies for multiarch build | ||
RUN \ | ||
--mount=type=cache,sharing=private,target=/home/mambauser/.mamba/pkgs,uid=57439,gid=57439 \ | ||
--mount=type=cache,sharing=private,target=/opt/conda/pkgs,uid=57439,gid=57439 \ | ||
micromamba install -y -n base -c conda-forge python=3.11.5 numpy=1.26.0 | ||
RUN curl --proto '=https' --tlsv1.2 -LsSf 'https://github.com/FNNDSC/mni2mz3/releases/download/v1.0.0-rc.5/installer.sh' | bash | ||
|
||
FROM base | ||
|
||
LABEL org.opencontainers.image.authors="Jennings.Zhang <[email protected]>" \ | ||
org.opencontainers.image.title="pl-mnc2common" \ | ||
org.opencontainers.image.description="A ChRIS plugin to convert MINC volume, .txt surface data, and MNI .obj surface file formats to NIFTI and MZ3." | ||
|
||
ARG SRCDIR=/usr/local/src/pl-mni2common | ||
WORKDIR ${SRCDIR} | ||
|
||
COPY --chown=57439:57439 requirements.txt . | ||
RUN --mount=type=cache,sharing=private,target=/home/mambauser/.cache/pip,uid=57439,gid=57439 \ | ||
pip install -r requirements.txt | ||
|
||
COPY --chown=mambauser:mambauser . . | ||
COPY . . | ||
ARG extras_require=none | ||
RUN pip install ".[${extras_require}]" \ | ||
&& cd / && rm -rf ${SRCDIR}/* | ||
WORKDIR / | ||
|
||
COPY --from=mni2mz3-installer /usr/local/bin/mni2mz3 /usr/local/bin/mni2mz3 | ||
|
||
CMD ["mni2common"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/incoming | ||
/outgoing |
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,22 @@ | ||
#!/bin/bash | ||
|
||
HERE="$(dirname "$(readlink -f "$0")")" | ||
|
||
urls=( | ||
https://github.com/aces/CIVET/raw/9818b3cbe8308249e7c373ef1a2a53956512143e/models/colin/colin_white_mc_mask_left.txt | ||
https://github.com/aces/CIVET/raw/9818b3cbe8308249e7c373ef1a2a53956512143e/models/colin/colin_white_mc_mask_right.txt | ||
https://github.com/aces/CIVET/raw/9818b3cbe8308249e7c373ef1a2a53956512143e/models/colin/colin_white_mc_left.obj | ||
https://github.com/aces/CIVET/raw/9818b3cbe8308249e7c373ef1a2a53956512143e/models/colin/colin_white_mc_right.obj | ||
https://github.com/aces/mni-models_colin27-lin/raw/60787485e2ed4e012bda4da8fc2b163384fc3431/colin27_t1_tal_lin.mnc.gz | ||
https://github.com/aces/mni-models_colin27-lin/raw/60787485e2ed4e012bda4da8fc2b163384fc3431/colin27_t1_tal_lin_headmask.mnc.gz | ||
https://github.com/aces/mni-models_colin27-lin/raw/60787485e2ed4e012bda4da8fc2b163384fc3431/colin27_t1_tal_lin_mask.mnc.gz | ||
) | ||
|
||
set -ex | ||
|
||
cd "$HERE" | ||
mkdir -v incoming | ||
cd incoming | ||
|
||
parallel wget -q ::: ${urls[@]} | ||
find -type f -name '*.gz' | parallel gzip -d |
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 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 |
---|---|---|
|
@@ -21,12 +21,12 @@ def get_version(rel_path: str) -> str: | |
setup( | ||
name='mni2common', | ||
version=get_version('mni2common.py'), | ||
description='A ChRIS plugin to convert MINC volume and MNI .obj surface file formats to NIFTI and Wavefront OBJ respectively.', | ||
description='A ChRIS plugin to convert MINC volume and MNI .obj surface file formats to NIFTI and MZ3 OBJ respectively.', | ||
author='FNNDSC', | ||
author_email='[email protected]', | ||
url='https://github.com/FNNDSC/pl-mni2common', | ||
py_modules=['mni2common'], | ||
install_requires=['chris_plugin', 'pybicpl', 'tqdm'], | ||
install_requires=['chris_plugin==0.3.1', 'tqdm~=4.66'], | ||
license='MIT', | ||
entry_points={ | ||
'console_scripts': [ | ||
|