bio.locus
¶
Source code: bio/locus.seq
- class bio.locus.Contig¶
Representation of a contig, consisting of an ID, name and length.
Properties:
Magic methods:
- class bio.locus.Locus¶
Representation of a locus, consisting of a contig ID and 0-based position.
Properties:
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__()