Skip to content

Commit 072655e

Browse files
committed
update OASIS-TRT individual brains and labels
1 parent 131cc0c commit 072655e

File tree

3 files changed

+31
-19
lines changed

3 files changed

+31
-19
lines changed

install/Dockerfile

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated by Neurodocker version 0.4.1
2-
# Timestamp: 2018-10-05 14:45:31 UTC
1+
# Generated by Neurodocker version 0.4.2
2+
# Timestamp: 2018-11-06 01:58:12 UTC
33
#
44
# Thank you for using Neurodocker. If you discover any issues
55
# or ways to improve this software, please submit an issue or
@@ -135,7 +135,7 @@ RUN export PATH="/opt/miniconda-latest/bin:$PATH" \
135135
nose \
136136
&& sync && conda clean -tipsy && sync \
137137
&& bash -c "source activate mb \
138-
&& pip install --no-cache-dir \
138+
&& pip install --no-cache-dir \
139139
datalad[full] \
140140
duecredit" \
141141
&& rm -rf ~/.cache/pip/* \
@@ -148,13 +148,19 @@ RUN mkdir -p /opt/data && cd /opt/data && \
148148
curl -sSL https://osf.io/download/rh9km/?revision=2 -o templates.zip && \
149149
unzip templates.zip && \
150150
rm -f /opt/data/templates.zip && \
151+
curl -sSL https://files.osf.io/v1/resources/hvc52/providers/osfstorage/57c1a8f06c613b01f98d68a9/?zip= -o OASIS-TRT-20_brains.zip && \
152+
mkdir OASIS-TRT-20_brains && \
153+
cd OASIS-TRT-20_brains && \
154+
unzip ../OASIS-TRT-20_brains.zip && \
155+
cd .. && \
156+
rm OASIS-TRT-20_brains.zip && \
157+
curl -sSL https://files.osf.io/v1/resources/zevma/providers/osfstorage/5783dfcab83f6901f963735c/?zip= -o cmalabels.zip && \
158+
mkdir OASIS-TRT-20_DKT31_CMA_labels_v2 && \
159+
cd OASIS-TRT-20_DKT31_CMA_labels_v2 && \
160+
unzip ../cmalabels.zip && \
161+
cd .. && \
162+
rm cmalabels.zip && \
151163
curl -sSL https://osf.io/download/d2cmy/ -o OASIS-TRT-20_jointfusion_DKT31_CMA_labels_in_OASIS-30_v2.nii.gz && \
152-
curl -sSL https://osf.io/download/qz3kx/ -o OASIS-TRT_brains_to_OASIS_Atropos_template.tar.gz && \
153-
tar zxf OASIS-TRT_brains_to_OASIS_Atropos_template.tar.gz && \
154-
rm OASIS-TRT_brains_to_OASIS_Atropos_template.tar.gz && \
155-
curl -sSL https://osf.io/download/dcf94/ -o OASIS-TRT_labels_to_OASIS_Atropos_template.tar.gz && \
156-
tar zxf OASIS-TRT_labels_to_OASIS_Atropos_template.tar.gz && \
157-
rm OASIS-TRT_labels_to_OASIS_Atropos_template.tar.gz && \
158164
rm -rf __MACOSX
159165

160166
RUN bash -c 'source /opt/miniconda-latest/etc/profile.d/conda.sh && \
@@ -262,7 +268,7 @@ RUN echo '{ \
262268
\n ], \
263269
\n [ \
264270
\n "run", \
265-
\n "mkdir -p /opt/data && cd /opt/data && \\\\n curl -sSL https://osf.io/download/rh9km/?revision=2 -o templates.zip && \\\\n unzip templates.zip && \\\\n rm -f /opt/data/templates.zip && \\\\n curl -sSL https://osf.io/download/d2cmy/ -o OASIS-TRT-20_jointfusion_DKT31_CMA_labels_in_OASIS-30_v2.nii.gz && \\\\n curl -sSL https://osf.io/download/qz3kx/ -o OASIS-TRT_brains_to_OASIS_Atropos_template.tar.gz && \\\\n tar zxf OASIS-TRT_brains_to_OASIS_Atropos_template.tar.gz && \\\\n rm OASIS-TRT_brains_to_OASIS_Atropos_template.tar.gz && \\\\n curl -sSL https://osf.io/download/dcf94/ -o OASIS-TRT_labels_to_OASIS_Atropos_template.tar.gz && \\\\n tar zxf OASIS-TRT_labels_to_OASIS_Atropos_template.tar.gz && \\\\n rm OASIS-TRT_labels_to_OASIS_Atropos_template.tar.gz && \\\\n rm -rf __MACOSX" \
271+
\n "mkdir -p /opt/data && cd /opt/data && \\\\n curl -sSL https://osf.io/download/rh9km/?revision=2 -o templates.zip && \\\\n unzip templates.zip && \\\\n rm -f /opt/data/templates.zip && \\\\n curl -sSL https://files.osf.io/v1/resources/hvc52/providers/osfstorage/57c1a8f06c613b01f98d68a9/?zip= -o OASIS-TRT-20_brains.zip && \\\\n mkdir OASIS-TRT-20_brains && \\\\n cd OASIS-TRT-20_brains && \\\\n unzip ../OASIS-TRT-20_brains.zip && \\\\n cd .. && \\\\n rm OASIS-TRT-20_brains.zip && \\\\n curl -sSL https://files.osf.io/v1/resources/zevma/providers/osfstorage/5783dfcab83f6901f963735c/?zip= -o cmalabels.zip && \\\\n mkdir OASIS-TRT-20_DKT31_CMA_labels_v2 && \\\\n cd OASIS-TRT-20_DKT31_CMA_labels_v2 && \\\\n unzip ../cmalabels.zip && \\\\n cd .. && \\\\n rm cmalabels.zip && \\\\n curl -sSL https://osf.io/download/d2cmy/ -o OASIS-TRT-20_jointfusion_DKT31_CMA_labels_in_OASIS-30_v2.nii.gz && \\\\n rm -rf __MACOSX" \
266272
\n ], \
267273
\n [ \
268274
\n "run_bash", \

install/neurodocker.sh

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
###############################################################################
4545

4646
# Generate a dockerfile for building a mindboggle container
47-
docker run --rm kaczmarj/neurodocker:0.4.1 generate docker \
47+
docker run --rm kaczmarj/neurodocker:0.4.2 generate docker \
4848
--base neurodebian:stretch \
4949
--pkg-manager apt \
5050
--install graphviz tree git-annex-standalone vim \
@@ -64,13 +64,19 @@ docker run --rm kaczmarj/neurodocker:0.4.1 generate docker \
6464
curl -sSL https://osf.io/download/rh9km/?revision=2 -o templates.zip && \
6565
unzip templates.zip && \
6666
rm -f /opt/data/templates.zip && \
67+
curl -sSL https://files.osf.io/v1/resources/hvc52/providers/osfstorage/57c1a8f06c613b01f98d68a9/?zip= -o OASIS-TRT-20_brains.zip && \
68+
mkdir OASIS-TRT-20_brains && \
69+
cd OASIS-TRT-20_brains && \
70+
unzip ../OASIS-TRT-20_brains.zip && \
71+
cd .. && \
72+
rm OASIS-TRT-20_brains.zip && \
73+
curl -sSL https://files.osf.io/v1/resources/zevma/providers/osfstorage/5783dfcab83f6901f963735c/?zip= -o cmalabels.zip && \
74+
mkdir OASIS-TRT-20_DKT31_CMA_labels_v2 && \
75+
cd OASIS-TRT-20_DKT31_CMA_labels_v2 && \
76+
unzip ../cmalabels.zip && \
77+
cd .. && \
78+
rm cmalabels.zip && \
6779
curl -sSL https://osf.io/download/d2cmy/ -o OASIS-TRT-20_jointfusion_DKT31_CMA_labels_in_OASIS-30_v2.nii.gz && \
68-
curl -sSL https://osf.io/download/qz3kx/ -o OASIS-TRT_brains_to_OASIS_Atropos_template.tar.gz && \
69-
tar zxf OASIS-TRT_brains_to_OASIS_Atropos_template.tar.gz && \
70-
rm OASIS-TRT_brains_to_OASIS_Atropos_template.tar.gz && \
71-
curl -sSL https://osf.io/download/dcf94/ -o OASIS-TRT_labels_to_OASIS_Atropos_template.tar.gz && \
72-
tar zxf OASIS-TRT_labels_to_OASIS_Atropos_template.tar.gz && \
73-
rm OASIS-TRT_labels_to_OASIS_Atropos_template.tar.gz && \
7480
rm -rf __MACOSX' \
7581
--run-bash 'source /opt/miniconda-latest/etc/profile.d/conda.sh && \
7682
conda activate mb && \

mindboggle/mindboggle123

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ if args.skip_ants:
300300
else:
301301
comps = TDIR.split(os.sep)
302302
IDIR = os.sep.join(comps[:(-2 if not comps[-1] else -1)] +
303-
['OASIS-TRT_brains_to_OASIS_Atropos_template'])
303+
['OASIS-TRT-20_brains'])
304304
LDIR = os.sep.join(comps[:(-2 if not comps[-1] else -1)] +
305-
['OASIS-TRT_labels_to_OASIS_Atropos_template'])
305+
['OASIS-TRT-20_DKT31_CMA_labels_v2'])
306306
T1s = human_order_sorted(glob(os.path.join(IDIR, '*.nii.gz')))
307307
labels = human_order_sorted(glob(os.path.join(LDIR, '*.nii.gz')))
308308
N = args.segN or len(T1s)

0 commit comments

Comments
 (0)