-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from Bioinformatics/HAP-318
HAP-318 and HAP-319
- Loading branch information
Showing
5 changed files
with
91 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install build-essential zlib1g-dev libbz2-dev pkg-config cmake libncurses5-dev autoconf -y | ||
RUN apt-get install git bzip2 wget -y | ||
RUN apt-get install python2.7 python2.7-dev python \ | ||
python-setuptools \ | ||
python-pip \ | ||
python-psutil \ | ||
cython \ | ||
python-numpy \ | ||
python-pandas \ | ||
python-distribute \ | ||
python-pysam \ | ||
python-scipy \ | ||
-y | ||
RUN apt-get install software-properties-common python-software-properties -y | ||
RUN apt-get clean -y | ||
|
||
RUN pip install bx-python | ||
|
||
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ | ||
add-apt-repository -y ppa:webupd8team/java && \ | ||
apt-get update && \ | ||
apt-get install -y oracle-java8-installer && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf /var/cache/oracle-jdk8-installer | ||
|
||
# copy git repository into the image | ||
RUN mkdir -p /opt/hap.py-source | ||
COPY . /opt/hap.py-source/ | ||
|
||
# make minimal HG19 reference sequence | ||
RUN mkdir -p /opt/hap.py-data | ||
|
||
# get + install ant | ||
WORKDIR /opt | ||
RUN wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.7-bin.tar.gz && \ | ||
tar xzf apache-ant-1.9.7-bin.tar.gz && \ | ||
rm apache-ant-1.9.7-bin.tar.gz | ||
ENV PATH $PATH:/opt/apache-ant-1.9.7/bin | ||
|
||
# run hap.py installer in the image, don't run tests since we don't have a reference file | ||
WORKDIR /opt/hap.py-source | ||
RUN python install.py /opt/hap.py --with-rtgtools --no-tests | ||
|
||
# download HG19 reference data | ||
# This downloads from UCSC | ||
WORKDIR /opt/hap.py-data | ||
ENV PATH $PATH:/opt/hap.py/bin | ||
RUN /opt/hap.py-source/src/sh/make_hg19.sh && samtools faidx /opt/hap.py-data/hg19.fa | ||
# Run tests | ||
ENV HG19 /opt/hap.py-data/hg19.fa | ||
WORKDIR /opt/hap.py | ||
RUN /opt/hap.py-source/src/sh/run_tests.sh | ||
|
||
# remove source folder | ||
WORKDIR / | ||
RUN rm -rf /opt/hap.py-source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
Cython | ||
numpy | ||
pandas | ||
pybedtools | ||
psutil | ||
pip | ||
pysam | ||
nose | ||
scipy | ||
|