Commit 81b0d9a8 authored by Thonier Florian's avatar Thonier Florian

fuse.py; move a try loop to detect if clones have seg

link to #3902
parent 1e4a2c24
Pipeline #82541 failed with stages
in 16 seconds
......@@ -149,12 +149,19 @@ class Window:
def get_values(self, axe):
try:
self.d["seg"]
except:
return "not_segmented"
try:
if axe == "top":
return self.d["top"]
if axe == "germline" or axe == "reagmt":
return self.d["germline"]
# all other values need seg
try:
self.d["seg"]
except:
return "not_segmented"
if axe == "name":
return self.d["name"]
if axe == "seg5":
......@@ -163,14 +170,10 @@ class Window:
return self.d["seg"]["4"]["name"]
if axe == "seg3":
return self.d["seg"]["3"]["name"]
if axe == "germline" or axe == "reagmt":
return self.d["germline"]
if axe == "lenSeq":
return len(self.d["sequence"])
if axe == "evalue":
return self.d["evalue"]["val"]
if axe == "top":
return self.d["top"]
if axe == "seg5_delRight":
return self.d["seg"]["5"]["delRight"]
if axe == "seg3_delLeft":
......
Markdown is supported
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