sbol2.location
¶
Module Contents¶
Classes¶
The Location class specifies the strand orientation of a Component. |
|
A Range object specifies a region via discrete, |
|
The Cut class specifies a location between |
|
the GenericLocation class is included as a starting point |
|
Member properties of all SBOL objects are defined |
- class sbol2.location.Location(uri=URIRef('example'), orientation=SBOL_ORIENTATION_INLINE, *, type_uri=SBOL_LOCATION, version=VERSION_STRING)¶
Bases:
sbol2.identified.Identified
The Location class specifies the strand orientation of a Component.
- class sbol2.location.Range(uri=URIRef('example'), start=1, end=2, *, type_uri=SBOL_RANGE, version=VERSION_STRING)¶
Bases:
Location
A Range object specifies a region via discrete, inclusive start and end positions that correspond to indices for characters in the elements String of a Sequence. Note that the index of the first location is 1, as is typical practice in biology, rather than 0, as is typical practice in computer science.
- precedes(self, comparand)¶
- follows(self, comparand)¶
- adjoins(self, comparand)¶
- contains(self, comparand)¶
- overlaps(self, comparand)¶
- length(self)¶
- class sbol2.location.Cut(uri=URIRef('example'), at=0, *, type_uri=SBOL_CUT, version=VERSION_STRING)¶
Bases:
Location
The Cut class specifies a location between two coordinates of a Sequence’s elements.
- class sbol2.location.GenericLocation(uri=URIRef('example'), *, type_uri=SBOL_GENERIC_LOCATION, version=VERSION_STRING)¶
Bases:
Location
the GenericLocation class is included as a starting point for specifying regions on Sequence objects with encoding properties other than IUPAC and potentially nonlinear structure. This class can also be used to set the orientation of a SequenceAnnotation and any associated Component when their parent ComponentDefinition is a partial design that lacks a Sequence.
- class sbol2.location.OwnedLocation(property_owner, sbol_uri, lower_bound, upper_bound, validation_rules=None, first_object=None)¶
Bases:
sbol2.property.OwnedObject
Member properties of all SBOL objects are defined using a Property object.
The Property class provides a generic interface for accessing SBOL objects. At a low level, the Property class converts SBOL data structures into RDF triples.
- createRange(self, uri=URIRef('example'))¶
- createCut(self, uri=URIRef('example'))¶
- createGenericLocation(self, uri=URIRef('example'))¶
- getRange(self, uri='')¶
- getCut(self, uri='')¶