augur.align module¶
Align multiple sequences from FASTA.
-
augur.align.
make_gaps_ambiguous
(aln)¶ replace all gaps by ‘N’ in all sequences in the alignment. TreeTime will treat them as fully ambiguous and replace then with the most likely state. This modifies the alignment in place.
- Parameters
aln (MultipleSeqAlign) – Biopython Alignment
-
augur.align.
register_arguments
(parser)¶
-
augur.align.
run
(args)¶ - Parameters
args (namespace) – arguments passed in via the command-line from augur
- Returns
returns 0 for success, 1 for general error
- Return type
int
-
augur.align.
strip_non_reference
(alignment_fname, reference, keep_reference=False)¶ return sequences that have all insertions relative to the reference removed. The alignment is read from file and returned as list of sequences.
- Parameters
alignment_fname (str) – alignment file name, file needs to be fasta format
reference (str) – name of reference sequence, assumed to be part of the alignment
keep_reference (bool, optional) – by default, the reference sequence is removed after stripping non-reference sequence. To keep the reference, use keep_reference=True
- Returns
list of trimmed sequences, effectively a multiple alignment
- Return type
list