sbol2.sequence¶
Module Contents¶
Classes¶
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.TopLevelThe primary structure (eg, nucleotide or amino acid sequence) of a ComponentDefinition object.
- __len__()¶
- Returns
The length of the primary sequence in the elements property.
- __bool__()¶
- length()¶
- Returns
The length of the primary sequence in the elements property.
- abstract synthesize(clone_id)¶
- Parameters
clone_id – A URI for the build, or displayId if working in
SBOLCompliant mode. :return:
- compile(composite_sequence='', assembly_method=None)¶