make_seq#

make_seq(seq, name: str | None = None, moltype: Literal['dna', 'rna', 'protein', 'protein_with_stop', 'text', 'bytes'] | None = None, 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. If None, defaults to ‘text’.

annotation_offset

integer indicating start position relative to annotations

**kw

other keyword arguments passed to Sequence

Returns:
returns a sequence object