Skip to content

Commit

Permalink
Updating racon to 1.5.0 (#831)
Browse files Browse the repository at this point in the history
* initial racon files

* added builder and tests

* added racon version 1.5.0

* added additional racon repo

* add --no-install-recommends
  • Loading branch information
erinyoung authored Feb 7, 2024
1 parent e263d65 commit 5248f33
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Program_Licenses.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ The licenses of the open-source software that is contained in these Docker image
| pyGenomeViz | MIT | https://github.com/moshi4/pyGenomeViz/blob/main/LICENSE |
| QUAST | GNU GPLv2 | https://github.com/ablab/quast/blob/master/LICENSE.txt |
| QuickSNP | GNU GPLv3 | https://github.com/k-florek/QuickSNP/blob/main/LICENSE |
| racon | MIT | https://github.com/isovic/racon/blob/master/LICENSE |
| racon | MIT | https://github.com/lbcb-sci/racon/blob/master/LICENSE ; https://github.com/isovic/racon/blob/master/LICENSE |
| rasusa | MIT | https://github.com/mbhall88/rasusa/blob/master/LICENSE |
| raven | MIT | https://github.com/lbcb-sci/raven/blob/master/LICENSE |
| RAxML <br/> RAxML Next Generation | GNU GPLv3 (RAxML), <br/> GNU Affero GPLv3 (RAxML Next Generation)| https://github.com/stamatak/standard-RAxML/blob/master/gpl-3.0.txt <br/> https://github.com/amkozlov/raxml-ng/blob/master/LICENSE.txt |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ To learn more about the docker pull rate limits and the open source software pro
| [pyGenomeViz](https://hub.docker.com/r/staphb/pygenomeviz/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/pygenomeviz)](https://hub.docker.com/r/staphb/pygenomeviz) | <ul><li>0.2.2</li><li>0.3.2</li><li>[0.4.2](pygenomeviz/0.4.2/)</li><li>[0.4.3](pygenomeviz/0.4.3/)</li><li>[0.4.4](pygenomeviz/0.4.4/)</li></ul> | https://github.com/moshi4/pyGenomeViz |
| [QUAST](https://hub.docker.com/r/staphb/quast/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/quast)](https://hub.docker.com/r/staphb/quast) | <ul><li>5.0.0</li><li>5.0.2</li><li>[5.2.0](./quast/5.2.0)</li><li>[5.2.0-slim](./quast/5.2.0-slim)</li></ul> | https://github.com/ablab/quast |
| [QuickSNP](https://hub.docker.com/r/staphb/quicksnp/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/quicksnp)](https://hub.docker.com/r/staphb/quicksnp) | <ul><li>1.0.1</li></ul> | https://github.com/k-florek/QuickSNP |
| [racon](https://hub.docker.com/r/staphb/racon) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/racon)](https://hub.docker.com/r/staphb/racon)| <ul><li>1.4.3</li><li>1.4.20</li></ul> | https://github.com/lbcb-sci/racon <br/> https://github.com/isovic/racon (ARCHIVED) |
| [racon](https://hub.docker.com/r/staphb/racon) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/racon)](https://hub.docker.com/r/staphb/racon)| <ul><li>[1.4.3](./racon/1.4.3/)</li><li>[1.4.20](./racon/1.4.20/)</li><li>[1.5.0](./racon/1.5.0/)</li></ul> | <li> https://github.com/lbcb-sci/racon </li><li> https://github.com/isovic/racon (ARCHIVED)</li> |
| [rasusa](https://hub.docker.com/r/staphb/rasusa/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/rasusa)](https://hub.docker.com/r/staphb/rasusa) | <ul><li>[0.1.0](./rasusa/0.1.0/)</li><li>[0.2.0](./rasusa/0.2.0/)</li><li>[0.3.0](./rasusa/0.3.0/)</li><li>[0.6.0](./rasusa/0.6.0/)</li><li>[0.7.0](./rasusa/0.7.0/)</li><li>[0.8.0](./rasusa/0.8.0/)</li></ul> | https://github.com/mbhall88/rasusa |
| [raven](https://hub.docker.com/r/staphb/raven/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/raven)](https://hub.docker.com/r/staphb/raven) | <ul><li>1.5.1</li><li>1.8.1</li><li>[1.8.3](./raven/1.8.3)</li></ul> | https://github.com/lbcb-sci/raven |
| [RAxML](https://hub.docker.com/r/staphb/raxml/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/raxml)](https://hub.docker.com/r/staphb/raxml) | <ul><li>8.2.12 (RAxML) and 0.9.0 (RAxML Next Generation)</li></ul> | https://github.com/stamatak/standard-RAxML <br/> https://github.com/amkozlov/raxml-ng |
Expand Down
81 changes: 81 additions & 0 deletions racon/1.5.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
ARG RACON_VER="1.5.0"

# Use ubuntu as base image
FROM ubuntu:jammy as builder

ARG RACON_VER

RUN apt-get update && apt-get install --no-install-recommends -y \
perl \
default-jre \
gnuplot \
libgomp1 \
maven \
git \
wget \
python3 \
build-essential \
cmake \
zlib1g-dev && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*

# install racon
RUN wget https://github.com/lbcb-sci/racon/archive/refs/tags/${RACON_VER}.tar.gz && \
tar -xvf ${RACON_VER}.tar.gz && \
cd racon-${RACON_VER} && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. && \
make

ENV PATH="/racon-${RACON_VER}/build/bin:${PATH}"

RUN racon_test

FROM ubuntu:jammy as app

ARG RACON_VER

# metadata
LABEL base.image="ubuntu:jammy"
LABEL version="1"
LABEL dockerfile.version="1"
LABEL software="Racon"
LABEL software.version="${RACON_VER}"
LABEL description="Long read assembly and polishing tools"
LABEL website="https://github.com/lbcb-sci/racon"
LABEL license="https://github.com/lbcb-sci/racon/blob/master/LICENSE"
LABEL maintainer="Erin Young"
LABEL maintainer.email="[email protected]"

# install python
RUN apt-get update && apt-get install -y \
procps \
wget \
python3 && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*

COPY --from=builder /racon-${RACON_VER}/build/bin/* /usr/local/bin/

RUN mkdir /data

WORKDIR /data

# set perl locale settings
ENV PATH=${PATH} LC_ALL=C

CMD racon --help

FROM app as test

RUN racon --help && racon --version

COPY --from=builder /racon-${RACON_VER}/test/data/* /test/

WORKDIR /test

RUN wget -q https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/genomics/prokaryotes/bacteroides_fragilis/genome/genome.paf && \
wget -q https://github.com/nf-core/test-datasets/raw/modules/data/genomics/prokaryotes/bacteroides_fragilis/genome/genome.fna.gz && \
wget -q https://github.com/nf-core/test-datasets/raw/modules/data/genomics/prokaryotes/bacteroides_fragilis/nanopore/fastq/test.fastq.gz && \
racon -t 2 test.fastq.gz genome.paf genome.fna.gz > test_polished.fasta && \
head test_polished.fasta
23 changes: 23 additions & 0 deletions racon/1.5.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# racon container

Main tool : [racon](https://github.com/lbcb-sci/racon)

Code repository: https://github.com/lbcb-sci/racon

Basic information on how to use this tool:
- executable: racon
- help: -h
- version: -v
- description: Polishes long read assemblies

> Racon is intended as a standalone consensus module to correct raw contigs generated by rapid assembly methods which do not include a consensus step.
# Example Usage

```bash
# general
racon <sequences> <overlaps> <target sequences>

# more specific
racon --match 8 --mismatch -6 --gap -8 --window-length 500 --threads {threads} {input.reads} {input.alignment} {input.assembly}
```

0 comments on commit 5248f33

Please sign in to comment.