strobemers

Crates.iostrobemers
lib.rsstrobemers
version0.1.0
created_at2025-07-02 18:43:31.134246+00
updated_at2025-07-02 18:43:31.134246+00
descriptionA strobemer implementation
homepage
repositoryhttps://codeberg.org/mttmartin/strobemers
max_upload_size
id1735460
size12,124
Matthew Martin (mttmartin)

documentation

README

Strobemers

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.

Usage example

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);
    }
}
Commit count: 0

cargo fmt