-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
47 lines (35 loc) · 994 Bytes
/
install.sh
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
set -o errexit
set -o pipefail
set -o nounset
set -o xtrace
PS4='+ (${BASH_SOURCE[0]##*/} @ ${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
##########################
kernel=$(uname --kernel-name)
machine=$(uname --machine)
if [[ ${machine} != 'x86_64' || ${kernel} != 'Linux'* ]]; then
bash utilities/error.sh "not Linux x86_64"
exit 1
fi
##########################
if ! which conda; then
bash utilities/error.sh "please install conda"
exit 1
fi
# conda create --name trfermikit python=3.8
set +o nounset
source activate trfermikit
set -o nounset
pip install --requirement install/requirements.txt
##########################
mkdir --parents bin
mkdir --parents library
root=$PWD
bash install/bedtools.sh ${root}
bash install/samtools.sh ${root}
bash install/truvari.sh ${root}
bash install/jq.sh ${root}
bash install/mosdepth.sh ${root}
bash install/htslib.sh ${root}
bash install/bcftools.sh ${root}
bash install/minimap2.sh ${root}
bash install/mysql.sh ${root}