From d60d706d9dc8ef2b5c5d624c4c4f8e450a234131 Mon Sep 17 00:00:00 2001 From: Young Date: Thu, 22 Aug 2024 06:54:26 -0600 Subject: [PATCH] adding dnaapler version 0.8.0 (#1036) * adding dnaapler version 0.8.0 * Update Dockerfile micromamba clean -a -f -y --------- Co-authored-by: Kutluhan Incekara <46578029+Kincekara@users.noreply.github.com> --- README.md | 2 +- dnaapler/0.8.0/Dockerfile | 57 +++++++++++++++++++++++++++++++++++++++ dnaapler/0.8.0/README.md | 37 +++++++++++++++++++++++++ 3 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 dnaapler/0.8.0/Dockerfile create mode 100644 dnaapler/0.8.0/README.md diff --git a/README.md b/README.md index 3f6722482..967ac14d0 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ To learn more about the docker pull rate limits and the open source software pro | [cutshaw-report-env](https://hub.docker.com/r/staphb/cutshaw-report-env)
[![docker pulls](https://badgen.net/docker/pulls/staphb/cutshaw-report-env)](https://hub.docker.com/r/staphb/cutshaw-report-env) | | https://github.com/VADGS/CutShaw | | [datasets-sars-cov-2](https://github.com/CDCgov/datasets-sars-cov-2)
[![docker pulls](https://badgen.net/docker/pulls/staphb/datasets-sars-cov-2)](https://hub.docker.com/r/staphb/datasets-sars-cov-2) | | https://github.com/CDCgov/datasets-sars-cov-2 | | [diamond](https://github.com/bbuchfink/diamond)
[![docker pulls](https://badgen.net/docker/pulls/staphb/diamond)](https://hub.docker.com/r/staphb/diamond) | | https://github.com/bbuchfink/diamond| -| [dnaapler](https://hub.docker.com/r/staphb/dnaapler)
[![docker pulls](https://badgen.net/docker/pulls/staphb/dnaapler)](https://hub.docker.com/r/staphb/dnaapler) | | https://github.com/gbouras13/dnaapler | +| [dnaapler](https://hub.docker.com/r/staphb/dnaapler)
[![docker pulls](https://badgen.net/docker/pulls/staphb/dnaapler)](https://hub.docker.com/r/staphb/dnaapler) | | https://github.com/gbouras13/dnaapler | | [dragonflye](https://hub.docker.com/r/staphb/dragonflye)
[![docker pulls](https://badgen.net/docker/pulls/staphb/dragonflye)](https://hub.docker.com/r/staphb/dragonflye) | | https://github.com/rpetit3/dragonflye | | [Dr. PRG ](https://hub.docker.com/r/staphb/drprg)
[![docker pulls](https://badgen.net/docker/pulls/staphb/drprg)](https://hub.docker.com/r/staphb/drprg) | | https://mbh.sh/drprg/ | | [DSK](https://hub.docker.com/r/staphb/dsk)
[![docker pulls](https://badgen.net/docker/pulls/staphb/dsk)](https://hub.docker.com/r/staphb/dsk) | | https://gatb.inria.fr/software/dsk/ | diff --git a/dnaapler/0.8.0/Dockerfile b/dnaapler/0.8.0/Dockerfile new file mode 100644 index 000000000..4d5add3c1 --- /dev/null +++ b/dnaapler/0.8.0/Dockerfile @@ -0,0 +1,57 @@ +FROM mambaorg/micromamba:1.5.8 as app + +USER root + +WORKDIR / + +ARG DNAAPLER_VER="0.8.0" + +# metadata labels +LABEL base.image="mambaorg/micromamba:1.5.8" +LABEL dockerfile.version="1" +LABEL software="dnaapler" +LABEL software.version="${DNAAPLER_VER}" +LABEL description="Rotates chromosomes and more" +LABEL website="https://github.com/gbouras13/dnaapler" +LABEL license="MIT" +LABEL license.url="https://github.com/gbouras13/dnaapler/blob/main/LICENSE" +LABEL maintainer="Erin Young" +LABEL maintainer.email="eriny@utah.gov" + +# install dependencies; cleanup apt garbage +RUN apt-get update && apt-get install -y --no-install-recommends \ + wget \ + ca-certificates \ + procps && \ + apt-get autoclean && rm -rf /var/lib/apt/lists/* + +# create the conda environment, install mykrobe via bioconda package; cleanup conda garbage +RUN micromamba create -n dnaapler -y -c bioconda -c defaults -c conda-forge dnaapler=${DNAAPLER_VER} && \ + micromamba clean -a -f -y + +# set the PATH and LC_ALL for singularity compatibility +ENV PATH="/opt/conda/envs/dnaapler/bin/:${PATH}" \ + LC_ALL=C.UTF-8 + +# set final working directory as /data +WORKDIR /data + +# default command is to print help options +CMD [ "dnaapler", "--help" ] + +# new base for testing +FROM app as test + +# set working directory to /test +WORKDIR /test + +# checking that tool is in PATH +RUN dnaapler --help && dnaapler --version + +# downloads genome sequence and then extracts the last plasmid in the laziest way possible +RUN wget -q https://ftp.ncbi.nlm.nih.gov/genomes/all/GCA/025/259/185/GCA_025259185.1_ASM2525918v1/GCA_025259185.1_ASM2525918v1_genomic.fna.gz && \ + gunzip GCA_025259185.1_ASM2525918v1_genomic.fna.gz && \ + grep "CP104365.1" GCA_025259185.1_ASM2525918v1_genomic.fna -A 50000 > CP104365.1.fasta && \ + dnaapler mystery --prefix mystery_test --output mystery_test -i CP104365.1.fasta && \ + dnaapler plasmid --prefix plasmid_test --output plasmid_test -i CP104365.1.fasta && \ + ls mystery_test plasmid_test diff --git a/dnaapler/0.8.0/README.md b/dnaapler/0.8.0/README.md new file mode 100644 index 000000000..79e17f4a5 --- /dev/null +++ b/dnaapler/0.8.0/README.md @@ -0,0 +1,37 @@ +# dnaapler container + +Main tool : [dnappler](https://github.com/gbouras13/dnaapler) + +Full documentation: [https://github.com/gbouras13/dnaapler](https://github.com/gbouras13/dnaapler) + +> `dnaapler` is a simple python program that takes a single nucleotide input sequence (in FASTA format), finds the desired start gene using blastx against an amino acid sequence database, checks that the start codon of this gene is found, and if so, then reorients the chromosome to begin with this gene on the forward strand. + +dnaapler has several commands for chromosomes, plasmids, and more. + +``` +Usage: dnaapler [OPTIONS] COMMAND [ARGS]... + +Options: + -h, --help Show this message and exit. + -V, --version Show the version and exit. + +Commands: + chromosome Reorients your sequence to begin with the dnaA chromosomal... + citation Print the citation(s) for this tool + custom Reorients your sequence with a custom database + mystery Reorients your sequence with a random gene + phage Reorients your sequence to begin with the terL large... + plasmid Reorients your sequence to begin with the repA replication... +``` + +WARNING: Does not support multifasta files. Each sequence must be processed individually. + +## Example Usage + +```bash +# for a fasta of a chromsome sequence +dnaapler chromosome --input chromosome.fasta --output dnaapler_chr + +# for a fasta of a plasmid sequence +dnaapler plasmid --input plasmid.fasta --output dnaapler_plasmid +```