bio.locus

Source code: bio/locus.seq

class bio.locus.Contig

Representation of a contig, consisting of an ID, name and length.

Properties:

tid
name
len

Magic methods:

__new__(tid: int, name: str, len: int)
__str__()
__len__()
__eq__(other: Contig)
__ne__(other: Contig)
__lt__(other: Contig)
__gt__(other: Contig)
__le__(other: Contig)
__ge__(other: Contig)
__hash__()
class bio.locus.Locus

Representation of a locus, consisting of a contig ID and 0-based position.

Properties:

tid
pos
reversed

Whether this locus is on the reverse strand

Magic methods:

__new__(tid: int, pos: int)

Constructs a Locus with specified contig ID and 0-based position. Negative positions indicate loci on the reverse strand.

__lt__(other: Locus)
__gt__(other: Locus)
__le__(other: Locus)
__ge__(other: Locus)
__invert__()

Returns the corresponding Locus on the reverse strand

__str__()