Rename dataset card to OmicsBench
Browse files
README.md
CHANGED
|
@@ -12,16 +12,16 @@ tags:
|
|
| 12 |
- mirbase
|
| 13 |
- hmdb
|
| 14 |
- card
|
| 15 |
-
pretty_name:
|
| 16 |
size_categories:
|
| 17 |
- 100M<n<1B
|
| 18 |
---
|
| 19 |
|
| 20 |
-
#
|
| 21 |
|
| 22 |
-
Synonym databases for deterministic grading in [
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
## Format
|
| 27 |
|
|
@@ -39,10 +39,10 @@ Three of the tables (`ncbi_taxonomy`, `hmdb`, `mirbase`) use `WITHOUT ROWID` wit
|
|
| 39 |
|
| 40 |
## Usage
|
| 41 |
|
| 42 |
-
Install
|
| 43 |
|
| 44 |
```python
|
| 45 |
-
from
|
| 46 |
gene_match,
|
| 47 |
taxonomy_match,
|
| 48 |
mirna_match,
|
|
@@ -57,20 +57,20 @@ metabolite_match("Dextrose", "D-Glucose") # True
|
|
| 57 |
amr_match("mecA", "PBP2A") # True
|
| 58 |
```
|
| 59 |
|
| 60 |
-
Each match function is a thin wrapper over one indexed SQL query plus a case-insensitive string-equality fallback (used when either side is absent from the database, so misses don't crash on out-of-distribution inputs). The public API signatures, return types, and fallback semantics are unchanged from the previous TSV-backed release -- consumers upgrade by bumping their `
|
| 61 |
|
| 62 |
-
Each lookup module opens a thread-local read-only connection on first use with read-tuning PRAGMAs (`query_only=1`, `cache_size=-20000`, `temp_store=MEMORY`, `mmap_size=268435456`), so the dataset works correctly under multi-threaded consumers like the
|
| 63 |
|
| 64 |
## Direct access
|
| 65 |
|
| 66 |
-
If you want to query the tables yourself without installing
|
| 67 |
|
| 68 |
```python
|
| 69 |
import sqlite3
|
| 70 |
from huggingface_hub import hf_hub_download
|
| 71 |
|
| 72 |
path = hf_hub_download(
|
| 73 |
-
repo_id="AfterQuery/
|
| 74 |
filename="grader_databases.sqlite",
|
| 75 |
repo_type="dataset",
|
| 76 |
)
|
|
@@ -87,6 +87,6 @@ All lookup columns are pre-lowercased; lowercase your query inputs in Python bef
|
|
| 87 |
|
| 88 |
## Provenance and licensing
|
| 89 |
|
| 90 |
-
The five source databases retain their upstream licenses.
|
| 91 |
|
| 92 |
Rebuilds ship as new revisions on this dataset whenever an upstream source publishes a new release.
|
|
|
|
| 12 |
- mirbase
|
| 13 |
- hmdb
|
| 14 |
- card
|
| 15 |
+
pretty_name: OmicsBench Grader Databases
|
| 16 |
size_categories:
|
| 17 |
- 100M<n<1B
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# OmicsBench Grader Databases
|
| 21 |
|
| 22 |
+
Synonym databases for deterministic grading in [OmicsBench](https://github.com/AfterQuery/OmicsBench), a realism-first benchmark for AI coding agents in computational biology.
|
| 23 |
|
| 24 |
+
OmicsBench ships with dozens of prebuilt graders for highly specific biological outputs. This dataset powers the synonym-aware matching behind those graders, so that *TP53* and *tumor protein p53* are recognized as the same gene, *hsa-miR-21-5p* and *MIMAT0000076* as the same miRNA, and *E. coli* and *Escherichia coli* as the same organism.
|
| 25 |
|
| 26 |
## Format
|
| 27 |
|
|
|
|
| 39 |
|
| 40 |
## Usage
|
| 41 |
|
| 42 |
+
Install OmicsBench and call the match functions directly; downloading and caching happens on first use.
|
| 43 |
|
| 44 |
```python
|
| 45 |
+
from omicsbench.grading import (
|
| 46 |
gene_match,
|
| 47 |
taxonomy_match,
|
| 48 |
mirna_match,
|
|
|
|
| 57 |
amr_match("mecA", "PBP2A") # True
|
| 58 |
```
|
| 59 |
|
| 60 |
+
Each match function is a thin wrapper over one indexed SQL query plus a case-insensitive string-equality fallback (used when either side is absent from the database, so misses don't crash on out-of-distribution inputs). The public API signatures, return types, and fallback semantics are unchanged from the previous TSV-backed release -- consumers upgrade by bumping their `omicsbench` package version.
|
| 61 |
|
| 62 |
+
Each lookup module opens a thread-local read-only connection on first use with read-tuning PRAGMAs (`query_only=1`, `cache_size=-20000`, `temp_store=MEMORY`, `mmap_size=268435456`), so the dataset works correctly under multi-threaded consumers like the OmicsBench async orchestrator. SQLite supports unlimited concurrent readers via shared file locks.
|
| 63 |
|
| 64 |
## Direct access
|
| 65 |
|
| 66 |
+
If you want to query the tables yourself without installing OmicsBench, open the file read-only:
|
| 67 |
|
| 68 |
```python
|
| 69 |
import sqlite3
|
| 70 |
from huggingface_hub import hf_hub_download
|
| 71 |
|
| 72 |
path = hf_hub_download(
|
| 73 |
+
repo_id="AfterQuery/OmicsBench-grader-databases",
|
| 74 |
filename="grader_databases.sqlite",
|
| 75 |
repo_type="dataset",
|
| 76 |
)
|
|
|
|
| 87 |
|
| 88 |
## Provenance and licensing
|
| 89 |
|
| 90 |
+
The five source databases retain their upstream licenses. OmicsBench packages them into a single SQLite file for efficient runtime access; see the [OmicsBench GitHub repository](https://github.com/AfterQuery/OmicsBench) for the full ETL pipeline under `scripts/databases/` and its step-by-step runbook in `scripts/databases/README.md`.
|
| 91 |
|
| 92 |
Rebuilds ship as new revisions on this dataset whenever an upstream source publishes a new release.
|