Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Changed not.found to NA (closes #14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenzopr committed Jun 21, 2017
1 parent 7073a33 commit 25682a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uropa/overlaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25682a8

Please sign in to comment.