sbol2.sequenceannotation

Module Contents

Classes

SequenceAnnotation

class sbol2.sequenceannotation.SequenceAnnotation(uri='example', version=VERSION_STRING)

Bases: sbol2.identified.Identified

addRole(self, new_role)
removeRole(self, index=0)
abstract precedes(self, comparand)

Tests if the comparand SequenceAnnotation precedes this one according to base coordinates

Parameters

comparand – Another SequenceAnnotation

Returns

true or false

abstract follows(self, comparand)

Tests if the comparand SequenceAnnotation follows this one according to base coordinates

Parameters

comparand – Another SequenceAnnotation

Returns

true or false

abstract contains(self, 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(self, comparand)

Tests if the comparand SequenceAnnotation overlaps with this one in the primary sequence

Parameters

comparand – Another SequenceAnnotation

Returns

true or false

abstract extract(self, start_reference=1)

Convert a SequenceAnnotation to a subcomponent

Parameters

start_reference

Returns

A ComponentDefinition representing the subcomponent

abstract length(self)
Returns

The length of a SequenceAnnotation in base coordinates.