Skip to content

Commit

Permalink
Modified to adapt new data
Browse files Browse the repository at this point in the history
  • Loading branch information
haohangyan committed Jul 22, 2024
1 parent 899112f commit 7c8ac69
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions indra/tests/test_sources/test_dgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,19 @@
def test_dgi_processor():
"""Test the DGI processor."""
df = pd.read_csv(TEST_FILE, sep='\t', usecols=USECOLS, dtype=str)
df = df[USECOLS]
dp = process_df(df)
statement = dp.statements[0]
assert isinstance(statement, Inhibition)
assert statement.obj.name == 'CDK7'
assert statement.obj.db_refs['EGID'] == '1022'
assert statement.obj.db_refs['HGNC'] == '1778'
assert statement.subj.name == \
('N-(5-\{[(5-tert-butyl-1,3-oxazol-2-yl)methyl]sulfanyl\}-1,3-'
'thiazol-2-yl)piperidine-4-carboxamide'), statement.subj.name
assert statement.subj.db_refs['CHEMBL'] == 'CHEMBL296468'
assert statement.subj.name == 'BMS-387032'
assert statement.subj.db_refs['IUPHAR.LIGAND'] == '5670'
assert 1 == len(statement.evidence)
evidence = statement.evidence[0]
assert evidence.pmid is None
assert evidence.annotations == {'source': 'CancerCommons',
assert evidence.annotations == {'source': 'ChEMBL',
'interactions': 'inhibitor'}


Expand Down

0 comments on commit 7c8ac69

Please sign in to comment.