Skip to content

Commit

Permalink
working build via pyrat genetics
Browse files Browse the repository at this point in the history
  • Loading branch information
cfljam committed Sep 8, 2015
1 parent c4c73e1 commit 00d2fd8
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM cfljam/pyrat
FROM cfljam/pyrat_genetics

MAINTAINER John McCallum [email protected]

Expand All @@ -21,7 +21,7 @@ RUN set -xe ;\
apt-get install -y \
build-essential \
python-setuptools \
python-biopython
python-biopython

### Install python packages
### Note explicit use of Py version to avoid pip version issues
Expand All @@ -34,22 +34,22 @@ ENV PERL5LIB /usr/local/lib/perl5

## Install VCF lib
RUN set -xe ;\
cachebust=ce69f84cf5 git clone --recursive https://github.com/ekg/vcflib.git ;\
git clone --recursive https://github.com/ekg/vcflib.git ;\
cd vcflib ;\
make ;\
cp ./bin/* /usr/local/bin/

## Install HTS lib
RUN set -xe ;\
cachebust=dfd67733e1 git clone --branch=develop https://github.com/samtools/htslib.git ;\
git clone --branch=develop https://github.com/samtools/htslib.git ;\
cd htslib ;\
make ;\
make test ;\
make install

## Install samtools
RUN set -xe ;\
cachebust=29b03673d6 git clone --branch=develop https://github.com/samtools/samtools.git ;\
git clone --branch=develop https://github.com/samtools/samtools.git ;\
cd samtools ;\
make HTSDIR=/tmp/htslib;\
make test ;\
Expand All @@ -61,7 +61,7 @@ RUN set -xe ;\

### Install Exonerate
RUN set -xe ;\
cachebust=9c09e4f4ae git clone https://github.com/nathanweeks/exonerate.git ;\
git clone https://github.com/nathanweeks/exonerate.git ;\
cd exonerate ;\
git checkout v2.4.0;\
autoreconf -f -i ;\
Expand All @@ -72,18 +72,13 @@ RUN set -xe ;\

## Install BCF tools
RUN set -xe ;\
cachebust=18444012a9 git clone --branch=develop https://github.com/samtools/bcftools.git ;\
git clone --branch=develop https://github.com/samtools/bcftools.git ;\
cd bcftools ;\
make HTSDIR=/tmp/htslib;\
make test ;\
make install


## Install R packages for Genetics
ADD R-requirements.txt /tmp/
RUN install2.r --error $(cat /tmp/R-requirements.txt) \
&& Rscript -e 'source("http://bioconductor.org/biocLite.R"); biocLite("Gviz")'

## Install VCF tools
RUN set -xe ;\
git clone https://github.com/vcftools/vcftools;\
Expand Down

0 comments on commit 00d2fd8

Please sign in to comment.