[][src]Struct varlociraptor::model::evidence::observation::ObservationBuilder

pub struct ObservationBuilder { /* fields omitted */ }

Builder for Observation.

Methods

impl ObservationBuilder[src]

pub fn prob_mapping(&mut self, value: LogProb) -> &mut Self[src]

Posterior probability that the read/read-pair has been mapped correctly (1 - MAPQ).

pub fn prob_mismapping(&mut self, value: LogProb) -> &mut Self[src]

Posterior probability that the read/read-pair has been mapped incorrectly (MAPQ).

pub fn prob_alt(&mut self, value: LogProb) -> &mut Self[src]

Probability that the read/read-pair comes from the alternative allele.

pub fn prob_ref(&mut self, value: LogProb) -> &mut Self[src]

Probability that the read/read-pair comes from the reference allele.

pub fn prob_missed_allele(&mut self, value: LogProb) -> &mut Self[src]

Probability that the read/read-pair comes from an unknown allele at an unknown true locus (in case it is mismapped). This should usually be set as the product of the maxima of prob_ref and prob_alt per read.

pub fn prob_sample_alt(&mut self, value: LogProb) -> &mut Self[src]

Probability to sample the alt allele

pub fn forward_strand(&mut self, value: bool) -> &mut Self[src]

Observation relies on forward strand evidence

pub fn reverse_strand(&mut self, value: bool) -> &mut Self[src]

Observation relies on reverse strand evidence

pub fn evidence(&mut self, value: Evidence) -> &mut Self[src]

Type of evidence.

pub fn build(&self) -> Result<Observation, String>[src]

Builds a new Observation.

Errors

If a required field has not been initialized.

Trait Implementations

impl Default for ObservationBuilder[src]

impl Clone for ObservationBuilder[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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