sbol2.sequenceannotation¶
Module Contents¶
Classes¶
An SBOLObject converts a Python data structure into an RDF triple store |
- class sbol2.sequenceannotation.SequenceAnnotation(uri='example', version=VERSION_STRING)¶
Bases:
sbol2.identified.IdentifiedAn SBOLObject converts a Python data structure into an RDF triple store and contains methods for serializing and parsing RDF triples.
- addRole(new_role)¶
- removeRole(index=0)¶
- abstract precedes(comparand)¶
Tests if the comparand SequenceAnnotation precedes this one according to base coordinates
- Parameters
comparand – Another SequenceAnnotation
- Returns
true or false
- abstract follows(comparand)¶
Tests if the comparand SequenceAnnotation follows this one according to base coordinates
- Parameters
comparand – Another SequenceAnnotation
- Returns
true or false
- abstract contains(comparand)¶
Tests if the comparand SequenceAnnotation is contained within the same start and end base coordinates as this one. This is mutually exclusive with overlaps.
- Parameters
comparand – Another SequenceAnnotation
- Returns
true or false
- abstract overlaps(comparand)¶
Tests if the comparand SequenceAnnotation overlaps with this one in the primary sequence
- Parameters
comparand – Another SequenceAnnotation
- Returns
true or false
- abstract extract(start_reference=1)¶
Convert a SequenceAnnotation to a subcomponent
- Parameters
start_reference –
- Returns
A ComponentDefinition representing the subcomponent
- abstract length()¶
- Returns
The length of a SequenceAnnotation in base coordinates.