pub struct Hat2Matrix {
pub names: Vec<String>,
pub distances: Vec<Vec<f64>>,
}Expand description
MAFFT’s hat2 distance matrix format.
Stores an upper-triangular pairwise distance matrix with sequence names. The on-disk format is:
1
<nseq>
<scaled_max>
1. name1
2. name2
...
<d(0,1)> <d(0,2)> ... (12 per line, 6-char fixed-width fields)
<d(1,2)> <d(1,3)> ...Fields§
§names: Vec<String>Sequence names.
distances: Vec<Vec<f64>>Upper-triangular distances: distances[i][j] is the distance
between sequence i and sequence i + j + 1.
So row i has nseq - i - 1 elements.
Implementations§
Trait Implementations§
Source§impl Clone for Hat2Matrix
impl Clone for Hat2Matrix
Source§fn clone(&self) -> Hat2Matrix
fn clone(&self) -> Hat2Matrix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Hat2Matrix
impl RefUnwindSafe for Hat2Matrix
impl Send for Hat2Matrix
impl Sync for Hat2Matrix
impl Unpin for Hat2Matrix
impl UnsafeUnpin for Hat2Matrix
impl UnwindSafe for Hat2Matrix
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