Commit 8f2d3fa4 authored by Penom Nom's avatar Penom Nom
Browse files

web interface

improvement on pindel
bugfixes
redone merge --> sv_group removed
w/o sv_group !!!!!!
parent bd63192b
class SV_Group(object):
def __init__(self, variant, iD):
self.variants_list = [variant]
self.ambiguous = False
self.id = iD
self.start = None #TODO doc
self.end = None
variant.group.append(self)
def contribute(self, candidate):
self.variants_list.append(candidate)
candidate.group.append(self)
def new_coord(self):
min_start = 0
max_end = 0
for ind in self.variants_list:
if min_start == 0:
min_start = ind.start
min_start = min(min_start, ind.start)
max_end = max(max_end, ind.end)
self.start = min_start
self.end = max_end
return (self.start, self.end)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment