Skip to content

Commit

Permalink
Changed how activity parameters are described in log-scale.
Browse files Browse the repository at this point in the history
  • Loading branch information
beasleyjonm authored Nov 25, 2024
1 parent 896e7af commit bc1e533
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions parsers/drugcentral/src/loaddrugcentral.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down Expand Up @@ -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'
}
"""

Expand Down

0 comments on commit bc1e533

Please sign in to comment.