Expand description
Core MAFFT alignment engine.
Orchestrates the full alignment pipeline:
- Progressive alignment following a guide tree.
- Iterative refinement with score-based acceptance.
- Adding sequences to existing alignments.
Ports the C TreeDependentIteration() from tditeration.c,
progressive alignment from disttbfast.c/tbfast.c, and
addonetip() from addfunctions.c.
Re-exports§
pub use progressive::progressive_align;pub use progressive::progressive_align_partial;pub use progressive::progressive_align_unweighted;pub use progressive::progressive_align_with_weights_override;pub use progressive::MultipleAlignment;pub use progressive::StepTrace;
Modules§
- adjust_
direction - Port of C MAFFT’s
--adjustdirectionstrand-detection preprocessing. - external
- progressive
Structs§
- Mafft
Engine - The main MAFFT alignment engine.
- Refinement
Params - Parameters controlling iterative refinement.
Enums§
- Alignment
Mode - Alignment mode (strategy).
Functions§
- add_
sequences - Add new sequences to an existing alignment.
- add_
sequences_ keeplength - Add sequences while preserving the existing alignment’s column
structure (
--add --keeplength). After running the standardadd_sequences, deletes any columns that exist only because of new-sequence insertions, restoring the existing alignment to its original width. Columns where ANY new sequence had a residue but ALL existing sequences had gaps get the new-sequence residue dropped (truncated at that position). - add_
sequences_ keeplength_ with_ map - Like
add_sequences_keeplengthbut also returns the per-added- sequence list of dropped insertion runs ((start_in_addbk_0based, run_length)pairs). Used by--mapout/--compactmapout. - dndpre_
offset_ shift - Matrix shift applied when rebuilding the refinement-tree distances the
way C’s
dndpredoes, for the modes that have nopairlocalalignstep (FFT-NS-i and friends). - iterative_
refine - Iteratively refine a multiple alignment.
- pair_
penalty_ scales - Scale factors turning the pair-phase
ppenalty-style integers (lgop * 1000, …) into DP units:(gap_scale, offset_scale).