Align sequences with MAFFT, ready for infer_tree
align_sequencesAlign 2-200 unaligned DNA or protein sequences with MAFFT to produce equal-length FASTA ready for phylogenetic tree inference or substitution model selection.
Instructions
Align unaligned sequences with MAFFT, ready for infer_tree.
The returned fasta has every row the same length and can be passed to
infer_tree or select_substitution_model unchanged. Each output row, with
its gaps removed, is verified to equal the input sequence before it is
returned.
Args:
fasta: UNALIGNED sequences in FASTA, 2-200 of them. Gap characters are
refused: input that is already aligned does not need this tool.
sequence_type: "dna" (default) or "protein". Declared, never sniffed,
and passed to MAFFT explicitly so it does not guess either.
fasta_path: Path of a FASTA file to read instead of fasta.
out_path: Write the aligned FASTA to this NEW file (never overwritten;
its directory must exist) instead of returning it: fasta comes
back None and written_to holds the absolute path, which
infer_tree, select_substitution_model and map_positions take
as fasta_path. Use it rather than copying rows between calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fasta | No | ||
| out_path | No | ||
| fasta_path | No | ||
| sequence_type | No | dna |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fasta | Yes | ||
| engine | Yes | ||
| warnings | Yes | ||
| alignment | Yes | ||
| written_to | Yes | ||
| input_lengths | Yes | ||
| sequence_type | Yes | ||
| ready_for_infer_tree | Yes |