pub struct Csi { /* private fields */ }Expand description
A struct representing CSI index file content
Implementations§
Source§impl Csi
impl Csi
Sourcepub fn get_bin_id(&self, beg: i64, end: i64) -> u32
pub fn get_bin_id(&self, beg: i64, end: i64) -> u32
Convert positional coordinate range to a bin number
beg, end`` coordinates are 0-based. It is exclusive for end. For some reason, not all length bin are searchable. It is seems that setting endtobeg` + 1 works well.
Sourcepub fn get_bin_details(&self, seqid: usize, bin_id: u32) -> Result<&CsiBin>
pub fn get_bin_details(&self, seqid: usize, bin_id: u32) -> Result<&CsiBin>
Get CsiBin based the chromosome id and bin number.
The return CsiBin can provide details of the included chunks.
Sourcepub fn get_bin_limit(&self) -> u32
pub fn get_bin_limit(&self) -> u32
Get the max possible bin number in theory. Note, the maximum bin may not be present in the Csi index file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Csi
impl RefUnwindSafe for Csi
impl Send for Csi
impl Sync for Csi
impl Unpin for Csi
impl UnwindSafe for Csi
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