pub struct QuerySketch {
pub buckets: [Vec<(u64, u32)>; 256],
pub sample_names: Vec<String>,
pub query_sizes: Vec<usize>,
}Fields§
§buckets: [Vec<(u64, u32)>; 256]§sample_names: Vec<String>§query_sizes: Vec<usize>Implementations§
Source§impl QuerySketch
impl QuerySketch
pub fn new() -> Self
pub fn bucket(&self, idx: usize) -> &[(u64, u32)]
pub fn sample_count(&self) -> usize
pub fn total_entries(&self) -> usize
pub fn from_jam<P: AsRef<Path>>( path: P, db: &JamReader, ) -> Result<Self, QueryError>
pub fn from_fasta<P: AsRef<Path>>( input: P, db: &JamReader, singleton: bool, ) -> Result<Self, QueryError>
pub fn from_inputs( inputs: &[PathBuf], db: &JamReader, singleton: bool, ) -> Result<Self, QueryError>
Trait Implementations§
Source§impl Debug for QuerySketch
impl Debug for QuerySketch
Auto Trait Implementations§
impl Freeze for QuerySketch
impl RefUnwindSafe for QuerySketch
impl Send for QuerySketch
impl Sync for QuerySketch
impl Unpin for QuerySketch
impl UnwindSafe for QuerySketch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more