From bc1e53376a06c7538b214b2086468a05ae107e68 Mon Sep 17 00:00:00 2001 From: beasleyjonm <85600465+beasleyjonm@users.noreply.github.com> Date: Mon, 25 Nov 2024 16:38:44 -0500 Subject: [PATCH] Changed how activity parameters are described in log-scale. --- parsers/drugcentral/src/loaddrugcentral.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/parsers/drugcentral/src/loaddrugcentral.py b/parsers/drugcentral/src/loaddrugcentral.py index 16839b6..ee113fa 100644 --- a/parsers/drugcentral/src/loaddrugcentral.py +++ b/parsers/drugcentral/src/loaddrugcentral.py @@ -187,7 +187,7 @@ def get_bioactivity_attributes(self, line): AGENT_TYPE: MANUAL_AGENT} if line['act_type'] is not None: edge_props['affinity'] = line['act_value'] - edge_props['affinityParameter'] = line['act_type'] + edge_props['affinityParameter'] = f"p{line['act_type']}" if line['act_source'] == 'SCIENTIFIC LITERATURE' and line['act_source_url'] is not None: papersource = line['act_source_url'] if papersource.startswith('http://www.ncbi.nlm.nih.gov/pubmed'): @@ -269,11 +269,11 @@ def get_bioactivity_predicate(line): 'RELEASING AGENT':'biolink:interacts_with'} act_type_mappings = { - 'pIC50':'biolink:decreases_activity_of', - 'pKd':'biolink:interacts_with', - 'pAC50':'biolink:increases_activity_of', - 'pKi':'biolink:decreases_activity_of', - 'pEC50':'biolink:increases_activity_of' + 'IC50':'biolink:decreases_activity_of', + 'Kd':'biolink:interacts_with', + 'AC50':'biolink:increases_activity_of', + 'Ki':'biolink:decreases_activity_of', + 'EC50':'biolink:increases_activity_of' } """