Skip to content

Commit

Permalink
Update ubibrowser test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Sep 27, 2023
1 parent f6e8ec9 commit ef8c4a6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions indra/tests/test_sources/test_ubibrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
def test_extract_statements():
up = ubibrowser.process_file(e3_file, dub_file)
assert len(up.statements) == 9
assert isinstance(up.statements[0], Ubiquitination)
assert isinstance(up.statements[2], Ubiquitination)
assert isinstance(up.statements[-1], Deubiquitination)

assert_valid_statements(up.statements)

#1 AMFR2_HUMAN A1AT_HUMAN Q9UKV5 P01009 AMFR SERPINA1
# MEDLINE 16979136 Here we report that ... RING 3 E3 H.sapiens
e3_stmt = up.statements[0]
#198 AMFR2_HUMAN A1AT_HUMAN Q9UKV5 P01009 AMFR SERPINA1
# MEDLINE 16979136 "Here we report that ..." RING 1
# "Training data" H.sapiens
e3_stmt = up.statements[2]
assert e3_stmt.enz.name == 'AMFR'
assert e3_stmt.enz.db_refs['UP'] == 'Q9UKV5'
assert e3_stmt.sub.name == 'SERPINA1'
Expand All @@ -30,9 +31,10 @@ def test_extract_statements():
assert e3_stmt.evidence[0].pmid == '16979136'
assert e3_stmt.evidence[0].text.startswith('Here we report that')

# 677 UBP33_HUMAN ARRB1_HUMAN Q8TEY7 P49407 USP33 ARRB1
# MEDLINE 19363159 We now report the discovery that... USP 1 DUB H.sapiens
dub_stmt = up.statements[-1]
# 56 UBP33_HUMAN ARRB1_HUMAN Q8TEY7 P49407 USP33 ARRB1 MEDLINE
# 19363159 "We now report the discovery that " "USP 1" "Training data"
# H.sapiens
dub_stmt = up.statements[5]
assert dub_stmt.enz.name == 'USP33'
assert dub_stmt.enz.db_refs['UP'] == 'Q8TEY7'
assert dub_stmt.sub.name == 'ARRB1'
Expand Down

0 comments on commit ef8c4a6

Please sign in to comment.