load_unaligned_seqs
load_unaligned_seqs(
filename,
format_name=None,
moltype='text',
label_to_name=None,
parser_kw=None,
metadata=None,
**kwargs,
)loads unaligned sequences from file
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| filename | str | pathlib.Path | path to sequence file or wildcard / glob pattern (e.g. ’path/to/dir/*.fasta’). If a wildcard, we load one sequence per file. All seqs returned in one SequenceCollection. | 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 |
| metadata | dict | None | values for the collection’s metadata, which are copied. Ignored for json files | None |
| **kwargs | typing.Any | other keyword arguments passed to make_unaligned_seqs. When filename is a glob pattern, show_progress is also accepted and displays a progress bar for the number of files processed. | {} |
Notes
Use cogent3.available_seq_formats() to see the supported formats and file suffixes.
Returns
| Name | Type | Description |
|---|---|---|
SequenceCollection |