Trace

Struct Trace 

Source
pub struct Trace {
    pub length: usize,
    pub profile_length: usize,
    pub target_length: usize,
    pub states: Vec<usize>,
    pub profile_indices: Vec<usize>,
    pub target_indices: Vec<usize>,
    pub posterior_probabilities: Vec<f32>,
    pub cell_fraction: f32,
}

Fields§

§length: usize§profile_length: usize§target_length: usize§states: Vec<usize>§profile_indices: Vec<usize>§target_indices: Vec<usize>§posterior_probabilities: Vec<f32>§cell_fraction: f32

Implementations§

Source§

impl Trace

Source

pub const TRACE_IDX_TO_NAME: [&'static str; 12]

Source

pub const INVALID_STATE: usize = 0usize

Source

pub const M_STATE: usize = 1usize

Source

pub const D_STATE: usize = 2usize

Source

pub const I_STATE: usize = 3usize

Source

pub const S_STATE: usize = 4usize

Source

pub const N_STATE: usize = 5usize

Source

pub const B_STATE: usize = 6usize

Source

pub const E_STATE: usize = 7usize

Source

pub const C_STATE: usize = 8usize

Source

pub const T_STATE: usize = 9usize

Source

pub const J_STATE: usize = 10usize

Source

pub const X_STATE: usize = 11usize

Source

pub fn iter(&self) -> IntoIter<TraceStep>

Source

pub fn core_iter(&self) -> IntoIter<TraceStep>

Source

pub fn get(&self, idx: usize) -> Option<TraceStep>

Source

pub fn core_len(&self) -> usize

Source

pub fn first_core(&self) -> Option<TraceStep>

Source

pub fn last_core(&self) -> Option<TraceStep>

Source

pub fn new(target_length: usize, profile_length: usize) -> Self

Source

pub fn resize(&mut self, new_target_length: usize, new_profile_length: usize)

Source

pub fn append_with_posterior_probability( &mut self, state: usize, target_idx: usize, profile_idx: usize, posterior_probability: f32, )

Source

pub fn reverse(&mut self)

Source

pub fn dump( &self, out: &mut impl Write, profile: &Profile, target: &Sequence, ) -> Result<()>

Trait Implementations§

Source§

impl Default for Trace

Source§

fn default() -> Trace

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

Auto Trait Implementations§

§

impl Freeze for Trace

§

impl RefUnwindSafe for Trace

§

impl Send for Trace

§

impl Sync for Trace

§

impl Unpin for Trace

§

impl UnwindSafe for Trace

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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.

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V