Skip to content

Commit

Permalink
Revert some long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Apr 2, 2021
1 parent be9a3df commit 1459cad
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions indra/sources/drugbank/processor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import logging
from xml.etree import ElementTree

from indra.databases.identifiers import ensure_chebi_prefix, ensure_chembl_prefix
from indra.databases.identifiers import ensure_chebi_prefix,\
ensure_chembl_prefix
from indra.ontology.standardize import get_standard_agent
from indra.statements import Activation, Complex, DecreaseAmount, Evidence, IncreaseAmount, Inhibition
from indra.statements import Activation, Complex, DecreaseAmount, Evidence,\
IncreaseAmount, Inhibition
from indra.statements.validate import assert_valid_db_refs

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -178,8 +180,8 @@ def _complex(a, b, evidence):
'inactivator', 'binding', 'blocker', 'negative modulator',
'neutralizer', 'weak inhibitor',
'suppressor', 'disruptor', 'chelator',
'inhibitory allosteric modulator', 'translocation inhibitor',
'nucleotide exchange blocker',
'inhibitory allosteric modulator',
'translocation inhibitor', 'nucleotide exchange blocker',
}

decrease_amount_actions = {
Expand All @@ -200,9 +202,11 @@ def _complex(a, b, evidence):
'substrate',
'agonist',
'ligand',
'intercalation', # e.g., Doxorubicin intercalates DNA to prevent transcription
# e.g., Doxorubicin intercalates DNA to prevent transcription
'intercalation',
'inverse agonist',
'aggregation inhibitor', # e.g., inhibits process on a protein's aggregation (like APP or LRRK)
# e.g., inhibits process on a protein's aggregation (like APP or LRRK)
'aggregation inhibitor',
'partial agonist',
'partial antagonist',
'antisense oligonucleotide',
Expand All @@ -211,7 +215,9 @@ def _complex(a, b, evidence):
'product of',
'reducer',
'oxidizer',
'acetylation', # map to Ac INDRA statement?, but I'm not convinced by the idea of splitting up actions
# map to Ac INDRA statement?, but I'm not convinced by the idea of
# splitting up actions
'acetylation',
'allosteric modulator',
'deoxidizer',
'cross-linking/alkylation', # e.g. Busulfan (DB01008) alkalytes DNA
Expand Down

0 comments on commit 1459cad

Please sign in to comment.