biocantor.location.strand

Module Contents

Classes

Strand

Generic enumeration.

class biocantor.location.strand.Strand

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

PLUS = 1
MINUS
UNSTRANDED = 0
__str__()

Return str(self).

static from_symbol(value: str)

Converts string representation of a strand to a Strand

to_symbol() str
static from_int(value: int)

Converts integer representation of a strand to a Strand

static _order()
__lt__(other)

Return self<value.

reverse()

Returns the opposite of this Strand

relative_to(other: Strand) Strand

Returns the orientation of this strand relative to the given other strand. Note: this operator is commutative.

assert_directional()

Raises InvalidStrandException if this Strand does not have a defined direction (plus or minus)