forked from icbi-lab/nextNEOpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pva_pvac_vt.def
58 lines (46 loc) · 1.36 KB
/
pva_pvac_vt.def
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
Bootstrap: docker
From: griffithlab/pvactools:4.2.0
%post
# update and install dependencies
apt-get update && apt-get install -y python3-pip python3-dev build-essential git wget cmake g++
# Install vatools
pip install vatools
# Install cyvcf2
pip install cyvcf2
# Install bgzip
pip install bgzip
# Download bam_readcount_helper.py script
wget https://raw.githubusercontent.com/griffithlab/pmbio.org/master/assets/scripts/bam_readcount_helper.py -O /usr/local/bin/bam_readcount_helper.py
chmod +x /usr/local/bin/bam_readcount_helper.py
# Install bam-readcount
git clone https://github.com/genome/bam-readcount
cd bam-readcount
mkdir build
cd build
cmake ..
make
cp /bam-readcount/build/bin/bam-readcount /usr/local/bin/
cd /
# Clean up
apt-get clean
# Install vt
git clone https://github.com/atks/vt.git
cd vt
git submodule update --init --recursive
make
make test
cd /
# Install samtools
wget https://github.com/samtools/htslib/releases/download/1.20/htslib-1.20.tar.bz2
tar -xvf htslib-1.20.tar.bz2
cd htslib-1.20 # and similarly for bcftools and htslib
./configure --prefix=/usr/local
make
make install
cd /
%environment
export PATH=/usr/local/bin:$PATH
export PATH=/vt:$PATH
%labels
Author Willem
Version 1.0