-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
91 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,62 @@ | ||
# both of these use the ubuntu:jammy base | ||
FROM staphb/freebayes:1.3.7 as freebayes | ||
FROM staphb/samtools:1.19 as samtools | ||
|
||
FROM ubuntu:jammy as app | ||
|
||
ARG PYPOLCA_VER="0.3.1" | ||
|
||
# 'LABEL' instructions tag the image with metadata that might be important to the user | ||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="1" | ||
LABEL software="pypolca" | ||
LABEL software.version="${PYPOLCA_VER}" | ||
LABEL description="Polishes long reads" | ||
LABEL website="https://github.com/gbouras13/pypolca" | ||
LABEL license="https://github.com/gbouras13/pypolca/blob/main/LICENSE" | ||
LABEL maintainer="Erin Young" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
procps \ | ||
ca-certificates \ | ||
wget \ | ||
bwa \ | ||
vcftools \ | ||
libseqlib-dev \ | ||
libvcflib-tools \ | ||
parallel \ | ||
bc \ | ||
python3 \ | ||
python3-pip && \ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=freebayes /usr/local/bin/* /usr/local/bin/ | ||
COPY --from=samtools /usr/local/bin/* /usr/local/bin/ | ||
|
||
RUN pip3 install --no-cache pypolca==${PYPOLCA_VER} | ||
|
||
ENV PATH="$PATH" \ | ||
LC_ALL=C | ||
|
||
# 'CMD' instructions set a default command when the container is run. This is typically 'tool --help.' | ||
CMD pypolca -h | ||
|
||
# 'WORKDIR' sets working directory | ||
WORKDIR /data | ||
|
||
# A second FROM insruction creates a new stage | ||
FROM app as test | ||
|
||
WORKDIR /test | ||
|
||
RUN pypolca -h && \ | ||
pypolca --version | ||
|
||
RUN wget -q https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123_1.fastq.gz && \ | ||
wget -q https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123_2.fastq.gz && \ | ||
wget -q https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123.consensus.fa && \ | ||
pypolca run -a SRR13957123.consensus.fa -1 SRR13957123_1.fastq.gz -2 SRR13957123_2.fastq.gz -t 2 -o test && \ | ||
head test/pypolca_*.log && \ | ||
ls test/pypolca.report test/pypolca.vcf test/pypolca_corrected.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,27 @@ | ||
# pypolca container | ||
|
||
Main tool: [pypolca](https://github.com/gbouras13/pypolca) | ||
|
||
Code repository: | ||
|
||
Additional tools: | ||
- samtools: 1.19 | ||
- vcftools: 0.1.16 | ||
- bwa: 0.7.17-r1188 | ||
- freebayes: 1.3.7 | ||
|
||
Basic information on how to use this tool: | ||
- executable: pypolca | ||
- help: pypolca -h | ||
- version: pypolca -v | ||
- description: Polished long-read assemblies with Illumina reads | ||
|
||
> pypolca is a Standalone Python re-implementation of the POLCA polisher from the MaSuRCA genome assembly and analysis toolkit. | ||
Full documentation: [https://github.com/rrwick/Polypolish](https://github.com/rrwick/Polypolish) | ||
|
||
## Example Usage | ||
|
||
```bash | ||
pypolca run -a assembly.fasta -1 R1.fastq.gz -2 R2.fastq.gz -t 4 -o output | ||
``` |