| Crates.io | strobemers |
| lib.rs | strobemers |
| version | 0.1.0 |
| created_at | 2025-07-02 18:43:31.134246+00 |
| updated_at | 2025-07-02 18:43:31.134246+00 |
| description | A strobemer implementation |
| homepage | |
| repository | https://codeberg.org/mttmartin/strobemers |
| max_upload_size | |
| id | 1735460 |
| size | 12,124 |
A Rust crate to generate strobemers. Strobemers are a type of fuzzy seed originally designed for bioinformatics use-cases to perform well with substitutions and especially insertions/deletions. For more information see the paper: Kristoffer Sahlin, Effective sequence similarity detection with strobemers, Genome Res. November 2021 31: 2080-2094
This crate is currently intended to generate identical strobemers as the original C++ implementation here.
Currently only randstrobes order 2 and 3 are supported.
use strobemers::Randstrobe;
fn main() {
let reference = b"ACGCGTACGAATCACGCCGGGTGTGTGTGATCG";
let n: usize = 2;
let k: usize = 15;
let w_min: usize = 16;
let w_max: usize = 30;
let randstrobe_iter = Randstrobe::new(reference, n, k, w_min, w_max).unwrap();
for strobe in randstrobe_iter {
println!("randstrobe start positions: {:?}", strobe);
}
}