Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "awry"
version = "0.2.2"
version = "0.3.0"
description = "Library for creating FM-indexes from FASTA/FASTQ files. AWRY is able to search at lightning speed by leveraging SIMD vectorization and multithreading over collections of queries."
license = "BSD-3-Clause"
homepage = "https://github.com/UM-Applied-Algorithms-Lab/AWRY_Index"
Expand Down
17 changes: 17 additions & 0 deletions src/fm_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,23 @@ impl FmIndex {
&self.prefix_sums
}

/// Gets the initial search range for the given character.
///
/// # Example
/// ```no_run
/// use awry::fm_index::{FmIndex, FmBuildArgs};
/// use awry::alphabet::SymbolAlphabet;
/// use std::path::Path;
/// use awry::search::SearchRange;
/// use awry::alphabet::Symbol;
///
/// let fm_index = FmIndex::load(&Path::new("test.awry")).expect("unable to load fm index from file");
/// let initial_search_range = fm_index.initial_search_range(Symbol::new_ascii(SymbolAlphabet::Nucleotide, 'A'));
/// ```
pub fn initial_search_range(&self, s:Symbol)->SearchRange{
return SearchRange::new(self, s);
}

/// Gets a reference to the compressed suffix array.
pub(crate) fn sampled_suffix_array(&self) -> &CompressedSuffixArray {
&self.sampled_suffix_array
Expand Down
Loading