Skip to main content

MultipleAlignment

Struct MultipleAlignment 

Source
pub struct MultipleAlignment {
    pub sequences: Vec<Vec<u8>>,
    pub names: Vec<String>,
    pub score: f64,
    pub step_trace: Vec<StepTrace>,
    pub guide_tree: Option<Topology>,
    pub first_pass_sequences: Option<Vec<Vec<u8>>>,
    pub distance_matrix: Option<DistanceMatrix>,
}

Fields§

§sequences: Vec<Vec<u8>>§names: Vec<String>§score: f64§step_trace: Vec<StepTrace>

Per-merge-step trace: one entry per progressive merge. Each entry is (clus1_size, clus2_size, width_after_merge, score) matching C’s RDBG step clus1 clus2 width score debug line. Used for regression tests that assert byte-level parity with C on a per-step basis; harmless to ignore.

§guide_tree: Option<Topology>

Final progressive guide tree, kept around so callers can serialize it for --treeout (mltaln9.c::loadtree and the various fixed_musclesupg_*_treeout variants). Populated by the engine when alignment completes; None for paths that don’t track it (e.g. tests building an MultipleAlignment directly).

§first_pass_sequences: Option<Vec<Vec<u8>>>

Aligned MSA after the FIRST retree pass, BEFORE the final pass rebuilds the guide tree and re-aligns. C MAFFT’s --parttree runs splittbfast twice and feeds CALL 1’s output (pre_1) to CALL 2 — both for --reorder and --treeout. We stash pre_1 here so the CLI can replay CALL 2’s tree generation on the right input.

§distance_matrix: Option<DistanceMatrix>

Pairwise distance matrix used by the engine for guide-tree construction. Populated when the engine knows callers will need it — currently --distout (writes <input>.hat2) and --scoreout (computes the unweighted SP score). None for paths that skip it (PartTree, –treein with a user-supplied tree, tests building a MultipleAlignment directly).

Implementations§

Source§

impl MultipleAlignment

Source

pub fn width(&self) -> usize

Source

pub fn nseq(&self) -> usize

Trait Implementations§

Source§

impl Clone for MultipleAlignment

Source§

fn clone(&self) -> MultipleAlignment

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for MultipleAlignment

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

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

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.