-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #758 from Kincekara/skani-0.2.0
added skani
- Loading branch information
Showing
4 changed files
with
72 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,47 @@ | ||
ARG SKANI_VER="0.2.0" | ||
|
||
## Builder ## | ||
FROM rust:1.67 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="kutluhan.incekara@ct.gov" | ||
|
||
# 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 |
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,23 @@ | ||
# skani container | ||
|
||
Main tool : [skani](https://github.com/bluenote-1577/skani) | ||
|
||
Full documentation: https://github.com/bluenote-1577/skani/wiki | ||
|
||
skani is a program for calculating average nucleotide identity (ANI) from DNA sequences (contigs/MAGs/genomes) for ANI > ~80%. | ||
|
||
## 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/* | ||
``` |