load_unaligned_seqs

load_unaligned_seqs(
    filename,
    format_name=None,
    moltype='text',
    label_to_name=None,
    parser_kw=None,
    info=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
info dict | None a dict from which to make an info object None
**kwargs typing.Any other keyword arguments passed to SequenceCollection, or show_progress. The latter induces a progress bar for number of files processed when filename is a glob pattern. {}

Notes

Use cogent3.available_seq_formats() to see the supported formats and file suffixes.

Returns

Name Type Description
SequenceCollection