sbol2.sequence

Module Contents

Classes

Sequence

The primary structure (eg, nucleotide or amino acid sequence)

class sbol2.sequence.Sequence(uri=URIRef('example'), elements='', encoding=SBOL_ENCODING_IUPAC, version=VERSION_STRING, type_uri=SBOL_SEQUENCE)

Bases: sbol2.toplevel.TopLevel

The primary structure (eg, nucleotide or amino acid sequence) of a ComponentDefinition object.

__len__(self)
Returns

The length of the primary sequence in the elements property.

__bool__(self)
length(self)
Returns

The length of the primary sequence in the elements property.

abstract synthesize(self, clone_id)
Parameters

clone_id – A URI for the build, or displayId if working in

SBOLCompliant mode. :return:

compile(self, composite_sequence='', assembly_method=None)