-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·72 lines (66 loc) · 2.46 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
echo "#######################################"
echo "Installation of Required python2 packages"
echo "#######################################"
while true; do
read -p "Do you wish to install or update required python2 packages? (y/n)" yn
case $yn in
[Yy]* ) python2 -m pip install --upgrade pip;
python2 -m pip install pysam;
break;;
[Nn]* ) echo "Skipping installation"; break;;
* ) echo "Please answer yes or no";;
esac
done
echo "#######################################"
echo "Installation of Required conda packages"
echo "#######################################"
#install tools by conda
while true; do
read -p "Do you wish to install or update required conda packages? (y/n)" yn
case $yn in
[Yy]* ) conda update conda;
conda update conda-build;
conda config --add channels r
conda config --add channels bioconda
conda install -y -c bioconda bsmap;
conda install -y -c bioconda bamtools;
conda install -y -c bioconda bamutil;
conda install -y -c bioconda bedtools;
conda install -y -c bioconda seqtk;
conda install -y -c bioconda fastqc;
conda install -y -c bioconda pysam;
conda install -y -c bioconda -c r samtools --override-channels;
ln -sf /opt/anaconda/lib/libcrypto.so.1.1 /opt/anaconda/lib/libcrypto.so.1.0.0;
break;;
[Nn]* ) echo "Skipping installation"; break;;
* ) echo "Please answer yes or no";;
esac
done
echo "#############################"
echo "Geting conda environment info"
echo "#############################"
conda info --json > conda.info
echo "###################################"
echo "Installation of Required R packages"
echo "###################################"
#install R packages
while true; do
read -p "Do you wish to install or update required R CRAN and BIOCONDUCTOR packages? (y/n)" yn
case $yn in
[Yy]* ) Rscript R/install.packages.R; break;;
[Nn]* ) echo "Skipping installation"; break;;
* ) echo "Please answer yes or no";;
esac
done
echo "###################################"
echo "Compilation of BS-Snper"
echo "###################################"
cd tools/BS-Snper/
./BS-Snper.sh
./clean.dir.sh
cd ..
cd ..
echo "########################"
echo "Installation is Finished"
echo "########################"