-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update Docker base image from `docker.io/broadinstitute/viral-baseimage:0.1.5` to `quay.io/broadinstitute/viral-baseimage:0.1.6` - Update the Dockerfile build to no longer rely on the large easy-deploy script, and instead to just invoke the simple `conda install` lines directly. Break up the monolithic `conda install` Docker layer into two relatively equal sized layers, which seems to *sometimes* provide a faster `docker pull` for some clients. (I had previously also attempted to install only a minimal set of conda tools and let the `Tool` self-installer code dynamically install tools as needed, but this appears to no longer work in more complicated scenarios with multiple conda packages that depend on each other, e.g. bmtagger, so this effort was abandoned) - move production and dev docker repos to `quay.io`, which provides faster `dx-docker pull` for DNAnexus, and is an all around nicer web UI to work with than DockerHub, and provides future possibilities to play with `rkt`, squashed images, and bittorrent pulls (though I am increasingly skeptical that that will matter). - move DNAnexus Travis CI project to a new one created by the DNAnexus Science Team, which was the only way to make it a Public DNAnexus project. - update documentation all around to reflect build process changes - WDL pipelines: add a `refine_2x_and_plot task` which is simply an optimization around the refine, refine, plot_coverage tasks at the end of all assembly workflows. The original atomic tasks are still available, but this saves a lot of staging time for routine analyses. - WDL scaffolding step: implemented @notestaff 's recent improvements to `order_and_orient` which allows the user to provide multiple reference genomes for this stage. Also, the WDL task now extracts more metrics and outputs from this stage that might be useful. - taxon_filter.py: some further clean up and optimization around blastn read depletion. Also revert the default behavior of the WDL `deplete_taxa` step to use @tomkinsc 's blastn parallelization again.
- Loading branch information
Showing
37 changed files
with
706 additions
and
484 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
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,26 +1,44 @@ | ||
#!/bin/bash | ||
# | ||
# This script requires INSTALL_PATH (typically /opt/viral-ngs) | ||
# and VIRAL_NGS_PATH (typically /opt/viral-ngs/source) to be set. | ||
# This script requires INSTALL_PATH (typically /opt/viral-ngs), | ||
# VIRAL_NGS_PATH (typically /opt/viral-ngs/source), and | ||
# CONDA_DEFAULT_ENV (typically /opt/miniconda) to be set. | ||
# | ||
# A miniconda install must exist at /opt/miniconda | ||
# A miniconda install must exist at $CONDA_DEFAULT_ENV | ||
# and $CONDA_DEFAULT_ENV/bin must be in the PATH | ||
# | ||
# Otherwise, this only requires the existence of the following files: | ||
# easy-deploy-script/easy-deploy-viral-ngs.sh | ||
# requirements-conda.txt | ||
# requirements-conda-tests.txt | ||
# requirements-py3.txt | ||
# requirements-minimal.txt | ||
# requirements-conda.txt | ||
# requirements-conda-tests.txt | ||
# requirements-py3.txt | ||
|
||
set -e -o pipefail | ||
|
||
export VIRAL_CONDA_ENV_PATH=/opt/miniconda | ||
|
||
mkdir -p $INSTALL_PATH/viral-ngs-etc | ||
mkdir -p $VIRAL_NGS_PATH/.git # this is needed to make the setup script know we have/will have a git checkout | ||
ln -s $VIRAL_NGS_PATH $INSTALL_PATH/viral-ngs-etc/viral-ngs | ||
ln -s $VIRAL_CONDA_ENV_PATH $INSTALL_PATH/viral-ngs-etc/conda-env | ||
ln $VIRAL_NGS_PATH/easy-deploy-script/easy-deploy-viral-ngs.sh $INSTALL_PATH | ||
if [ ! -f $INSTALL_PATH/viral-ngs-etc/viral-ngs ]; then | ||
ln -s $VIRAL_NGS_PATH $INSTALL_PATH/viral-ngs-etc/viral-ngs | ||
fi | ||
if [ ! -f $INSTALL_PATH/viral-ngs-etc/conda-env ]; then | ||
ln -s $CONDA_DEFAULT_ENV $INSTALL_PATH/viral-ngs-etc/conda-env | ||
fi | ||
|
||
# setup/install viral-ngs directory tree and conda dependencies | ||
sync | ||
$INSTALL_PATH/easy-deploy-viral-ngs.sh setup-git-local | ||
|
||
# manually install it ourselves instead of using easy-deploy | ||
if [[ "$1" == "minimal" ]]; then | ||
# a more minimal set of tools (smaller docker image?) | ||
conda install --override-channels -y \ | ||
-q -c broad-viral -c bioconda -c conda-forge -c defaults -c r \ | ||
--file "$VIRAL_NGS_PATH/requirements-minimal.txt" | ||
else | ||
conda install --override-channels -y \ | ||
-q -c broad-viral -c bioconda -c conda-forge -c defaults -c r \ | ||
--file "$VIRAL_NGS_PATH/requirements-py3.txt" \ | ||
--file "$VIRAL_NGS_PATH/requirements-conda.txt" \ | ||
--file "$VIRAL_NGS_PATH/requirements-conda-tests.txt" | ||
fi | ||
|
||
# clean up | ||
conda clean -y --all |
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,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
head -n1 /proc/meminfo | awk '{print int($2*0.9/1024)}' | ||
head -n1 /proc/meminfo | awk '{print int($2*0.9/1024/1024)}' |
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
Oops, something went wrong.