Skip to content

Commit

Permalink
Precompile quast dependencies
Browse files Browse the repository at this point in the history
Turns out that when you pip install the dependencies compile at first
use, so they're compiling for every run. That being said, I don't think
it takes very long; the real reason for this is that NERSC complains
when QUAST tries to write to read only locations during compilation.
  • Loading branch information
MrCreosote committed Oct 8, 2024
1 parent d5d648c commit ecd03c0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ MAINTAINER KBase Developer
# Insert apt-get instructions here to install
# any required dependencies for your module.

RUN apt update && apt install -y g++ nano tree
# libz is for Minimap2 in Quast
RUN apt update && apt install -y g++ nano tree wget libz-dev

RUN python -m pip install --upgrade pip \
&& pip install \
Expand All @@ -18,6 +19,16 @@ RUN python -m pip install --upgrade pip \

# Genemark is not open source for non-academic use, and so can't be used in KBase

# Precompile dependencies vs compiling at first use
# In particular, this allows the container to run @ NERSC
RUN mkdir /quasttemp \
&& cd /quasttemp \
&& wget quast.sf.net/test_data.tar.gz \
&& tar xzf test_data.tar.gz \
&& quast.py --test --debug \
&& cd - \
&& rm -r /quasttemp

# -----------------------------------------

COPY ./ /kb/module
Expand Down

0 comments on commit ecd03c0

Please sign in to comment.