Skip to content

Commit

Permalink
installing samtools and GraphAligner from Bioconda
Browse files Browse the repository at this point in the history
  • Loading branch information
subwaystation committed Apr 1, 2021
1 parent 0dcc4b7 commit 31c265e
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ LABEL about.home="https://github.com/pangenome/pgge"
LABEL about.license="SPDX:MIT"

# Required dependencies
# samtools
# TODO add samtools from Bioconda?
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
wget \
curl \
less \
gcc \
samtools \
tzdata \
make \
git \
Expand Down Expand Up @@ -62,21 +59,6 @@ RUN wget \
ENV PATH /miniconda/bin:$PATH
SHELL ["/bin/bash", "-c"]

# GraphAligner
# Unfortunately, the current Bioconda version of GraphAligner emits a 15-column GAF, whereas the most recent commit on github emits a 16-column GAF
# Therefore, we can't use the Bioconda version as of now
RUN git clone --recursive https://github.com/maickrau/GraphAligner \
&& cd GraphAligner \
&& git pull \
&& git checkout 48143da \
&& git submodule update --init --recursive \
&& conda env create -f CondaEnvironment.yml \
&& source activate GraphAligner \
&& make bin/GraphAligner \
&& cp bin/GraphAligner /usr/local/bin/GraphAligner \
&& cd ../ \
&& exit

# Install the conda environment
COPY environment.yml /
RUN conda env create --quiet -f /environment.yml && conda clean -a
Expand All @@ -93,4 +75,4 @@ RUN mkdir /scripts
COPY scripts/beehave.R /scripts/beehave.R
RUN chmod 777 /usr/local/bin/pgge && chmod 777 /scripts/beehave.R

ENTRYPOINT [ "/bin/bash", "-l", "-c" ]
ENTRYPOINT [ "/bin/sh", "-c", "-l" ]

0 comments on commit 31c265e

Please sign in to comment.