pub struct Transcript {
pub transcript_id: String,
pub start: u64,
pub end: u64,
pub exons: Vec<Exon>,
pub cds_start: Option<u64>,
pub cds_end: Option<u64>,
}Expand description
A transcript with optional CDS boundaries.
Fields§
§transcript_id: String§start: u640-based start (inclusive).
end: u640-based end (exclusive).
exons: Vec<Exon>§cds_start: Option<u64>CDS start (0-based inclusive), if protein-coding.
cds_end: Option<u64>CDS end (0-based exclusive), if protein-coding.
Implementations§
Source§impl Transcript
impl Transcript
Sourcepub fn exonic_length(&self) -> u64
pub fn exonic_length(&self) -> u64
Total exonic length (sum of individual exon lengths).
Sourcepub fn to_genomic_interval(
&self,
chrom: &str,
strand: Strand,
) -> GenomicInterval
pub fn to_genomic_interval( &self, chrom: &str, strand: Strand, ) -> GenomicInterval
Convert this transcript to a GenomicInterval on the given chromosome and strand.
Trait Implementations§
Source§impl Clone for Transcript
impl Clone for Transcript
Source§fn clone(&self) -> Transcript
fn clone(&self) -> Transcript
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 Transcript
impl Debug for Transcript
Source§impl PartialEq for Transcript
impl PartialEq for Transcript
impl Eq for Transcript
impl StructuralPartialEq for Transcript
Auto Trait Implementations§
impl Freeze for Transcript
impl RefUnwindSafe for Transcript
impl Send for Transcript
impl Sync for Transcript
impl Unpin for Transcript
impl UnsafeUnpin for Transcript
impl UnwindSafe for Transcript
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