pub struct MsaResult {
pub aligned: Vec<Vec<u8>>,
pub n_columns: usize,
}Expand description
A multiple sequence alignment result.
Fields§
§aligned: Vec<Vec<u8>>Aligned sequences (with - gap characters), all the same length.
n_columns: usizeNumber of columns in the alignment.
Implementations§
Source§impl MsaResult
impl MsaResult
Sourcepub fn n_sequences(&self) -> usize
pub fn n_sequences(&self) -> usize
Number of sequences in the alignment.
Sourcepub fn column(&self, col: usize) -> Option<Vec<u8>>
pub fn column(&self, col: usize) -> Option<Vec<u8>>
Get a column of the alignment (one byte per sequence).
Sourcepub fn conservation(&self) -> f64
pub fn conservation(&self) -> f64
Fraction of columns where all sequences agree (no gaps, identical base).
Trait Implementations§
Auto Trait Implementations§
impl Forget for MsaResult
impl Freeze for MsaResult
impl Move for MsaResult
impl RefUnwindSafe for MsaResult
impl Send for MsaResultwhere
RawVecInner: Send,
impl Sync for MsaResultwhere
RawVecInner: Sync,
impl Unpin for MsaResult
impl UnsafeUnpin for MsaResult
impl UnwindSafe for MsaResultwhere
RawVecInner: UnwindSafe,
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