Skip to content

Commit

Permalink
Update processor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt authored and bgyori committed Apr 2, 2021
1 parent e9a68f7 commit 9550a76
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions indra/sources/drugbank/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def _get_statement_type(action):
return DecreaseAmount
elif action in increase_amount_actions:
return IncreaseAmount
elif action in neutral_actions or action == 'N/A':
elif action == 'N/A':
return Inhibition
elif action in neutral_actions:
return _complex
elif action in skip_actions:
return None
Expand Down Expand Up @@ -176,7 +178,9 @@ def _complex(a, b, evidence):
'inactivator', 'binding', 'blocker', 'negative modulator',
'neutralizer', 'weak inhibitor',
'suppressor', 'disruptor', 'chelator',
'inhibitory allosteric modulator', 'translocation inhibitor'}
'inhibitory allosteric modulator', 'translocation inhibitor',
'nucleotide exchange blocker',
}

decrease_amount_actions = {
'downregulator',
Expand Down Expand Up @@ -208,6 +212,9 @@ def _complex(a, b, evidence):
'reducer',
'oxidizer',
'acetylation', # map to Ac INDRA statement?, but I'm not convinced by the idea of splitting up actions
'allosteric modulator',
'deoxidizer',
'cross-linking/alkylation', # e.g. Busulfan (DB01008) alkalytes DNA
}

skip_actions = {
Expand Down

0 comments on commit 9550a76

Please sign in to comment.