Skip to content

Commit

Permalink
Add ChemicalSubstance to SmallMolecule queries
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkwang committed Aug 6, 2021
1 parent 981b1b4 commit cd788d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions strider/trapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ async def fill_categories_predicates(
for node in qg['nodes'].values():
if ('categories' not in node) or (node['categories'] is None):
node['categories'] = ['biolink:NamedThing']
elif "biolink:ChemicalSubstance" in node["categories"]:
node["categories"].append("biolink:SmallMolecule")

logger.debug("Contacting node normalizer to get categorys for curies")

Expand Down

0 comments on commit cd788d6

Please sign in to comment.