base module¶
-
class
mavis.annotate.base.
BioInterval
(reference_object, start, end=None, name=None, seq=None, data=None)[source]¶ Bases:
object
Parameters: Example
>>> b = BioInterval('1', 12572784, 12578898, 'q22.2') >>> b[0] 12572784 >>> b[1] 12578898
-
end
¶ int – the end position
-
get_chr
()[source]¶ pulls chromosome information from the current object, or follows reference objects until the chromosome is found
Returns: the chromosome of this or any of its reference objects Return type: str Raises: AttributeError
– raised if the chromosome is not set on this or any of its reference objects
-
get_strand
()[source]¶ pulls strand information from the current object, or follows reference objects until the strand is found
Returns: the strand of this or any of its reference objects Return type: STRAND Raises: AttributeError
– raised if the strand is not set on this or any of its reference objects
-
key
()[source]¶ tuple
: a tuple representing the items expected to be unique. for hashing and comparing
-
start
¶ int – the start position
-