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: Stringchr: Stringrange: Intervalstrand: Strandexons: Vec<Interval>coding_sequences: Vec<CDS>

Implementations

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

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.