Struct mutexpect::SeqAnnotation [−][src]
pub struct SeqAnnotation {
pub name: String,
pub chr: String,
pub range: Interval,
pub strand: Strand,
pub exons: Vec<Interval>,
pub coding_sequences: Vec<CDS>,
}
Fields
name: String
chr: String
range: Interval
strand: Strand
exons: Vec<Interval>
coding_sequences: Vec<CDS>
Implementations
pub fn new(
name: String,
chr: String,
range: Interval,
strand: Strand,
exons: Vec<Interval>,
coding_sequences: Vec<CDS>
) -> Self
Find introns based on the exons Assumption: Every intron is flanked by exons
Cases: a b c d e exons | –|– | –|– | DNA –––––––––––––
a) Not an intron, because it is before the first exon b,d) Not an intron, because it is inside an exon c) An intron, because it is between two exons e) 3’ UTR region. Not an intron.
Determine all intron locations based on the exons
Note that exons may overlap. But in any case, this function only returns regions that are not covered by any exons (assuming that the exons are sorted by start and then by stop position).
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.