-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ncov-recombinant v0.6.1 APHL Docker Workshop #583
base: master
Are you sure you want to change the base?
Changes from 5 commits
0a739c8
8b448fc
119af94
bd84203
16ca1e3
9129c67
fd356f3
9d51c24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
FROM mambaorg/micromamba:0.24.0 as app | ||
|
||
USER root | ||
|
||
WORKDIR / | ||
|
||
#metadata | ||
LABEL base.image="FROM mambaorg/micromamba:0.24.0" | ||
LABEL dockerfile.version="1" | ||
LABEL software="ncov-recombinant" | ||
LABEL software.version="v0.6.1" | ||
LABEL description="SARS-CoV-2 recombinant sequence detection" | ||
LABEL website="https://github.com/ktmeaton/ncov-recombinant" | ||
LABEL license="https://github.com/ktmeaton/ncov-recombinant/blob/master/LICENSE" | ||
LABEL maintainer="Wes Hottel" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
#Install dependencies | ||
RUN apt-get update && apt-get install -y python \ | ||
git \ | ||
wget && \ | ||
rm -rf /var/lib/apt/lists/* && apt-get autoclean | ||
|
||
#Clone ncov-recombinant repository | ||
RUN git clone https://github.com/ktmeaton/ncov-recombinant.git &&\ | ||
cd ncov-recombinant | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of using git clone, could you download the tarball for the version you are creating an image for?
git clone is hard for version control You image will also likely be smaller and more stable if you download the tarball and install it from that as well (instead of using micromamba). Did you already try that? |
||
|
||
#Install ncov-recombinant | ||
RUN micromamba create -n ncov-recombinant-env -f ncov-recombinant/workflow/envs/environment.yaml &&\ | ||
micromamba clean -a -y | ||
|
||
#Set environment | ||
ENV PATH="/opt/conda/envs/ncov-recombinant-env/bin:/opt/conda/envs/env/bin:${PATH}" \ | ||
LC_ALL=C.UTF-8 | ||
|
||
WORKDIR /data | ||
|
||
#Test install using postive controls included as part of repo | ||
FROM app as test | ||
|
||
WORKDIR /ncov-recombinant | ||
|
||
ENV ENV_NAME="ncov-recombinant-env" | ||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 | ||
|
||
RUN snakemake --profile /ncov-recombinant/profiles/controls-positive |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ncov-recombinant container | ||
|
||
Main tool : [ncov-recombinant](https://github.com/ktmeaton/ncov-recombinant) | ||
|
||
ncov-recombinant is a recombinant sequence detection tool for SARS-CoV-2 fasta files. | ||
This tool: | ||
1) Aligns sequences and performs clade/lineage assignments with Nextclade | ||
2) Identifies parental clades and plots recombination breakpoints with sc2rf. | ||
3) Creates tables, plots, and powerpoint slides for reporting. | ||
|
||
## Example Usage | ||
|
||
```bash | ||
snakemake --profile /ncov-recombinant/profiles/controls | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have found that images are smaller when using
--no-install-recommends
Could you adjust line 19 to