-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add genoflu * add readme * add to license * add --force-pkgs-dirs
- Loading branch information
1 parent
3ef6961
commit 3d8ca96
Showing
4 changed files
with
78 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
FROM mambaorg/micromamba:1.5.8 as app | ||
|
||
USER root | ||
WORKDIR / | ||
|
||
ARG GENOFLU_VER="1.03-0" | ||
|
||
# LABEL instructions tag the image with metadata that might be important to the user | ||
LABEL base.image="micromamba:1.5.8" | ||
LABEL dockerfile.version="1" | ||
LABEL software="genoflu" | ||
LABEL software.version=$GENOFLU_VER | ||
LABEL description="Uses BLAST to detect whole-genome flu genotype" | ||
LABEL website="https://github.com/USDA-VS/GenoFLU" | ||
LABEL license="https://github.com/USDA-VS/GenoFLU/blob/main/LICENSE" | ||
LABEL maintainer="Sage Wright" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
# Install dependencies via apt-get; 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/* | ||
|
||
# install genoflu via bioconda; install into 'base' conda env | ||
# genoflu is not recognized in micromamba by the version tag | ||
RUN micromamba install --yes --name base --channel conda-forge --channel bioconda \ | ||
genoflu=${GENOFLU_VER} && \ | ||
micromamba clean --all --force-pkgs-dirs --yes | ||
|
||
|
||
# ENV instructions set environment variables that persist from the build into the resulting image | ||
# 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 sets working directory | ||
WORKDIR /data | ||
|
||
# default command is to pull up help options for genoflu | ||
CMD [ "genoflu.py", "--help" ] | ||
|
||
# A second FROM insruction creates a new stage | ||
# We use `test` for the test image | ||
FROM app as test | ||
|
||
# getting all the exectubles in bin | ||
RUN genoflu.py --help && genoflu.py --version | ||
|
||
# testing a genome | ||
RUN wget -q https://raw.githubusercontent.com/USDA-VS/GenoFLU/main/test/test-genome-A1.fasta && \ | ||
genoflu.py -f test-genome-A1.fasta |
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,24 @@ | ||
# GenoFLU container | ||
|
||
Main tool: [GenoFLU](https://github.com/USDA-VS/GenoFLU) | ||
|
||
Code repository: https://github.com/USDA-VS/GenoFLU | ||
|
||
Additional tools: | ||
|
||
Basic information on how to use this tool: | ||
|
||
- executable: genoflu.py | ||
- help: --help | ||
- version: --version | ||
- description: "GenoFLU determines the genotype of a segmented flu sample by BLASTing a multi-segment FASTA against the BLAST database" | ||
|
||
Additional information: | ||
|
||
Full documentation: [https://github.com/USDA-VS/GenoFLU](https://github.com/USDA-VS/GenoFLU) | ||
|
||
## Example Usage | ||
|
||
```bash | ||
genoflu.py -f input.fasta | ||
``` |