-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtombo_on_NCI
46 lines (36 loc) · 1.86 KB
/
tombo_on_NCI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#load python modules to load numpy
module load python3/3.5.2
module load python3/3.5.2-matplotlib
module load R/3.4.0
# make and call directory to install Tombo
mkdir -p /short/sd34/ap5514/myapps/tombo/1.2.1
cd /short/sd34/ap5514/myapps/tombo/1.2.1
# Install pip package (numpy install required before tombo for cython optimization) and upgrade pip to environment
pip3 install ont-tombo[full]
pip3 install ont-tombo[full] --upgrade pip --prefix /short/sd34/ap5514/myapps/tombo/1.2.1 --ignore-installed
# Install python requirements
module load python3/3.5.2
pip3 install numpy --upgrade pip --prefix /short/sd34/ap5514/myapps/tombo/1.2.1/ --ignore-installed
pip3 install scipy --upgrade pip --prefix /short/sd34/ap5514/myapps/tombo/1.2.1/ --ignore-installed
pip3 install h5py --upgrade pip --prefix /short/sd34/ap5514/myapps/tombo/1.2.1/ --ignore-installed
pip3 install cython --upgrade pip --prefix /short/sd34/ap5514/myapps/tombo/1.2.1/ --ignore-installed
pip3 install mappy --upgrade pip --prefix /short/sd34/ap5514/myapps/tombo/1.2.1/ --ignore-installed
pip3 install pyfaidx --upgrade pip --prefix /short/sd34/ap5514/myapps/tombo/1.2.1/ --ignore-installed
# Install R requirements
module load R/3.4.0
install.packages("ggplot2")
install.packages("rpy2") # could not be installed, as rpy2 is unavailable for R/3.4.0 and R/3.4.3
install.packages("gridExtra")
#paste this to make module
#%Module1.0#####################################################################
source /opt/Modules/extensions/extensions.tcl
proc ModulesHelp { } {
puts stderr "\tAdds tombo bin directory to the path"
}
module-whatis "tombo"
soft-prereq python3/3.5.2
soft-prereq python3/3.5.2-matplotlib
soft-prereq R/3.4.0
set tomboversion 1.2.1
prepend-path PATH /short/sd34/ap5514/myapps/tombo/1.2.1/bin/
prepend-path PYTHONPATH /short/sd34/ap5514/myapps/tombo/1.2.1/lib/python3.5/site-packages