LT FM-Index

lt-fm-index is library for locate and count nucleotide sequence (ATGC) string.
lt-fm-index using k-mer lookup table (As you noticed, LT stands for lookup table).

Description

```rust use ltfmindex::{Config, FmIndex};

let text = b"CTCCGTACACCTGTTTCGTATCGGA".tovec(); let config = Config::new() .setkmerlookuptable(8) .setsuffixarraysamplingratio(4); let fmindex = FmIndex::new(&config, text); let pattern = b"TA".tovec();

// count let count = fmindex.count(&pattern); asserteq!(count, 2);

// locate without k-mer lookup table let locations = fmindex.locate(&pattern); asserteq!(locations, vec![5,18]);

// locate with k-mer lookup table let locations = fmindex.locatewithklt(&pattern); asserteq!(locations, vec![5,18]); ```

Crate docs

Reference