Skip to content

Commit

Permalink
fix: add underscore to qualifier if not present and convert it to low…
Browse files Browse the repository at this point in the history
…ercase
  • Loading branch information
valearna committed Mar 30, 2020
1 parent 9db3559 commit 3d8543f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion genedescriptions/descriptions_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def set_terms_groups(self, module, config, limit_to_group, humans):
if annotation["evidence"]["type"] in evidence_codes_groups_map:
aspect = annotation["aspect"]
ev_group = evidence_codes_groups_map[annotation["evidence"]["type"]]
qualifier = "_".join(sorted(annotation["qualifiers"])) if "qualifiers" in annotation else ""
qualifier = "_".join(sorted([q.lower().replace(" ", "_") for q in annotation["qualifiers"]])) if \
"qualifiers" in annotation else ""
if prepostfix_special_cases_sent_map and (aspect, ev_group, qualifier) in \
prepostfix_special_cases_sent_map:
for special_case in prepostfix_special_cases_sent_map[(aspect, ev_group, qualifier)]:
Expand Down

0 comments on commit 3d8543f

Please sign in to comment.