make_seq#

make_seq(seq, name: str = None, moltype=None, new_type: bool = False)#
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 2024.12. Support for the old style will be removed as of 2025.6.

Returns:
returns a sequence object