-
Notifications
You must be signed in to change notification settings - Fork 4
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 #100 from Pathogen-Genomics-Cymru/tbtamr
Tbtamr
- Loading branch information
Showing
10 changed files
with
169 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ on: | |
push: | ||
branches: | ||
- main | ||
- recursive_decontamination | ||
paths: | ||
- '**/Dockerfile*' | ||
- "bin/" | ||
|
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM ubuntu:jammy | ||
|
||
WORKDIR / | ||
|
||
# LABEL instructions tag the image with metadata that might be important to the user | ||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="0.9.9" | ||
LABEL software="tbtamr" | ||
LABEL description="The pipeline aligns reads to the H37Rv reference using bowtie2, BWA or minimap2 and then calls variants using bcftools. These variants are then compared to a drug-resistance database." | ||
LABEL maintainer3="Tom Whalley" | ||
LABEL maintainer3.email="[email protected]" | ||
|
||
#set env for root prefix | ||
ENV MAMBA_ROOT_PREFIX="/opt/conda" | ||
|
||
RUN apt-get update && apt-get install -y apt-utils wget bzip2 curl git | ||
|
||
RUN curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest| tar -xvj bin/micromamba \ | ||
&& touch /root/.bashrc \ | ||
&& ./bin/micromamba shell init -s bash -p /opt/conda \ | ||
&& grep -v '[ -z "\$PS1" ] && return' /root/.bashrc > /opt/conda/bashrc # this line has been modified \ | ||
&& apt-get clean autoremove --yes \ | ||
&& rm -rf /var/lib/{apt,dpkg,cache,log} | ||
|
||
|
||
# install tb-profiler via bioconda; install into 'base' conda env | ||
RUN micromamba install --yes --name base --channel conda-forge --channel bioconda jq requests xlsxwriter tbtamr | ||
RUN micromamba install --yes --name base --channel conda-forge --channel bioconda gatk4 | ||
RUN micromamba install --yes --name base --channel conda-forge --channel bioconda samtools | ||
RUN micromamba install --yes --name base --channel conda-forge --channel bioconda freebayes==1.3.6 #STDERR in current version of freebayes | ||
RUN micromamba clean --all --yes | ||
|
||
# hardcode 'base' env bin into PATH, so conda env does not have to be "activated" at run time | ||
ENV PATH="/opt/conda/bin:${PATH}" | ||
|
||
WORKDIR /data | ||
|
||
#wants full path to reference | ||
RUN tbtamr setup |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Bootstrap: docker | ||
From: ubuntu:jammy | ||
Stage: spython-base | ||
|
||
%labels | ||
base.image="ubuntu:jammy" | ||
dockerfile.version="0.9.9" | ||
software="tbtamr" | ||
description="The pipeline aligns reads to the H37Rv reference using bowtie2, BWA or minimap2 and then calls variants using bcftools. These variants are then compared to a drug-resistance database." | ||
maintainer3="Tom Whalley" | ||
maintainer3.email="[email protected]" | ||
%post | ||
|
||
mkdir -p / | ||
cd / | ||
|
||
# LABEL instructions tag the image with metadata that might be important to the user | ||
|
||
#set env for root prefix | ||
MAMBA_ROOT_PREFIX="/opt/conda" | ||
|
||
apt-get update && apt-get install -y apt-utils wget bzip2 curl git | ||
|
||
curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest| tar -xvj bin/micromamba \ | ||
&& touch /root/.bashrc \ | ||
&& ./bin/micromamba shell init -s bash -p /opt/conda \ | ||
&& grep -v '[ -z "\$PS1" ] && return' /root/.bashrc > /opt/conda/bashrc # this line has been modified \ | ||
&& apt-get clean autoremove --yes \ | ||
&& rm -rf /var/lib/{apt,dpkg,cache,log} | ||
|
||
|
||
# install tb-profiler via bioconda; install into 'base' conda env | ||
micromamba install --yes --name base --channel conda-forge --channel bioconda jq requests xlsxwriter tbtamr | ||
micromamba install --yes --name base --channel conda-forge --channel bioconda gatk4 | ||
micromamba install --yes --name base --channel conda-forge --channel bioconda samtools | ||
micromamba install --yes bioconda freebayes==1.3.6 #STDERR in current version of freebayes | ||
micromamba clean --all --yes | ||
|
||
# hardcode 'base' env bin into PATH, so conda env does not have to be "activated" at run time | ||
PATH="/opt/conda/bin:${PATH}" | ||
|
||
mkdir -p /data | ||
cd /data | ||
|
||
#wants full path to reference | ||
tbtamr setup | ||
%environment | ||
export MAMBA_ROOT_PREFIX="/opt/conda" | ||
export PATH="/opt/conda/bin:${PATH}" | ||
%runscript | ||
cd /data | ||
exec /bin/bash "$@" | ||
%startscript | ||
cd /data | ||
exec /bin/bash "$@" |
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