-
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
Adding hostile v1.1.0 #1111
Merged
Merged
Adding hostile v1.1.0 #1111
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
766cb82
adding hostile to new branch
taylorpaisie 80e04d8
editing hostile readme and test in dockerfile
taylorpaisie 8d625d1
making edits to readme and hostile dockerfile
taylorpaisie e454d82
adding hostile tag to readme
taylorpaisie b74548b
edited hostile dockerfile
taylorpaisie 0ecd884
minor edits to dockerfile and hostile readme
taylorpaisie 3afa298
updaing workflows
taylorpaisie bcc09f2
making changes on branch to match master branch
taylorpaisie ba84ae9
updated program licenses with hostile
taylorpaisie 9be5401
Merge branch 'master' into tkp-hostile
taylorpaisie a1ea237
Added hyperlink
erinyoung f0b0fcb
moving labels and hostile help command to app stage in dockerfile
taylorpaisie 84ac86e
adding bowtie2 version arg to dockerfile
taylorpaisie fed5b82
Updated Dockerfile with ubuntu:jammy
taylorpaisie f2e2542
changed dockerfile back to ubuntu:focal
taylorpaisie f25b3b2
updated dockerfile with hostile ver arg and hostile test paths
taylorpaisie 920cc16
Update update_pango_aliasor.yml
erinyoung 1548ab2
Update update_pango_aliasor.yml
erinyoung d4de033
Update update_pango_aliasor.yml
erinyoung 940a168
Delete .github/workflows/update_pango_aliasor.yml
erinyoung File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 was deleted.
Oops, something went wrong.
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,74 @@ | ||
# Set global variables | ||
ARG HOSTILE_VER="1.1.0" | ||
ARG BOWTIE2_VER="2.5.1" | ||
|
||
# Stage 1: Build Dockerfile | ||
FROM ubuntu:focal AS builder | ||
ARG HOSTILE_VER | ||
ARG BOWTIE2_VER | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
software-properties-common && \ | ||
add-apt-repository ppa:deadsnakes/ppa && \ | ||
apt-get update && apt-get install -y --no-install-recommends \ | ||
python3.10 python3.10-distutils build-essential \ | ||
wget unzip samtools minimap2 bedtools gawk ca-certificates && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Install pip for Python 3.10 | ||
RUN wget https://bootstrap.pypa.io/get-pip.py && python3.10 get-pip.py && \ | ||
rm get-pip.py && pip install --no-cache-dir setuptools pytest && \ | ||
ln -sf /usr/bin/python3.10 /usr/bin/python3 && \ | ||
ln -sf /usr/local/bin/pip /usr/bin/pip | ||
|
||
# Install bowtie2 and ensure all executables are accessible | ||
RUN wget https://github.com/BenLangmead/bowtie2/releases/download/v${BOWTIE2_VER}/bowtie2-${BOWTIE2_VER}-linux-x86_64.zip && \ | ||
unzip bowtie2-${BOWTIE2_VER}-linux-x86_64.zip && \ | ||
mv bowtie2-${BOWTIE2_VER}-linux-x86_64 /usr/local/bowtie2 && \ | ||
ln -s /usr/local/bowtie2/bowtie2* /usr/bin/ && \ | ||
rm -f bowtie2-${BOWTIE2_VER}-linux-x86_64.zip | ||
|
||
# Install hostile | ||
RUN wget https://github.com/bede/hostile/archive/refs/tags/${HOSTILE_VER}.tar.gz && \ | ||
tar -xzvf ${HOSTILE_VER}.tar.gz && cd hostile-${HOSTILE_VER} && \ | ||
pip install --no-cache-dir . && \ | ||
pytest && \ | ||
cd .. && rm -rf ${HOSTILE_VER}.tar.gz | ||
|
||
|
||
# Stage 2: Final image | ||
FROM ubuntu:focal AS app | ||
ARG HOSTILE_VER | ||
|
||
LABEL base.image="ubuntu:focal" | ||
LABEL dockerfile.version="1" | ||
LABEL software="hostile" | ||
LABEL software.version=${HOSTILE_VER} | ||
LABEL description="Precise host read removal." | ||
LABEL website="https://github.com/bede/hostile" | ||
LABEL license.url="https://github.com/bede/hostile?tab=MIT-1-ov-file#readme" | ||
LABEL maintainer="Taylor K. Paisie" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
COPY --from=builder /usr/ /usr/ | ||
COPY --from=builder /hostile-${HOSTILE_VER}/tests/data/sars-cov-2/ /data/test/sars-cov-2/ | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates && update-ca-certificates && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
taylorpaisie marked this conversation as resolved.
Show resolved
Hide resolved
|
||
CMD hostile --help | ||
WORKDIR /data | ||
|
||
# Optional stage: Test data | ||
FROM app AS test | ||
|
||
WORKDIR /data/test | ||
|
||
RUN wget https://github.com/bacterial-genomics/test-datasets/raw/assembly/test_data/test_miniburk_R1.fastq.gz \ | ||
--no-check-certificate && \ | ||
wget https://github.com/bacterial-genomics/test-datasets/raw/assembly/test_data/test_miniburk_R2.fastq.gz \ | ||
--no-check-certificate && \ | ||
hostile clean --index /data/test/sars-cov-2/sars-cov-2 --fastq1 test_miniburk_R1.fastq.gz --fastq2 test_miniburk_R2.fastq.gz | ||
|
||
WORKDIR /data |
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,40 @@ | ||
# hostile | ||
|
||
Main tool: [hostile](https://github.com/bede/hostile) | ||
|
||
Code repository: https://github.com/bede/hostile | ||
|
||
Basic information on how to use this tool: | ||
- executable: | | ||
``` | ||
usage: hostile [-h] [--version] {clean,mask,fetch} ... | ||
|
||
positional arguments: | ||
{clean,mask,fetch} | ||
clean Remove reads aligning to an index from fastq[.gz] input files | ||
mask Mask reference genome against target genome(s) | ||
fetch Download and cache indexes from object storage for use with hostile clean | ||
|
||
options: | ||
-h, --help show this help message and exit | ||
--version show program's version number and exit | ||
``` | ||
|
||
- help: `hostile --help` | ||
- version: `hostle --version` | ||
- description: | | ||
> Hostile accurately removes host sequences from short and long read (meta)genomes, consuming single-read or paired fastq input. | ||
|
||
|
||
Full documentation: https://github.com/bede/hostile | ||
|
||
|
||
# Testing hostile analysis | ||
``` | ||
# Downloading test dataset | ||
wget https://github.com/bacterial-genomics/test-datasets/raw/assembly/test_data/test_miniburk_R1.fastq.gz --no-check-certificate | ||
wget https://github.com/bacterial-genomics/test-datasets/raw/assembly/test_data/test_miniburk_R2.fastq.gz --no-check-certificate | ||
|
||
# Running hostile clean on test dataset | ||
hostile clean --index /data/test/sars-cov-2/sars-cov-2 --fastq1 test_miniburk_R1.fastq.gz --fastq2 test_miniburk_R2.fastq.gz | ||
``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
setting this as ubuntu:jammy might be helpful for you
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.
Made all the changes you suggested besides this one. For some reason i was getting a different error when using
ubuntu:jammy
, so just switched it back but if its a good switch you think I'm more than willing to go through and fix the error, but wasn't sure if it was worth it or not in terms for the docker build.