Skip to content
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 masurca version 4.1.2 #908

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding all these relative links 👍

Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ To learn more about the docker pull rate limits and the open source software pro
| [MAFFT](https://hub.docker.com/r/staphb/mafft/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/mafft)](https://hub.docker.com/r/staphb/mafft) | <ul><li>7.450</li><li>7.475</li><li>7.505</li></ul> | https://mafft.cbrc.jp/alignment/software/ |
| [Mash](https://hub.docker.com/r/staphb/mash/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/mash)](https://hub.docker.com/r/staphb/mash) | <ul><li>2.1</li><li>2.2</li><li>2.3</li></ul> | https://github.com/marbl/Mash |
| [mashtree](https://hub.docker.com/r/staphb/mashtree) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/mashtree)](https://hub.docker.com/r/staphb/mashtree) | <ul><li>[0.52.0](./mashtree/0.52.0/)</li><li>[0.57.0](./mashtree/0.57.0/)</li><li>[1.0.4](./mashtree/1.0.4/)</li><li>[1.2.0](./mashtree/1.2.0/)</li><li>[1.4.6](./mashtree/1.4.6/)</li></ul> | https://github.com/lskatz/mashtree |
| [MaSuRCA](https://hub.docker.com/r/staphb/masurca) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/masurca)](https://hub.docker.com/r/staphb/masurca) | <ul><li>4.0.8</li><li>4.0.9</li><li>4.1.0</li></ul> | https://github.com/alekseyzimin/masurca |
| [MaSuRCA](https://hub.docker.com/r/staphb/masurca) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/masurca)](https://hub.docker.com/r/staphb/masurca) | <ul><li>[4.0.8](./masurca/4.0.8/)</li><li>[4.0.9](./masurca/4.0.9/)</li><li>[4.1.0](./masurca/4.1.0/)</li><li>[4.1.1](./masurca/4.1.1/)</li></ul> | https://github.com/alekseyzimin/masurca |
| [medaka](https://hub.docker.com/r/staphb/medaka) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/medaka)](https://hub.docker.com/r/staphb/medaka) | <ul><li>0.8.1</li><li>1.0.1</li><li>1.2.0</li></ul> | https://github.com/nanoporetech/medaka |
| [metaphlan](https://hub.docker.com/r/staphb/metaphlan) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/metaphlan)](https://hub.docker.com/r/staphb/metaphlan) | <ul><li>3.0.3-no-db (no database)</li><li> 3.0.3 (~3GB db)</li><li>[4.1.0](./metaphlan/4.1.0/) (no database)</li></ul> | https://github.com/biobakery/MetaPhlAn |
| [MIDAS](https://hub.docker.com/r/staphb/midas) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/midas)](https://hub.docker.com/r/staphb/midas) | <ul><li>1.3.2 (no database)</li> | https://github.com/snayfach/MIDAS |
Expand Down
71 changes: 71 additions & 0 deletions masurca/4.1.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
FROM ubuntu:jammy as app

ARG MASURCA_VER="4.1.1"
ARG MINIMAP2_VER="2.24"
ARG BWA_VER="0.7.17"

LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="masurca"
LABEL software.version="${MASURCA_VER}"
LABEL description="Genome Assembly and Analysis"
LABEL website="https://github.com/alekseyzimin/masurca"
LABEL license="https://github.com/alekseyzimin/masurca/blob/master/LICENSE.txt"
LABEL maintainer="Erin Young"
LABEL maintainer.email="[email protected]"

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
#python \
build-essential \
curl \
wget \
gcc \
zlib1g-dev \
bzip2 \
libboost-dev \
libbz2-dev \
liblzma-dev \
numactl \
procps \
bwa && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*

# install minimap2
RUN curl -L https://github.com/lh3/minimap2/releases/download/v${MINIMAP2_VER}/minimap2-${MINIMAP2_VER}_x64-linux.tar.bz2 | tar -jxvf - --no-same-owner

# install masurca suite
RUN mkdir /data && \
wget https://github.com/alekseyzimin/masurca/releases/download/v$MASURCA_VER/MaSuRCA-$MASURCA_VER.tar.gz && \
tar -xvf MaSuRCA-$MASURCA_VER.tar.gz && \
tail /MaSuRCA-4.1.1/install.sh && \
rm MaSuRCA-$MASURCA_VER.tar.gz

WORKDIR /MaSuRCA-$MASURCA_VER

# even in 4.1.1 there's the evil cp at the end of .install.sh
# This gives the error:
# 302.0 + cp -a ../Flye /MaSuRCA-4.1.1
# 302.0 cp: '../Flye' and '/MaSuRCA-4.1.1/Flye' are the same file
RUN bash /MaSuRCA-$MASURCA_VER/install.sh 2>/dev/null ; exit 0

ENV PATH="${PATH}:/MaSuRCA-${MASURCA_VER}/Flye/bin:/MaSuRCA-${MASURCA_VER}/bin:/minimap2-${MINIMAP2_VER}_x64-linux:/bwa/bwa-${BWA_VER}" \
LC_ALL=C

# WORKDIR sets working directory
WORKDIR /data

FROM app as test

# testing POLCA
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 && \
polca.sh -a SRR13957123.consensus.fa -r 'SRR13957123_1.fastq.gz SRR13957123_2.fastq.gz' && \
test -f SRR13957123.consensus.fa.PolcaCorrected.fa

# testing hybrid assembly
RUN wget -q https://github.com/rrwick/Unicycler/raw/69e712eb95c4b9f8a46aade467260260a9ce7a91/sample_data/short_reads_1.fastq.gz && \
wget -q https://github.com/rrwick/Unicycler/raw/69e712eb95c4b9f8a46aade467260260a9ce7a91/sample_data/short_reads_2.fastq.gz && \
wget -q https://github.com/rrwick/Unicycler/raw/69e712eb95c4b9f8a46aade467260260a9ce7a91/sample_data/long_reads_low_depth.fastq.gz && \
masurca -t 2 -i short_reads_1.fastq.gz,short_reads_2.fastq.gz -r long_reads_low_depth.fastq.gz
25 changes: 25 additions & 0 deletions masurca/4.1.1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# masurca container

Main tools:

- [masurca](https://github.com/alekseyzimin/masurca)
- [polca](https://github.com/alekseyzimin/masurca#polca)
- [Chromosome scaffolder](https://github.com/alekseyzimin/masurca#chromosome-scaffolder)
- [SAMBA](https://github.com/alekseyzimin/masurca#samba-scaffolder)

Other tools:

- [bwa](https://github.com/lh3/bwa) (used by polca) 0.7.17-r1188
- [minimap2](https://github.com/lh3/minimap2) (used by samba) 2.24-r1122

## Example Usage

```bash
# masurca hybrid assembly
masurca -t 2 -i short_reads_1.fastq.gz,short_reads_2.fastq.gz -r long_reads.fastq.gz

# polishes consensus genome with paired-end Illumina reads
polca.sh -a genome.fasta -r 'reads1.fastq reads2.fastq.gz' -t 16 -m 1G
```

Better documentation can be found at [https://github.com/alekseyzimin/masurca](https://github.com/alekseyzimin/masurca)