From 25682a82e7591343f41124f5232883fbc3ddaf83 Mon Sep 17 00:00:00 2001 From: Jens Preussner Date: Wed, 21 Jun 2017 08:57:07 +0200 Subject: [PATCH] Changed not.found to NA (closes #14) --- uropa/overlaps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uropa/overlaps.py b/uropa/overlaps.py index a6f08a2..57c83f2 100644 --- a/uropa/overlaps.py +++ b/uropa/overlaps.py @@ -91,7 +91,7 @@ def valid_attribute(attr_filter_key, attr_filter_val, hit): hit_attrib_val = re.split( "; " + attr_filter_key + " ", hit[8])[1].split(';')[0].strip('"\'').rstrip('\"') except IndexError: # if key doesn't exist re.split will give error - hit_attrib_val = "not.found" + hit_attrib_val = "NA" # If biotype of hit == attr_value from query-> continue annotation return attr_filter_val == hit_attrib_val