[][src]Struct varlociraptor::model::evidence::fragments::IndelEvidence

pub struct IndelEvidence {}

Calculate read evindence for an indel.

Methods

impl IndelEvidence[src]

pub fn new() -> Self[src]

Create a new instance.

pub fn is_discriminative(
    &self,
    variant: &Variant,
    alignment_properties: &AlignmentProperties
) -> bool
[src]

Returns true if insert size is discriminative.

pub fn prob(
    &self,
    insert_size: u32,
    variant: &Variant,
    alignment_properties: &AlignmentProperties
) -> Result<(LogProb, LogProb)>
[src]

Calculate probability for reference and alternative allele.

pub fn prob_sample_alt(
    &self,
    left_read_len: u32,
    right_read_len: u32,
    variant: &Variant,
    alignment_properties: &AlignmentProperties
) -> LogProb
[src]

Probability to sample read from alt allele for globally observed number of feasible positions.

The key idea is to take the insert size distribution and calculate the expected probability by considering the number of valid placements over all placements for each possible insert size.

pub fn prob_double_overlap(
    &self,
    left_read_len: u32,
    right_read_len: u32,
    variant: &Variant,
    alignment_properties: &AlignmentProperties
) -> LogProb
[src]

Trait Implementations

impl Clone for IndelEvidence[src]

impl Debug for IndelEvidence[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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,