load_aligned_seqs
load_aligned_seqs(
filename,
format_name=None,
moltype='text',
label_to_name=None,
parser_kw=None,
info=None,
**kwargs,
)loads aligned sequences from file
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| filename | str | pathlib.Path | path to sequence file | required |
| format_name | str | None | sequence file format, if not specified tries to guess from the path suffix | None |
| moltype | MolTypeLiteral | the moltype, eg DNA, PROTEIN, ‘dna’, ‘protein’ | 'text' |
| label_to_name | typing.Callable[[str], str] | None | function for converting original name into another name. | None |
| parser_kw | dict | None | optional arguments for the parser | None |
| kwargs | typing.Any | passed to make_aligned_seqs | {} |
Notes
Use cogent3.available_seq_formats() to see the supported formats and file suffixes.
Returns
| Name | Type | Description |
|---|---|---|
Alignment instance |