make_seq#

make_seq(seq, name: str | None = None, moltype=None, new_type: bool = False, annotation_offset: int = 0, annotation_db: SupportsFeatures | None = None, **kw: dict)#
Parameters:
seq

raw string to be converted to sequence object

name

sequence name

moltype

name of a moltype or moltype instance

new_type

if True, returns a new type Sequence (cogent3.core.new_sequence.Sequence). The default will be changed to True in 2025.1. Support for the old style will be removed as of 2025.6.

annotation_offset

integer indicating start position relative to annotations

**kw

other keyword arguments passed to Sequence

Returns:
returns a sequence object