Skip to content

Commit b4ac468

Browse files
committed
Updated the version of nilearn on the conda environment and changed the installation process to install the archive files for specific versions.
1 parent 6867148 commit b4ac468

File tree

3 files changed

+58
-52
lines changed

3 files changed

+58
-52
lines changed

Dockerfile

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -124,30 +124,31 @@ RUN export PATH="$HOME/miniconda-latest/bin:$PATH" \
124124

125125

126126
#### install RABIES
127-
128-
RUN git clone https://github.com/CoBrALab/RABIES temp/RABIES && \
129-
conda env create -f temp/RABIES/rabies_environment.yml && \
130-
bash temp/RABIES/install.sh && \
131-
rm -r temp
132-
133-
# create WM and CSF masks
134-
ENV DSURQE_100micron_anat=/home/rabies/RABIES/template_files/DSURQE_100micron_average.nii.gz \
135-
DSURQE_100micron_mask=/home/rabies/RABIES/template_files/DSURQE_100micron_mask.nii.gz \
136-
DSURQE_100micron_labels=/home/rabies/RABIES/template_files/DSURQE_100micron_labels.nii.gz \
137-
csv_labels=/home/rabies/RABIES/template_files/DSURQE_40micron_R_mapping.csv
138-
139-
RUN /home/rabies/miniconda-latest/envs/rabies/bin/python /home/rabies/RABIES/gen_masks.py $DSURQE_100micron_labels $csv_labels /home/rabies/RABIES/template_files/DSURQE_100micron
140-
141-
142-
#write container execution script
143-
RUN echo "#! /home/rabies/miniconda-latest/envs/rabies/bin/python" > /home/rabies/RABIES/exec.py && \
144-
echo "import os" >> /home/rabies/RABIES/exec.py && \
145-
echo "import sys" >> /home/rabies/RABIES/exec.py && \
146-
echo "os.environ['RABIES'] = '/home/rabies/RABIES'" >> /home/rabies/RABIES/exec.py && \
147-
echo "sys.path.insert(0,os.environ['RABIES'])" >> /home/rabies/RABIES/exec.py && \
148-
echo "from rabies.run_main import execute_workflow" >> /home/rabies/RABIES/exec.py && \
149-
echo "execute_workflow()" >> /home/rabies/RABIES/exec.py && \
150-
chmod +x /home/rabies/RABIES/exec.py
127+
ENV export RABIES_VERSION=0.1.1 \
128+
export RABIES=$HOME/RABIES-${RABIES_VERSION} \
129+
export PYTHONPATH="${PYTHONPATH}:$RABIES"
130+
131+
RUN export RABIES_VERSION=0.1.1 && \
132+
export RABIES=$HOME/RABIES-${RABIES_VERSION} && \
133+
mkdir -p temp && \
134+
curl -L --retry 5 -o temp/RABIES.tar.gz https://github.com/CoBrALab/RABIES/archive/${RABIES_VERSION}.tar.gz && \
135+
cd temp && \
136+
tar zxf RABIES.tar.gz && \
137+
cd .. && \
138+
conda env create -f temp/RABIES-${RABIES_VERSION}/rabies_environment.yml && \
139+
bash temp/RABIES-${RABIES_VERSION}/install.sh && \
140+
rm -r temp && \
141+
DSURQE_100micron_labels=${RABIES}/template_files/DSURQE_100micron_labels.nii.gz && \
142+
csv_labels=${RABIES}/template_files/DSURQE_40micron_R_mapping.csv && \
143+
/home/rabies/miniconda-latest/envs/rabies/bin/python ${RABIES}/gen_masks.py $DSURQE_100micron_labels $csv_labels ${RABIES}/template_files/DSURQE_100micron && \
144+
echo "#! /home/rabies/miniconda-latest/envs/rabies/bin/python" > ${RABIES}/exec.py && \
145+
echo "import os" >> ${RABIES}/exec.py && \
146+
echo "import sys" >> ${RABIES}/exec.py && \
147+
echo "os.environ['RABIES'] = '${RABIES}'" >> ${RABIES}/exec.py && \
148+
echo "sys.path.insert(0,os.environ['RABIES'])" >> ${RABIES}/exec.py && \
149+
echo "from rabies.run_main import execute_workflow" >> ${RABIES}/exec.py && \
150+
echo "execute_workflow()" >> ${RABIES}/exec.py && \
151+
chmod +x ${RABIES}/exec.py
151152

