-
Notifications
You must be signed in to change notification settings - Fork 0
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 #34 from tmaklin/dev
First public release
- Loading branch information
Showing
17 changed files
with
690 additions
and
830 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,43 +1,18 @@ | ||
[package] | ||
name = "sablast" | ||
version = "0.3.0" | ||
name = "kbo" | ||
version = "0.4.0" | ||
edition = "2021" | ||
rust-version = "1.77.0" | ||
authors = ["Tommi Mäklin <[email protected]>"] | ||
description = "Spectral Burrows-Wheeler transform accelerated local alignment search" | ||
readme = "README.md" | ||
homepage = "https://github.com/tmaklin/sablast" | ||
repository = "https://github.com/tmaklin/sablast" | ||
homepage = "https://github.com/tmaklin/kbo" | ||
repository = "https://github.com/tmaklin/kbo" | ||
license = "MIT OR Apache-2.0" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[features] | ||
cli = ["dep:needletail", "dep:clap", "dep:rayon", "dep:log", "dep:stderrlog"] | ||
|
||
[[bin]] | ||
name = "sablast" | ||
path = "src/cli/main.rs" | ||
required-features = ["cli"] | ||
|
||
[dependencies] | ||
## core | ||
sbwt = "0.3.1" | ||
|
||
## cli | ||
clap = { version = "4", features = ["derive"], optional = true} | ||
|
||
### io | ||
#### TODO Re-enable reading compressed sequences in needletail | ||
##### This requires resolving the libllzma linker issue in build_artifacts.yml | ||
needletail = { version = "0.5.1", default-features = false, optional = true } | ||
|
||
### logging | ||
log = { version = "0.4.20", optional = true } | ||
stderrlog = { version = "0.6.0", optional = true } | ||
|
||
### threading | ||
rayon = { version = "1", optional = true } | ||
sbwt = { version = "0.3.4", features = ["bpks-mem"] } | ||
|
||
## docs | ||
embed-doc-image="0.1.4" | ||
|
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 |
---|---|---|
@@ -1,5 +1,35 @@ | ||
# sablast | ||
# kbo | ||
Spectral Burrows-Wheeler transform accelerated local alignment search. | ||
|
||
kbo is an approximate local aligner based on converting [_k_-bounded matching | ||
statistics](https://www.biorxiv.org/content/10.1101/2024.02.19.580943v1) | ||
into a character representation of the underlying alignment sequence. | ||
|
||
Documentation is available at [https://docs.rs/kbo](https://docs.rs/kbo). | ||
|
||
## Installation | ||
kbo is distributed as three separate Rust packages: | ||
- [kbo](https://github.com/tmaklin/kbo) contains a Rust library implementing the core algorithm (this repository). | ||
- [kbo-cli](https://github.com/tmaklin/kbo-cli) provides a command-line interface for `kbo find` and `kbo map`. | ||
- [kbo-gui](https://github.com/tmaklin/kbo-cli) provides a WebAssembly graphical user interface for running kbo in the browser. | ||
|
||
## About | ||
kbo supports two main operations: | ||
|
||
- `kbo find` matches the _k_-mers in a query sequence with the | ||
reference and reports the local alignment segments found within the | ||
reference. Find is useful for problems that can be solved with | ||
[blast](https://blast.ncbi.nlm.nih.gov/Blast.cgi). | ||
- `kbo map` maps the query sequence against a reference | ||
sequence, and reports the nucleotide sequence of the alignment relative to | ||
the reference. Map solves the same problem as | ||
[snippy](https://github.com/tseemann/snippy) and [ska | ||
map](https://docs.rs/ska/latest/ska/#ska-map). | ||
|
||
kbo uses the [Spectral Burrows-Wheeler | ||
Transform](https://docs.rs/sbwt/latest/sbwt/) data structure that allows | ||
efficient _k_-mer matching between a target and a query sequence and | ||
fast retrieval of the _k_-bounded matching statistic for each _k_-mer match. | ||
|
||
## License | ||
sablast is dual-licensed under the [MIT](LICENSE-MIT) and [Apache 2.0](LICENSE-APACHE) licenses. | ||
kbo is dual-licensed under the [MIT](LICENSE-MIT) and [Apache 2.0](LICENSE-APACHE) licenses. |
Oops, something went wrong.