[][src]Struct mutexpect::PointMutationClassifier

pub struct PointMutationClassifier<'a> { /* fields omitted */ }

Implementations

impl<'a> PointMutationClassifier<'a>[src]

pub fn new(gene_info: &'a SeqAnnotation, middle_index: usize) -> Self[src]

pub fn classify_by_position(
    &self,
    genomic_position: usize,
    seq: &[char],
    intron: &Option<Interval>
) -> MutationType
[src]

Classify the effect of a point mutation

Parameters: genomic_position: The orginal genomic position on a chromosome where the mutation takes place seq: The reference sequence around the mutation site, with the mutated locus in the middle other_nucleotide: The nucleotide that will replace the old nucleotide cds_index_hint: (optional) The internal array-index of the CDS that this mutation falls into. If you provide this, and it is correct, no search for a matching CDS needs to be done.

Returns: The corresponding MutationType

pub fn classify_coding_mutation(
    &self,
    genomic_position: usize,
    seq: &[char],
    other_nucleotide: char,
    cds: &CDS
) -> MutationType
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.