Struct seqalign::Alignment
[−]
[src]
pub struct Alignment<'a, M, T> where
M: 'a + Measure<T>,
T: 'a + Eq, { /* fields omitted */ }
Edit distance cost matrix.
Methods
impl<'a, M, T> Alignment<'a, M, T> where
M: Measure<T>,
T: Eq,
[src]
M: Measure<T>,
T: Eq,
pub fn distance(&self) -> usize
[src]
Get the edit distance.
pub fn edit_script(&self) -> Vec<IndexedOperation<M::Operation>>
[src]
Return the script of edit operations to rewrite the source sequence
to the target sequence. If there are multiple possible edit scripts,
this method will return one of the possible edit scripts. If you want
to retrieve all possible edit scripts, use the edit_scripts
method.
pub fn edit_scripts(&self) -> HashSet<Vec<IndexedOperation<M::Operation>>>
[src]
Return all the edit scripts to rewrite the source sequence to the
target sequence. If you want just one edit script, use the
edit_script
method instead.
pub fn cost_matrix(&self) -> &Vec<Vec<usize>>
[src]
Get the cost matrix.
pub fn seq_pair(&self) -> &SeqPair<T>
[src]
Get the sequence pair associated with this cost matrix.