forked from weinstockj/telomere-length-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
telseq.overflow-fix2.def
73 lines (60 loc) · 1.43 KB
/
telseq.overflow-fix2.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
59
60
61
62
63
64
65
66
67
68
69
70
71
Bootstrap: library
From: ubuntu:20.04
%files
%environment
export LC_ALL=C
export TZ=Etc/UTC
%post
set -eu
export TZ=Etc/UTC
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
apt-get update && apt-get -y install \
build-essential \
zlib1g-dev \
libncurses5-dev \
ca-certificates \
gcc \
make \
libpq-dev \
git \
apt-transport-https \
liblzma-dev \
libbz2-dev \
autotools-dev \
automake \
cmake \
r-base r-base-dev \
wget
Rscript -e "install.packages(c('dplyr', 'readr'), repos='https://cran.us.r-project.org')"
mkdir /build-image
cd /build-image
wget https://github.com/samtools/htslib/releases/download/1.4.1/htslib-1.4.1.tar.bz2
tar xvjf htslib-1.4.1.tar.bz2
cd htslib-1.4.1
make
make install
cd ..
wget https://github.com/samtools/samtools/releases/download/1.4.1/samtools-1.4.1.tar.bz2
tar xvjf samtools-1.4.1.tar.bz2
cd samtools-1.4.1
make
make install
cd ..
git clone https://github.com/pezmaster31/bamtools.git
cd bamtools
git checkout cbca090607f2154aa19c20ca778c3d067384b606
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install
cd ../..
git clone https://github.com/zd1/telseq
cd telseq
git checkout 48c2ebcf2694a8396d96b3502a5188b9075ddba6
cd src
./autogen.sh
./configure --with-bamtools=/usr/local
make
install Telseq/telseq /usr/local/bin/
cd ../..