class Gene:
- chromosome = ''
- strand = ''
- start = -1
- stop = -1
- exons = []
- fiveUTR = []
- threeUTR = []
-
-
def __init__(self,chr,begin,end,strand):
assert chr != ''
assert begin >= 0 and begin <= end and end >= 0
self.start = begin
self.stop = end
self.strand = strand
-
+ self.exons = []
+ self.fiveUTR = []
+ self.threeUTR = []
def addExon(self,start,stop):
self.exons.append((start,stop))