152153
ENV QBATCH_SYSTEM local
153154

install.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
### setup RABIES execution and DSURQE atlas
22

33
#will install RABIES in HOME directory
4-
export RABIES=$HOME/RABIES
4+
export RABIES_VERSION=0.1.1
5+
export RABIES=$HOME/RABIES-${RABIES_VERSION}
56
export PYTHONPATH="${PYTHONPATH}:$RABIES"
67

7-
git clone https://github.com/CoBrALab/RABIES $HOME/RABIES
8+
#cd $HOME
9+
#curl -L --retry 5 -o $HOME/RABIES.tar.gz https://github.com/CoBrALab/RABIES/archive/${RABIES_VERSION}.tar.gz
10+
#tar zxf $HOME/RABIES.tar.gz
11+
#rm $HOME/RABIES.tar.gz
12+
git clone https://github.com/CoBrALab/RABIES $RABIES
813

914
#creates an executable script to execute rabies
1015
mkdir -p $RABIES/bin
1116
echo -e '#! /usr/bin/env python \nfrom rabies.run_main import execute_workflow \nexecute_workflow()' > $RABIES/bin/rabies
1217
chmod +x $RABIES/bin/rabies
1318
echo "# added by RABIES" >> $HOME/.bashrc
19+
echo "export RABIES_VERSION=0.1.1" >> $HOME/.bashrc
1420
echo "export RABIES=$RABIES" >> $HOME/.bashrc
1521
echo 'export PYTHONPATH="${PYTHONPATH}:$RABIES"' >> $HOME/.bashrc
1622
echo 'export PATH=$PATH:$RABIES/bin' >> $HOME/.bashrc

