pub struct LocateIndex { /* private fields */ }Expand description
Precomputed lookup data for O(1) CDS offset and O(log n) exon lookup.
Built once per transcript via LocateIndex::build, then reused across
all variant queries against that transcript.
§Memory
For TTN (~363 exons): ~2.5 KB. For a full MANE store (~6 000 transcripts): ~15 MB total.
Implementations§
Source§impl LocateIndex
impl LocateIndex
Sourcepub fn build(transcript: &TranscriptModel) -> Result<Self, VarEffectError>
pub fn build(transcript: &TranscriptModel) -> Result<Self, VarEffectError>
Build the index for a given transcript. O(n) in the number of exons.
§Errors
Returns VarEffectError::Malformed if a CDS boundary coordinate does
not fall within any exon.
Trait Implementations§
Source§impl Clone for LocateIndex
impl Clone for LocateIndex
Source§fn clone(&self) -> LocateIndex
fn clone(&self) -> LocateIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocateIndex
impl RefUnwindSafe for LocateIndex
impl Send for LocateIndex
impl Sync for LocateIndex
impl Unpin for LocateIndex
impl UnsafeUnpin for LocateIndex
impl UnwindSafe for LocateIndex
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