load_aligned_seqs#
- load_aligned_seqs(filename: str | Path, format_name: str | None = None, moltype: Literal['dna', 'rna', 'protein', 'protein_with_stop', 'text', 'bytes'] | None = None, label_to_name: Callable[[str], str] | None = None, parser_kw: dict | None = None, info: dict | None = None, **kw) Alignment #
loads aligned sequences from file
- Parameters:
- filename
path to sequence file
- format_name
sequence file format, if not specified tries to guess from the path suffix
- moltype
the moltype, eg DNA, PROTEIN, ‘dna’, ‘protein’
- label_to_name
function for converting original name into another name.
- parser_kw
optional arguments for the parser
- kw
passed to make_aligned_seqs
- Returns:
Alignment
instance