Skip to content

Commit 46b792e

Browse files
authored
adding ska2 version 0.3.10 (#1069)
1 parent d27fdc1 commit 46b792e

File tree

3 files changed

+71
-1
lines changed

3 files changed

+71
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ To learn more about the docker pull rate limits and the open source software pro
278278
| [Shovill-se](https://hub.docker.com/r/staphb/shovill-se/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/shovill-se)](https://hub.docker.com/r/staphb/shovill-se) | <ul><li>1.1.0</li></ul> | https://github.com/rpetit3/shovill/tree/v1.1.0se |
279279
| [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 |
280280
| [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 |
281-
| [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 |
281+
| [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><li>[0.3.10](./ska2/0.3.10/)</li></ul> | https://github.com/bacpop/ska.rust |
282282
| [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 |
283283
| [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 |
284284
| [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/ |

ska2/0.3.10/Dockerfile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
FROM ubuntu:jammy as app
2+
3+
ARG SKA2_VER="0.3.10"
4+
5+
LABEL base.image="ubuntu:jammy"
6+
LABEL dockerfile.version="1"
7+
LABEL software="SKA2"
8+
LABEL software.version="${SKA2_VER}"
9+
LABEL description="A reimplementation of the SKA package in the rust language"
10+
LABEL website="https://github.com/bacpop/ska.rust"
11+
LABEL license="https://github.com/bacpop/ska.rust/blob/master/LICENSE"
12+
LABEL maintainer="Kutluhan Incekara"
13+
LABEL maintainer.email="kutluhan.incekara@ct.gov"
14+
15+
RUN apt-get update && apt-get install --no-install-recommends -y \
16+
wget &&\
17+
apt-get autoclean && rm -rf /var/lib/apt/lists/*
18+
19+
RUN wget --no-check-certificate https://github.com/bacpop/ska.rust/releases/download/v${SKA2_VER}/ska-v${SKA2_VER}-ubuntu-latest-stable.tar.gz &&\
20+
tar -C /usr/local/bin -xvf ska-v${SKA2_VER}-ubuntu-latest-stable.tar.gz ska &&\
21+
rm ska-v${SKA2_VER}-ubuntu-latest-stable.tar.gz
22+
23+
ENV LC_ALL=C
24+
25+
CMD [ "ska", "-h" ]
26+
27+
WORKDIR /data
28+
29+
## Test ##
30+
FROM app as test
31+
32+
# force bash to avoid shell errors
33+
SHELL ["/bin/bash", "-c"]
34+
35+
# adapted from tutorial https://www.bacpop.org/guides/building_trees_with_ska/
36+
RUN wget --no-check-certificate https://zenodo.org/record/8172518/files/building_trees_with_ska.tar &&\
37+
tar -xvf building_trees_with_ska.tar assemblies/LA002.fa.gz assemblies/LA022.fa.gz assemblies/LA023.fa.gz assemblies/LA026.fa.gz &&\
38+
paste <(ls assemblies | sed 's/[.].*$//g') <(ls -d assemblies/*) > laos_ska_input.tsv
39+
40+
RUN ska build -f laos_ska_input.tsv -k 31 -o laos_ska_index --threads 4 &&\
41+
ska align --min-freq 1 --filter no-filter laos_ska_index.skf -o laos_ska_alignment.aln --threads 4 &&\
42+
head -c 1000 laos_ska_alignment.aln &&\
43+
grep ">" laos_ska_alignment.aln
44+
45+
46+

ska2/0.3.10/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# SKA2 container
2+
3+
Main tool: [SKA2](https://github.com/bacpop/ska.rust)
4+
5+
Code repository: https://github.com/bacpop/ska.rust
6+
7+
Basic information on how to use this tool:
8+
- executable: ska
9+
- help: -h, --help
10+
- version: -V, --version
11+
- description: SKA2 is a reimplementation of the SKA package in the rust language. Split k-mer analysis (version 2) uses exact matching of split k-mer sequences to align closely related sequences, typically small haploid genomes such as bacteria and viruses.
12+
13+
Full documentation: https://docs.rs/ska/latest/ska/
14+
15+
## Example Usage
16+
17+
```bash
18+
# Build from two input FASTA files with a k-mer size of 31
19+
ska build -o seqs -k 31 assemblies/seq1.fa assemblies/seq2.fa
20+
# align
21+
ska align --min-freq 1 --filter no-filter -o seqs seqs.skf
22+
# map
23+
ska map ref.fa seqs.skf -o ref_mapped.aln
24+
```

0 commit comments

Comments
 (0)