-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_HybPiper_CentOS.sh
More file actions
64 lines (63 loc) · 2.2 KB
/
install_HybPiper_CentOS.sh
File metadata and controls
64 lines (63 loc) · 2.2 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
# This script installs dependencies for HybPiper on CentOS 7 (e.g., new VM in MetaCentrum)
# Clones HybPiper from GitHub (https://github.com/mossmatters/HybPiper)
# Downloads test data and runs first script on one sample (to test that everything is working)
mkdir install
cd install
# Install pip (assumes python is installed)
yum install -y python-pip
# Upgrade pip
pip install --upgrade pip
# Install biopython
pip install biopython
# Download BLAST
wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.7.1+-x64-linux.tar.gz
tar xfz ncbi-blast-2.7.1+-x64-linux.tar.gz
rm -f ncbi-blast-2.7.1+-x64-linux.tar.gz
cp ncbi-blast-2.7.1+/bin/* /usr/local/bin
# Download SPAdes
wget http://spades.bioinf.spbau.ru/release3.11.1/SPAdes-3.11.1-Linux.tar.gz
tar xfz SPAdes-3.11.1-Linux.tar.gz
rm -f SPAdes-3.11.1-Linux.tar.gz
cp SPAdes-3.11.1-Linux/bin/* /usr/local/bin
cp -r SPAdes-3.11.1-Linux/share/ /usr/local/
# Install parallel
yum install -y parallel
# Download exonerate
wget http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/exonerate-2.2.0-x86_64.tar.gz
tar xfz exonerate-2.2.0-x86_64.tar.gz
rm -f exonerate-2.2.0-x86_64.tar.gz
cp exonerate-2.2.0-x86_64/bin/* /usr/local/bin
# Install zlib (required by BWA)
yum install -y zlib-devel
# Download/compile BWA
wget https://downloads.sourceforge.net/project/bio-bwa/bwa-0.7.17.tar.bz2
tar jxf bwa-0.7.17.tar.bz2
rm -f bwa-0.7.17.tar.bz2
cd bwa-0.7.17
make
cp bwa /usr/local/bin
cd ..
# Install bzip2-devel and xz-devel (required by samtools)
yum install -y bzip2-devel
yum install -y xz-devel
# Download/compile samtools
wget https://github.com/samtools/samtools/releases/download/1.6/samtools-1.6.tar.bz2
tar jxf samtools-1.6.tar.bz2
rm -f samtools-1.6.tar.bz2
cd samtools-1.6
./configure --without-curses
make
make install
cd ..
cd ..
# Clone HybPiper
git clone https://github.com/mossmatters/HybPiper.git
cd HybPiper
# Run a test of dependencies
./reads_first.py --check-depend
# Download and run a test dataset
cd test_dataset
rm test_reads.fastq.tar.gz
wget https://github.com/mossmatters/HybPiper/raw/develop/test_dataset/test_reads.fastq.tar.gz
tar -zxvf test_reads.fastq.tar.gz
../reads_first.py -b test_targets.fasta -r NZ281_R*_test.fastq --prefix NZ281 --bwa