Skip to content

Commit

Permalink
add skani 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kincekara committed Aug 22, 2024
1 parent 184df77 commit ee31ed0
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ To learn more about the docker pull rate limits and the open source software pro
| [SISTR](https://hub.docker.com/r/staphb/sistr/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/sistr)](https://hub.docker.com/r/staphb/sistr) | <ul><li>1.0.2</li><li>1.1.1</li></ul> | https://github.com/phac-nml/sistr_cmd |
| [SKA](https://hub.docker.com/r/staphb/ska/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/ska)](https://hub.docker.com/r/staphb/ska) | <ul><li>1.0</li></ul> | https://github.com/simonrharris/SKA |
| [SKA2](https://hub.docker.com/r/staphb/ska2/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/ska2)](https://hub.docker.com/r/staphb/ska2) | <ul><li>[0.3.6](./ska2/0.3.6/)</li><li>[0.3.7](./ska2/0.3.7/)</li></ul> | https://github.com/bacpop/ska.rust |
| [skani](https://github.com/bluenote-1577/skani) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/skani)](https://hub.docker.com/r/staphb/skani) | <ul><li>[0.2.0](./skani/0.2.0)</li><li>[0.2.1](./skani/0.2.1)</li></ul> | https://github.com/bluenote-1577/skani |
| [skani](https://github.com/bluenote-1577/skani) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/skani)](https://hub.docker.com/r/staphb/skani) | <ul><li>[0.2.0](./skani/0.2.0)</li><li>[0.2.1](./skani/0.2.1)</li><li>[0.2.2](./skani/0.2.2)</li></ul> | https://github.com/bluenote-1577/skani |
| [SKESA](https://hub.docker.com/r/staphb/skesa) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/skesa)](https://hub.docker.com/r/staphb/skesa) | <ul><li>[2.3.0](./skesa/2.3.0/)</li><li>[2.4.0 (`gfa_connector` & `kmercounter` included)](./skesa/2.4.0/)</li><li>[skesa.2.4.0_saute.1.3.0_2 (also known as 2.5.1)](./skesa/skesa.2.4.0_saute.1.3.0_2/)</li></ul> | https://github.com/ncbi/SKESA |
| [Smalt](https://hub.docker.com/r/staphb/smalt) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/smalt)](https://hub.docker.com/r/staphb/smalt) | <ul><li>0.7.6</li></ul> | https://www.sanger.ac.uk/tool/smalt-0/ |
| [snpeff](https://hub.docker.com/r/staphb/snpeff) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/snpeff)](https://hub.docker.com/r/staphb/snpeff) | <ul><li>5.1</li><li>[5.2a](snpeff/5.2a/)</li></ul> | https://pcingola.github.io/SnpEff |
Expand Down
47 changes: 47 additions & 0 deletions skani/0.2.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
ARG SKANI_VER="0.2.2"

## Builder ##
FROM rust:1.80.1 AS builder

ARG SKANI_VER

RUN wget https://github.com/bluenote-1577/skani/archive/refs/tags/v${SKANI_VER}.tar.gz &&\
tar -xvf v${SKANI_VER}.tar.gz &&\
cd skani-${SKANI_VER} &&\
cargo install --path . --root ~/.cargo &&\
chmod +x /root/.cargo/bin/skani

## App ##
FROM ubuntu:jammy AS app

ARG SKANI_VER

LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="skani"
LABEL software.version=${SKANI_VER}
LABEL description="skani is a program for calculating average nucleotide identity (ANI) from DNA sequences (contigs/MAGs/genomes) for ANI > ~80%."
LABEL website="https://github.com/bluenote-1577/skani"
LABEL license="https://github.com/bluenote-1577/skani/blob/main/LICENSE"
LABEL maintainer="Kutluhan Incekara"
LABEL maintainer.email="[email protected]"

# copy app from builder stage
COPY --from=builder /root/.cargo/bin/skani /usr/local/bin/skani

# default run command
CMD skani -h

# singularity compatibility
ENV LC_ALL=C

WORKDIR /data

## Test ##
FROM app AS test

RUN apt-get update && apt-get install -y wget &&\
wget https://github.com/bluenote-1577/skani/raw/v0.2.0/refs/e.coli-EC590.fasta &&\
wget https://github.com/bluenote-1577/skani/raw/v0.2.0/refs/e.coli-K12.fasta

RUN skani dist e.coli-EC590.fasta e.coli-K12.fasta
33 changes: 33 additions & 0 deletions skani/0.2.2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# skani container

Main tool: [skani](https://github.com/bluenote-1577/skani)

Code repository: https://github.com/bluenote-1577/skani

Basic information on how to use this tool:
- executable: skani
- help: -h, --help
- version: -V, --version
- description: skani is a program for calculating average nucleotide identity (ANI) from DNA sequences (contigs/MAGs/genomes) for ANI > ~80%.

Additional information:

This container does not contain any database or reference genome.

Full documentation: https://github.com/bluenote-1577/skani/wiki

## Example Usage

Quick ANI calculation:
```bash
skani dist genome1.fa genome2.fa
```
Memory-efficient database search:
```bash
skani sketch genomes/* -o database
skani search -d database query1.fa query2.fa ...
```
All-to-all comparison:
```bash
skani triangle genomes/*
```

0 comments on commit ee31ed0

Please sign in to comment.