Skip to content

Commit

Permalink
Merge pull request #276 from Knowledge-Graph-Hub/fix-bug-chembl
Browse files Browse the repository at this point in the history
Remap synonyms to synonym property in ChemblTransform
  • Loading branch information
justaddcoffee authored Jul 7, 2020
2 parents f72bf76 + 9fc18ec commit fa1c9d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kg_covid_19/transform_utils/chembl/chembl_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def parse_chembl_molecules(self, data: List):
remap = {
'pref_name': 'name',
'full_molformula': 'molecular_formula',
'synonyms': 'synonym'
}
self._node_header.update([remap[x] if x in remap else x for x in allowed_properties])

Expand Down

0 comments on commit fa1c9d4

Please sign in to comment.