Skip to content

Commit

Permalink
small fix for ONT callers
Browse files Browse the repository at this point in the history
e.g. for situations, where we have CIPOS=.,10
  • Loading branch information
MateuszChilinski authored Jun 22, 2022
1 parent 571a897 commit f308122
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion SVTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ def parse_line(self, line):
cipos = cipos.split(",")
ciend = ciend.split(",")

if(cipos[0] == "."):
cipos[0] = "-10"
if(cipos[1] == "."):
cipos[1] = "10"
if(ciend[0] == "."):
ciend[0] = "-10"
if(ciend[1] == "."):
ciend[1] = "10"

self.cipos1 = int(cipos[0])
self.cipos2 = int(cipos[1])

Expand Down Expand Up @@ -153,4 +162,4 @@ def parse_file(self, filename):
continue
#print(self.tool + " | ", end = '')
#sv.print_sv()
self.sv_list.append(sv)
self.sv_list.append(sv)

0 comments on commit f308122

Please sign in to comment.