pub struct ReadObservation<P = Option<u32>, A = ExactAltLoci>where
P: Clone,
A: Clone,
{
Show 18 fields pub fragment_id: Option<u64>, pub prob_alt: LogProb, pub prob_ref: LogProb, pub prob_missed_allele: LogProb, pub prob_sample_alt: LogProb, pub prob_double_overlap: LogProb, pub prob_single_overlap: LogProb, pub prob_hit_base: LogProb, pub strand: Strand, pub read_orientation: SequenceReadPairOrientation, pub softclipped: bool, pub paired: bool, pub read_position: P, pub prob_observable_at_homopolymer_artifact: Option<LogProb>, pub prob_observable_at_homopolymer_variant: Option<LogProb>, pub homopolymer_indel_len: Option<i8>, pub is_max_mapq: bool, pub alt_locus: A, /* private fields */
}
Expand description

An observation for or against a variant.

Fields§

§fragment_id: Option<u64>§prob_alt: LogProb

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

§prob_ref: LogProb

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

§prob_missed_allele: LogProb

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.

§prob_sample_alt: LogProb

Probability to sample the alt allele

§prob_double_overlap: LogProb

Probability to overlap with both strands

§prob_single_overlap: LogProb

Probability to overlap with one strand only (1-prob_double_overlap)

§prob_hit_base: LogProb§strand: Strand

Strand evidence this observation relies on

§read_orientation: SequenceReadPairOrientation

Read orientation support this observation relies on

§softclipped: bool

True if obervation contains s

§paired: bool§read_position: P

Read position of the variant in the read (for SNV and MNV)

§prob_observable_at_homopolymer_artifact: Option<LogProb>

Probability to make this observation at a homopolymer artifact

§prob_observable_at_homopolymer_variant: Option<LogProb>§homopolymer_indel_len: Option<i8>

Homopolymer indel length (None if there is no homopolymer indel compared to reference)

§is_max_mapq: bool§alt_locus: A

Implementations§

Trait Implementations§

source§

impl<P, A> Clone for ReadObservation<P, A>where
P: Clone + Clone,
A: Clone + Clone,

source§

fn clone(&self) -> ReadObservation<P, A>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<P, A> Debug for ReadObservation<P, A>where
P: Clone + Debug,
A: Clone + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<P, A> Default for ReadObservation<P, A>where
P: Clone + Default,
A: Clone + Default,

source§

fn default() -> ReadObservation<P, A>

Returns the “default value” for a type. Read more
source§

impl<P, A> Serialize for ReadObservation<P, A>where
P: Clone + Serialize,
A: Clone + Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<P, A> RefUnwindSafe for ReadObservation<P, A>where
A: RefUnwindSafe,
P: RefUnwindSafe,

§

impl<P, A> Send for ReadObservation<P, A>where
A: Send,
P: Send,

§

impl<P, A> Sync for ReadObservation<P, A>where
A: Sync,
P: Sync,

§

impl<P, A> Unpin for ReadObservation<P, A>where
A: Unpin,
P: Unpin,

§

impl<P, A> UnwindSafe for ReadObservation<P, A>where
A: UnwindSafe,
P: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere
T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T> ToOwned for Twhere
T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,

§

fn vzip(self) -> V