pub struct IntronPosition {
pub intron_number: u32,
pub boundary: IntronBoundary,
pub offset: i64,
pub tx_boundary_pos: u64,
pub intron_length: u64,
}Expand description
Position within an intron
Fields§
§intron_number: u32Intron number (1-based)
boundary: IntronBoundaryWhich exon boundary this position is relative to
offset: i64Offset from the boundary (positive for 5’ boundary, negative for 3’)
tx_boundary_pos: u64Transcript position of the exon boundary
intron_length: u64Total length of the intron in bases
Implementations§
Source§impl IntronPosition
impl IntronPosition
Sourcepub fn is_deep_intronic(&self) -> bool
pub fn is_deep_intronic(&self) -> bool
Check if this is a deep intronic position (>50bp from nearest exon)
Sourcepub fn is_canonical_splice_site(&self) -> bool
pub fn is_canonical_splice_site(&self) -> bool
Check if this is at a canonical splice site (within 2bp of exon)
Sourcepub fn is_near_splice_site(&self) -> bool
pub fn is_near_splice_site(&self) -> bool
Check if this is near a splice site (within 10bp of exon)
Sourcepub fn is_extended_splice_region(&self) -> bool
pub fn is_extended_splice_region(&self) -> bool
Check if this is in the extended splice region (within 20bp of exon)
Sourcepub fn splice_site_type(&self) -> SpliceSiteType
pub fn splice_site_type(&self) -> SpliceSiteType
Get the splice site type based on position
Sourcepub fn distance_from_donor(&self) -> Option<u64>
pub fn distance_from_donor(&self) -> Option<u64>
Get distance from splice donor (5’ end of intron)
Sourcepub fn distance_from_acceptor(&self) -> Option<u64>
pub fn distance_from_acceptor(&self) -> Option<u64>
Get distance from splice acceptor (3’ end of intron)
Trait Implementations§
Source§impl Clone for IntronPosition
impl Clone for IntronPosition
Source§fn clone(&self) -> IntronPosition
fn clone(&self) -> IntronPosition
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 moreSource§impl Debug for IntronPosition
impl Debug for IntronPosition
Source§impl PartialEq for IntronPosition
impl PartialEq for IntronPosition
impl Copy for IntronPosition
impl Eq for IntronPosition
impl StructuralPartialEq for IntronPosition
Auto Trait Implementations§
impl Freeze for IntronPosition
impl RefUnwindSafe for IntronPosition
impl Send for IntronPosition
impl Sync for IntronPosition
impl Unpin for IntronPosition
impl UnsafeUnpin for IntronPosition
impl UnwindSafe for IntronPosition
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.