Samad14 commited on
Commit
bfc270e
·
verified ·
1 Parent(s): 49f5345

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. tests/test_evidence_engine.py +2 -2
tests/test_evidence_engine.py CHANGED
@@ -16,7 +16,7 @@ CONTEXT = {
16
  "hits": [{"accession": "P04637", "description": "p53", "identity_pct": 100.0}],
17
  },
18
  "uniprot": {"version": "test-pinned-release", "accession": "P04637", "full_name": "Cellular tumor antigen p53", "gene_names": ["TP53"], "organism": "Homo sapiens"},
19
- "domains": {"version": "test-pinned-release", "sequence_length": 393, "domains": [{"name": "p53", "accession": "IPR012345", "start": 92, "end": 292}]},
20
  "interpret": {
21
  "interpretation": "The query is tumour suppressor p53 (TP53, Homo sapiens). It contains a DNA-binding domain detected by InterPro. This result is consistent with prior literature hypotheses, though the exact binding cavity is not fully resolved by this run."
22
  },
@@ -37,7 +37,7 @@ def test_keyword_vocab_has_sections():
37
  vocab = keyword_vocab(CONTEXT)
38
  assert "P04637" in vocab["blast"]
39
  assert "TP53" in vocab["uniprot"]
40
- assert "interpro" in vocab["domains"] or "Interpro" in vocab["domains"]
41
 
42
 
43
  def test_assemble_evidence_sources_and_claims():
 
16
  "hits": [{"accession": "P04637", "description": "p53", "identity_pct": 100.0}],
17
  },
18
  "uniprot": {"version": "test-pinned-release", "accession": "P04637", "full_name": "Cellular tumor antigen p53", "gene_names": ["TP53"], "organism": "Homo sapiens"},
19
+ "domains": {"provider": "InterPro", "version": "test-pinned-release", "sequence_length": 393, "domains": [{"name": "p53", "accession": "IPR012345", "start": 92, "end": 292}]},
20
  "interpret": {
21
  "interpretation": "The query is tumour suppressor p53 (TP53, Homo sapiens). It contains a DNA-binding domain detected by InterPro. This result is consistent with prior literature hypotheses, though the exact binding cavity is not fully resolved by this run."
22
  },
 
37
  vocab = keyword_vocab(CONTEXT)
38
  assert "P04637" in vocab["blast"]
39
  assert "TP53" in vocab["uniprot"]
40
+ assert "InterPro" in vocab["domains"]
41
 
42
 
43
  def test_assemble_evidence_sources_and_claims():