Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
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 "
|
| 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():
|