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: f32Implementations§
Source§impl Trace
impl Trace
pub const TRACE_IDX_TO_NAME: [&'static str; 12]
pub const INVALID_STATE: usize = 0usize
pub const M_STATE: usize = 1usize
pub const D_STATE: usize = 2usize
pub const I_STATE: usize = 3usize
pub const S_STATE: usize = 4usize
pub const N_STATE: usize = 5usize
pub const B_STATE: usize = 6usize
pub const E_STATE: usize = 7usize
pub const C_STATE: usize = 8usize
pub const T_STATE: usize = 9usize
pub const J_STATE: usize = 10usize
pub const X_STATE: usize = 11usize
pub fn iter(&self) -> IntoIter<TraceStep>
pub fn core_iter(&self) -> IntoIter<TraceStep>
pub fn get(&self, idx: usize) -> Option<TraceStep>
pub fn core_len(&self) -> usize
pub fn first_core(&self) -> Option<TraceStep>
pub fn last_core(&self) -> Option<TraceStep>
pub fn new(target_length: usize, profile_length: usize) -> Self
pub fn resize(&mut self, new_target_length: usize, new_profile_length: usize)
pub fn append_with_posterior_probability( &mut self, state: usize, target_idx: usize, profile_idx: usize, posterior_probability: f32, )
pub fn reverse(&mut self)
pub fn dump( &self, out: &mut impl Write, profile: &Profile, target: &Sequence, ) -> Result<()>
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more