forked from Alexander-Stuckey/st_aligner_singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathst_aligner_bootstrap
More file actions
71 lines (61 loc) · 1.57 KB
/
st_aligner_bootstrap
File metadata and controls
71 lines (61 loc) · 1.57 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Bootstrap: debootstrap
OSVersion: bionic
MirrorURL: http://us.archive.ubuntu.com/ubuntu/
IncludeCmd: apt-get
%labels
Maintainer jose.fernandez.navarro@scilifelab.se
Version 1.0
%environment
LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH
%post
#----------------------
#Install required tools
#----------------------
apt-get -y update
apt-get -y install software-properties-common
apt-add-repository universe
apt-get -y update
apt-get -y install git cmake wget
apt-get -y install python3 python3-pip
wget -O - https://deb.nodesource.com/setup_9.x | bash
apt-get -y install nodejs
#--------------
#Install opencv
#--------------
apt-get -y install libopencv-dev
#----------------
#Make home folder
#----------------
mkdir -p /home/st_spot_detector
cd /home/st_spot_detector
#----------------------------------
#Install tissue recognition library
#----------------------------------
git clone https://github.com/SpatialTranscriptomicsResearch/st_tissue_recognition
cd st_tissue_recognition
mkdir -p build
cd build
cmake ..
make install -j`ls /sys/devices/system/cpu | grep -P '^cpu\d' | wc -l`
cd ../python-module
python3 setup.py install
cd ../..
#------------------------
#Install st spot detector
#------------------------
git clone https://github.com/SpatialTranscriptomicsResearch/st_spot_detector.git
cd st_spot_detector
git checkout tags/2.0.2
pip3 install -r server/requirements.txt
cd client
npm i graceful-fs
npm i
make dist
#--------
#Done! :)
#--------
exit 0
%runscript
cd /home/st_spot_detector/st_spot_detector/server
python3 -m app