Choose from:
cargo install ska
or cargo add ska
.conda install -c bioconda ska2
(note the two!).For 2) or 4) you must have the rust toolchain installed.
If you have an M1/M2 (arm64) Mac, we aren't currently automatically building binaries, so would recommend either option 2) or 4) for best performance.
If you get a message saying the binary isn't signed by Apple and can't be run,
use the following command to bypass this:
xattr -d "com.apple.quarantine" ./ska
git clone
.cargo install --path .
or RUSTFLAGS="-C target-cpu=native" cargo install --path .
to optimise for your machine.Can be found at https://docs.rs/ska.
This is a reimplementation of Simon Harris' SKA package in the rust language, by Johanna von Wachsmann, Simon Harris and John Lees.
SKA (Split Kmer Analysis) is a toolkit for prokaryotic (and any other small, haploid) DNA sequence analysis using split kmers. A split kmer is a pair of kmers in a DNA sequence that are separated by a single base. Split kmers allow rapid comparison and alignment of small genomes, and is particulalry suited for surveillance or outbreak investigation. SKA can produce split kmer files from fasta format assemblies or directly from fastq format read sequences, cluster them, align them with or without a reference sequence and provide various comparison and summary statistics. Currently all testing has been carried out on high-quality Illumina read data, so results for other platforms may vary.
Optimisations include:
And other improvements:
-o
.ska fasta
, ska fastq
, ska alleles
and ska merge
into the new ska build
.ska align
or ska map
.ska cov
.All of which make ska.rust
run faster and with smaller file size and memory
footprint than the original.
None at present
ska map
). Issue #5.ska annotate
(use bedtools).ska compare
, ska humanise
, ska info
or ska summary
(replaced by ska nk --full-info
).ska unique
(you can parse ska nk --full-info
if you want this functionality, but we didn't think it's used much).ska type
(use PopPUNK instead of MLST 🙂).skf
files are not backwards compatible with version 1.