rabies_environment.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
11
name: rabies
22
channels:
3-
- simpleitk
43
- defaults
54
- conda-forge
5+
- bioconda
6+
- simpleitk
67
dependencies:
7-
- blas=2.11=openblas
8-
- keepalive=0.5=py_1
9-
- libblas=3.8.0=11_openblas
10-
- libcblas=3.8.0=11_openblas
11-
- liblapack=3.8.0=11_openblas
12-
- liblapacke=3.8.0=11_openblas
13-
- multiprocess=0.70.8=py36h516909a_1
14-
- nibabel=2.3.1=pyh24bf2e0_0
15-
- nilearn=0.4.2=pyh24bf2e0_0
16-
- nipype=1.1.4=py36_0
17-
- pathos=0.2.4=py_0
18-
- pox=0.2.6=py_0
19-
- ppft=1.6.6.1=py36_0
20-
- prov=1.5.0=py36_0
21-
- pydicom=1.3.0=py_0
22-
- rdflib=4.2.2=py36_1000
23-
- sparqlwrapper=1.8.2=py36_1000
24-
- xvfbwrapper=0.2.9=py36_1000
258
- _libgcc_mutex=0.1=main
269
- apipkg=1.5=py36_0
2710
- atomicwrites=1.3.0=py36_1
2811
- attrs=19.1.0=py36_1
29-
- ca-certificates=2019.5.15=1
12+
- blas=2.11=openblas
13+
- ca-certificates=2019.10.16=0
3014
- cairo=1.14.12=h8948797_3
31-
- certifi=2019.6.16=py36_1
15+
- certifi=2019.9.11=py36_0
3216
- click=7.0=py36_0
3317
- cloudpickle=1.2.2=py_0
3418
- cycler=0.10.0=py36_0
@@ -59,11 +43,16 @@ dependencies:
5943
- importlib_metadata=0.19=py36_0
6044
- isodate=0.6.0=py_1
6145
- jpeg=9b=h024ee3a_2
46+
- keepalive=0.5=py_1
6247
- kiwisolver=1.1.0=py36he6710b0_0
48+
- libblas=3.8.0=11_openblas
49+
- libcblas=3.8.0=11_openblas
6350
- libedit=3.1.20181209=hc058e9b_0
6451
- libffi=3.2.1=hd88cf55_4
6552
- libgcc-ng=9.1.0=hdf63c60_0
6653
- libgfortran-ng=7.3.0=hdf63c60_0
54+
- liblapack=3.8.0=11_openblas
55+
- liblapacke=3.8.0=11_openblas
6756
- libopenblas=0.3.6=h5a2b251_1
6857
- libpng=1.6.37=hbc83047_0
6958
- libstdcxx-ng=9.1.0=hdf63c60_0
@@ -76,22 +65,31 @@ dependencies:
7665
- matplotlib=3.1.1=py36h5429711_0
7766
- mock=3.0.5=py36_0
7867
- more-itertools=7.2.0=py36_0
68+
- multiprocess=0.70.8=py36h516909a_1
7969
- ncurses=6.1=he6710b0_1
8070
- networkx=2.3=py_0
71+
- nibabel=2.3.1=pyh24bf2e0_0
72+
- nilearn=0.5.2=pyh24bf2e0_0
73+
- nipype=1.1.4=py36_0
8174
- numpy=1.16.2=py36h99e49ec_0
8275
- numpy-base=1.16.2=py36h2f8d375_0
8376
- olefile=0.46=py36_0
84-
- openssl=1.1.1d=h7b6447c_1
77+
- openssl=1.1.1d=h7b6447c_3
8578
- packaging=19.1=py36_0
8679
- pandas=0.25.1=py36he6710b0_0
8780
- pango=1.42.4=h049681c_0
81+
- pathos=0.2.4=py_0
8882
- pcre=8.43=he6710b0_0
8983
- pillow=6.1.0=py36h34e0f95_0
9084
- pip=19.2.2=py36_0
9185
- pixman=0.38.0=h7b6447c_0
9286
- pluggy=0.12.0=py_0
87+
- pox=0.2.6=py_0
88+
- ppft=1.6.6.1=py36_0
89+
- prov=1.5.0=py36_0
9390
- psutil=5.6.3=py36h7b6447c_0
9491
- py=1.8.0=py36_0
92+
- pydicom=1.3.0=py_0
9593
- pydotplus=2.0.2=py36_1
9694
- pyparsing=2.4.2=py_0
9795
- pyqt=5.9.2=py36h05f1152_2
@@ -104,14 +102,17 @@ dependencies:
104102
- pytz=2019.2=py_0
105103
- pywavelets=1.0.3=py36hdd07704_1
106104
- qt=5.9.7=h5867ecd_1
105+
- rdflib=4.2.2=py36_1000
107106
- readline=7.0=h7b6447c_5
108107
- scikit-image=0.15.0=py36he6710b0_0
109108
- scikit-learn=0.20.0=py36h22eb022_1
110109
- scipy=1.3.1=py36he2b7bc3_0
111110
- setuptools=41.0.1=py36_0
111+
- simpleitk=1.2.2=py36hf484d3e_0
112112
- simplejson=3.16.0=py36h14c3975_0
113113
- sip=4.19.8=py36hf484d3e_0
114114
- six=1.12.0=py36_0
115+
- sparqlwrapper=1.8.2=py36_1000
115116
- sqlite=3.29.0=h7b6447c_0
116117
- tk=8.6.8=hbc83047_0
117118
- toolz=0.10.0=py_0
@@ -121,17 +122,15 @@ dependencies:
121122
- wcwidth=0.1.7=py36_0
122123
- webencodings=0.5.1=py36_1
123124
- wheel=0.33.4=py36_0
125+
- xvfbwrapper=0.2.9=py36_1000
124126
- xz=5.2.4=h14c3975_4
125127
- zipp=0.5.2=py_0
126128
- zlib=1.2.11=h7b6447c_3
127129
- zstd=1.3.7=h0b5b093_0
128-
- simpleitk=1.2.2=py36hf484d3e_0
129130
- pip:
130131
- bids-validator==1.2.4
131-
- dask==2.3.0
132132
- docopt==0.6.2
133133
- num2words==0.5.10
134134
- patsy==0.5.1
135-
- pybids==0.9.4
135+
- pybids==0.9.5
136136
- sqlalchemy==1.3.10
137-

0 commit comments

Comments
 (0)