self.features=feature# list of the features on this segment. if thre feature is on the + strand, it will be named '+feature_id', else '-feature_id'
# position on the reference genome
# position on the original genome
self.chr=chr
self.start=int(start)
self.stop=int(stop)
...
...
@@ -15,7 +15,7 @@ class Segment:
self.size=self.stop-self.start+1
def__str__(self):
returnf"id={self.id}, position sur nipponbare={self.chr}:{self.start}-{self.stop}, size={self.size}, features={self.features}"
returnf"id={self.id}, position on the original genome={self.chr}:{self.start}-{self.stop}, size={self.size}, features={self.features}"
classFeature:
...
...
@@ -23,7 +23,7 @@ class Feature:
self.id=id
self.type=type
# position on the reference genome
# position on the original genome
self.chr=chr
self.start=int(start)
self.stop=int(stop)
...
...
@@ -39,7 +39,7 @@ class Feature:
def__str__(self):
ifself.parent=="":
returnf"id={self.id}, type={self.type}, segments={self.segments_list}, position sur la référence={self.chr}:{self.start}-{self.stop}, childs={self.childs}, annotation={self.annot}"
returnf"id={self.id}, type={self.type}, segments={self.segments_list}, position on the original genome={self.chr}:{self.start}-{self.stop}, childs={self.childs}, annotation={self.annot}"
else:
returnf"id={self.id}, type={self.type}, segments={self.segments_list}, position sur la référence={self.chr}:{self.start}-{self.stop}, parent={self.parent}, childs={self.childs}, annotation={self.annot}"
returnf"id={self.id}, type={self.type}, segments={self.segments_list}, position on the original genome={self.chr}:{self.start}-{self.stop}, parent={self.parent}, childs={self.childs}, annotation={self.annot}"