jang1563 commited on
Commit
4e6d5a4
·
verified ·
1 Parent(s): f2a6da0

Add YAML frontmatter, quick-start code, fix author, 4-domain scope

Browse files
Files changed (1) hide show
  1. README.md +111 -315
README.md CHANGED
@@ -1,3 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # NegBioDB
2
 
3
  **Negative Results Database & Dual ML/LLM Benchmark for Biomedical Sciences**
@@ -7,15 +42,36 @@
7
 
8
  Approximately 90% of scientific experiments produce null or inconclusive results, yet the vast majority remain unpublished. NegBioDB systematically collects experimentally confirmed negative results across four biomedical domains and provides dual-track ML + LLM benchmarks to quantify the impact of this publication bias on AI models.
9
 
10
- ## Key Features
 
 
 
 
11
 
12
- - **Four domains**: Drug-Target Interaction (DTI), Clinical Trial Failure (CT), Protein-Protein Interaction (PPI), Gene Essentiality (GE/DepMap)
13
- - **~61.6M negative results** across 4 SQLite databases (30.5M DTI + 133K CT + 2.2M PPI + 28.8M GE)
14
- - **Dual benchmark**: ML track (traditional prediction) + LLM track (biomedical NLP tasks)
15
- - **242 ML runs** + **321 LLM runs** completed across all domains
16
- - **Multiple split strategies**: random, cold-entity, temporal, scaffold, degree-balanced
17
- - **Reproducible pipeline**: SQLite databases, config-driven ETL, SLURM/HPC support
18
- - **Standardized evaluation**: 7 ML metrics (LogAUC, BEDROC, EF, AUROC, AUPRC, MCC) + LLM rubrics
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  ## Database Statistics
21
 
@@ -27,26 +83,11 @@ Approximately 90% of scientific experiments produce null or inconclusive results
27
  | **GE** | 28,759,256 | 19,554 genes, 2,132 cell lines | DepMap (CRISPR, RNAi) | ~16 GB |
28
  | **Total** | **~61.6M** | | **14 sources** | **~38 GB** |
29
 
30
- *PPI DB total: 2,229,670; export rows after split filtering: 2,220,786.*
31
-
32
- ## Project Status
33
-
34
- | Domain | ETL | ML Benchmark | LLM Benchmark | Status |
35
- |--------|-----|-------------|---------------|--------|
36
- | DTI | 4 sources | 24/24 runs | 81/81 runs | Complete |
37
- | CT | 4 sources | 108/108 runs | 80/80 runs | Complete |
38
- | PPI | 4 sources | 54/54 runs | 80/80 runs | Complete |
39
- | GE | 2 sources | 14/14 runs (seed 42) | 64/80 runs* | Seed 42 ML complete, LLM 4/5 models |
40
-
41
- *Llama 3.1-8B results pending HPC GPU availability; seeds 43/44 in progress.
42
-
43
- ---
44
-
45
  ## Key Findings
46
 
47
  ### ML: Negative Source Matters
48
 
49
- **DTI** Degree-matched negatives inflate LogAUC by +0.112 on average. Cold-target splits cause catastrophic failure (LogAUC 0.15–0.33), while AUROC misleadingly stays 0.76–0.89.
50
 
51
  | DTI Model | Random (NegBioDB) | Random (Degree-Matched) | Cold-Target |
52
  |-----------|------------------|------------------------|-------------|
@@ -54,339 +95,100 @@ Approximately 90% of scientific experiments produce null or inconclusive results
54
  | GraphDTA | 0.843 | **0.967** | 0.241 |
55
  | DrugBAN | 0.830 | **0.955** | 0.151 |
56
 
57
- **PPI** PIPR cold_both AUROC drops to 0.409 (below random); MLPFeatures remains robust at 0.950 due to hand-crafted features.
58
 
59
- **CT** NegBioDB negatives are trivially separable (AUROC ~1.0); M2 7-way classification is challenging (best macro-F1 = 0.51).
60
 
61
- **GE** Cold-gene splits reveal severe generalization gaps; degree-balanced negatives modestly improve ranking metrics over random negatives.
62
 
63
  ### LLM: L4 Discrimination Reveals Domain Differences
64
 
65
  | Domain | L4 MCC Range | Interpretation | Contamination |
66
  |--------|-------------|----------------|---------------|
67
- | DTI | 0.18 | Near random | Not detected |
68
- | PPI | 0.330.44 | Moderate | **Yes** (temporal gap) |
69
- | CT | 0.480.56 | Meaningful | Not detected |
70
- | GE | Pending full run | | |
71
-
72
- PPI L4 reveals **temporal contamination**: pre-2015 interaction data is identified at 59–79% accuracy, while post-2020 data drops to 7–25%. LLMs rely on memorized training data, not biological reasoning.
73
-
74
- ---
75
-
76
- ## Setup
77
-
78
- Requires Python 3.11+ and [uv](https://docs.astral.sh/uv/).
79
-
80
- ```bash
81
- git clone https://github.com/jang1563/NegBioDB.git
82
- cd NegBioDB
83
- make setup # Create venv and install dependencies
84
- make db # Initialize SQLite database
85
- ```
86
-
87
- ## Data Pipeline
88
-
89
- ### DTI Domain
90
-
91
- ```bash
92
- make download # Download all 4 sources (ChEMBL, PubChem, BindingDB, DAVIS)
93
- make load-all # Run all ETL loaders
94
- uv run python scripts/export_ml_dataset.py # Export ML datasets
95
- ```
96
-
97
- ### CT Domain
98
-
99
- ```bash
100
- # Download sources (AACT URL changes monthly)
101
- uv run python scripts_ct/download_aact.py --url <AACT_URL>
102
- uv run python scripts_ct/download_cto.py
103
- uv run python scripts_ct/download_opentargets.py
104
- uv run python scripts_ct/download_shi_du.py
105
-
106
- # Load and process
107
- uv run python scripts_ct/load_aact.py
108
- uv run python scripts_ct/classify_failures.py
109
- uv run python scripts_ct/resolve_drugs.py
110
- uv run python scripts_ct/load_outcomes.py
111
- uv run python scripts_ct/export_ct_ml_dataset.py
112
- ```
113
-
114
- ### PPI Domain
115
-
116
- ```bash
117
- # Download sources
118
- uv run python scripts_ppi/download_intact.py
119
- uv run python scripts_ppi/download_huri.py
120
- uv run python scripts_ppi/download_humap.py
121
- uv run python scripts_ppi/download_string.py
122
-
123
- # Load and process
124
- uv run python scripts_ppi/load_intact.py
125
- uv run python scripts_ppi/load_huri.py
126
- uv run python scripts_ppi/load_humap.py
127
- uv run python scripts_ppi/load_string.py
128
- uv run python scripts_ppi/fetch_sequences.py
129
- uv run python scripts_ppi/export_ppi_ml_dataset.py
130
- ```
131
-
132
- ### GE Domain (DepMap)
133
-
134
- ```bash
135
- # Download DepMap CRISPR and RNAi screens
136
- uv run python scripts_depmap/download_depmap.py
137
-
138
- # Load and process
139
- uv run python scripts_depmap/load_depmap.py
140
- uv run python scripts_depmap/load_rnai.py
141
- uv run python scripts_depmap/fetch_gene_descriptions.py
142
- uv run python scripts_depmap/export_ge_ml_dataset.py
143
- ```
144
-
145
- ## ML Experiments
146
-
147
- ```bash
148
- # DTI training (local or SLURM)
149
- uv run python scripts/train_baseline.py --model deepdta --split random --negative negbiodb --dataset balanced
150
- bash slurm/submit_all.sh
151
-
152
- # CT training
153
- uv run python scripts_ct/train_ct_baseline.py --model xgboost --task m1 --split random --negative negbiodb
154
- bash slurm/submit_ct_all.sh
155
-
156
- # PPI training
157
- uv run python scripts_ppi/train_baseline.py --model siamese_cnn --split random --negative negbiodb --dataset balanced
158
- bash slurm/submit_ppi_all.sh
159
-
160
- # GE training
161
- uv run python scripts_depmap/train_ge_baseline.py --model xgboost --split random --negative negbiodb
162
- bash slurm/submit_ge_ml_all.sh
163
-
164
- # Results collection (all domains support --aggregate-seeds)
165
- uv run python scripts/collect_results.py --dataset balanced --aggregate-seeds
166
- uv run python scripts_ct/collect_ct_results.py --aggregate-seeds
167
- uv run python scripts_ppi/collect_results.py --dataset balanced --aggregate-seeds
168
- uv run python scripts_depmap/collect_ge_results.py --aggregate-seeds
169
- ```
170
-
171
- ## LLM Benchmark
172
-
173
- ```bash
174
- # Build LLM datasets (example: DTI)
175
- uv run python scripts/build_l1_dataset.py
176
- uv run python scripts/build_l2_dataset.py
177
- uv run python scripts/build_l3_dataset.py
178
- uv run python scripts/build_l4_dataset.py
179
-
180
- # Run LLM inference
181
- uv run python scripts/run_llm_benchmark.py --model gemini --level l1 --config zeroshot
182
-
183
- # GE-specific LLM datasets and inference
184
- uv run python scripts_depmap/build_ge_l1_dataset.py
185
- uv run python scripts_depmap/run_ge_llm_benchmark.py --model gemini --level l1 --config zeroshot
186
-
187
- # Collect results
188
- uv run python scripts/collect_llm_results.py
189
- uv run python scripts_ct/collect_ct_llm_results.py
190
- uv run python scripts_ppi/collect_ppi_llm_results.py
191
- uv run python scripts_depmap/collect_ge_results.py --llm
192
- ```
193
-
194
- ## Testing
195
-
196
- ```bash
197
- # All tests (~1,000 total across 4 domains)
198
- PYTHONPATH=src uv run pytest tests/ -v
199
-
200
- # By domain
201
- PYTHONPATH=src uv run pytest tests/test_db.py tests/test_etl_*.py tests/test_export.py -v # DTI
202
- PYTHONPATH=src uv run pytest tests/test_ct_*.py tests/test_etl_aact.py -v # CT
203
- PYTHONPATH=src uv run pytest tests/test_ppi_*.py tests/test_etl_intact.py -v # PPI
204
- PYTHONPATH=src uv run pytest tests/test_ge_*.py tests/test_etl_depmap.py -v # GE
205
-
206
- # Skip network-dependent tests
207
- PYTHONPATH=src uv run pytest tests/ -v -m "not integration"
208
- ```
209
-
210
- ## Project Structure
211
-
212
- ```
213
- NegBioDB/
214
- ├── src/
215
- │ ├── negbiodb/ # DTI core library
216
- │ │ ├── db.py # Database creation & migrations
217
- │ │ ├── download.py # Download utilities (resume, checksum)
218
- │ │ ├── standardize.py # Compound/target standardization (RDKit)
219
- │ │ ├── etl_davis.py # DAVIS ETL pipeline
220
- │ │ ├── etl_chembl.py # ChEMBL ETL pipeline
221
- │ │ ├── etl_pubchem.py # PubChem ETL (streaming, 29M rows)
222
- │ │ ├── etl_bindingdb.py # BindingDB ETL pipeline
223
- │ │ ├── export.py # ML dataset export (Parquet, 5 splits)
224
- │ │ ├── metrics.py # ML evaluation metrics (7 metrics)
225
- │ │ ├── llm_client.py # LLM API client (vLLM, Gemini, OpenAI, Anthropic)
226
- │ │ ├── llm_prompts.py # LLM prompt templates (L1-L4)
227
- │ │ ├── llm_eval.py # LLM evaluation functions
228
- │ │ └── models/ # ML baseline models
229
- │ │ ├── deepdta.py # DeepDTA (sequence CNN)
230
- │ │ ├── graphdta.py # GraphDTA (graph neural network)
231
- │ │ └── drugban.py # DrugBAN (bilinear attention)
232
- │ ├── negbiodb_ct/ # Clinical Trial domain
233
- │ │ ├── ct_db.py # CT database & migrations
234
- │ │ ├── etl_aact.py # AACT ETL (13 tables)
235
- │ │ ├── etl_classify.py # 3-tier failure classification
236
- │ │ ├── drug_resolver.py # 4-step drug name resolution
237
- │ │ ├── etl_outcomes.py # Outcome enrichment (p-values, SAE)
238
- │ │ ├── ct_export.py # ML export (M1/M2, 6 splits)
239
- │ │ ├── ct_features.py # Feature encoding (1044/1066-dim)
240
- │ │ ├── ct_models.py # CT_MLP, CT_GNN_Tab models
241
- │ │ ├── llm_prompts.py # CT LLM prompts (L1-L4)
242
- │ │ ├── llm_eval.py # CT LLM evaluation
243
- │ │ └── llm_dataset.py # CT LLM dataset construction
244
- │ ├── negbiodb_ppi/ # PPI domain
245
- │ │ ├── ppi_db.py # PPI database & migrations
246
- │ │ ├── etl_intact.py # IntAct PSI-MI TAB 2.7
247
- │ │ ├── etl_huri.py # HuRI Y2H screen negatives
248
- │ │ ├── etl_humap.py # hu.MAP ML-derived negatives
249
- │ │ ├── etl_string.py # STRING zero-score pairs
250
- │ │ ├── protein_mapper.py # UniProt validation, ENSG mapping
251
- │ │ ├── export.py # ML export (4 splits, controls)
252
- │ │ ├── llm_prompts.py # PPI LLM prompts (L1-L4)
253
- │ │ ├── llm_eval.py # PPI LLM evaluation
254
- │ │ ├── llm_dataset.py # PPI LLM dataset construction
255
- │ │ └── models/ # PPI ML models
256
- │ │ ├── siamese_cnn.py # Shared CNN encoder
257
- │ │ ├── pipr.py # Cross-attention PPI model
258
- │ │ └── mlp_features.py # Hand-crafted feature MLP
259
- │ └── negbiodb_depmap/ # Gene Essentiality (DepMap) domain
260
- │ ├── depmap_db.py # GE database & migrations
261
- │ ├── etl_depmap.py # DepMap CRISPR ETL
262
- │ ├── etl_rnai.py # RNAi screen ETL
263
- │ ├── etl_prism.py # PRISM drug screen ETL (optional)
264
- │ ├── export.py # ML export (5 splits, 770 MB parquet)
265
- │ ├── ge_features.py # Gene/cell-line feature encoding
266
- │ ├── llm_prompts.py # GE LLM prompts (L1-L4)
267
- │ ├── llm_eval.py # GE LLM evaluation
268
- │ └── llm_dataset.py # GE LLM dataset construction
269
- ├── scripts/ # DTI CLI entry points
270
- ├── scripts_ct/ # CT CLI entry points
271
- ├── scripts_ppi/ # PPI CLI entry points
272
- ├── scripts_depmap/ # GE CLI entry points
273
- ├── slurm/ # SLURM job scripts (HPC-ready, path-agnostic)
274
- ├── migrations/ # DTI SQL schema migrations
275
- ├── migrations_ct/ # CT SQL schema migrations
276
- ├── migrations_ppi/ # PPI SQL schema migrations
277
- ├── migrations_depmap/ # GE SQL schema migrations
278
- ├── tests/ # Test suite (~1,000 tests across 4 domains)
279
- ├── docs/ # Methodology notes and prompt appendices
280
- ├── paper/ # LaTeX source (NeurIPS 2026 submission)
281
- ├── data/ # SQLite databases (not in repo, ~38 GB)
282
- ├── exports/ # ML/LLM export files (Parquet, not in repo)
283
- ├── results/ # Experiment results (not in repo)
284
- ├── config.yaml # Pipeline configuration
285
- ├── Makefile # Build/pipeline commands
286
- ├── pyproject.toml # Python project metadata
287
- ├── experiment_results.md # ML/LLM result tables (all 4 domains)
288
- ├── PROJECT_OVERVIEW.md # Detailed project overview
289
- └── ROADMAP.md # Execution roadmap
290
- ```
291
 
292
  ## Exported Datasets
293
 
294
- ### DTI (`exports/`)
295
 
296
  | File | Description |
297
  |------|-------------|
298
  | `negbiodb_dti_pairs.parquet` | 1.7M compound-target pairs with 5 split columns |
299
  | `negbiodb_m1_balanced.parquet` | M1: 1.73M rows (1:1 active:inactive) |
300
  | `negbiodb_m1_realistic.parquet` | M1: 9.49M rows (1:10 ratio) |
301
- | `negbiodb_m1_balanced_ddb.parquet` | Exp 4: degree-balanced split |
302
- | `negbiodb_m1_uniform_random.parquet` | Exp 1: uniform random negatives |
303
- | `negbiodb_m1_degree_matched.parquet` | Exp 1: degree-matched negatives |
304
- | `chembl_positives_pchembl6.parquet` | 863K ChEMBL actives (pChEMBL >= 6) |
305
- | `compound_names.parquet` | 144K compound names (for LLM tasks) |
 
 
 
 
 
 
306
 
307
- ### CT (`exports/ct/`)
308
 
309
  | File | Description |
310
  |------|-------------|
311
- | `negbiodb_ct_pairs.parquet` | 102,850 failure pairs, 6 splits, all tiers |
312
- | `negbiodb_ct_m1_balanced.parquet` | Binary: 11,222 rows (5,611 pos + 5,611 neg) |
313
- | `negbiodb_ct_m1_realistic.parquet` | Binary: 36,957 rows (1:~6 ratio) |
314
- | `negbiodb_ct_m1_smiles_only.parquet` | Binary: 3,878 rows (SMILES-resolved only) |
315
- | `negbiodb_ct_m2.parquet` | 7-way category: 112,298 rows (non-copper) |
316
 
317
- ### PPI (`exports/ppi/`)
318
 
319
  | File | Description |
320
  |------|-------------|
321
- | `negbiodb_ppi_pairs.parquet` | 2,220,786 negative pairs with split columns |
322
- | `ppi_m1_balanced.parquet` | M1: 123,456 rows (1:1 pos:neg) |
323
- | `ppi_m1_realistic.parquet` | M1: 679,008 rows (1:10 ratio) |
324
- | `ppi_m1_balanced_ddb.parquet` | Exp 4: degree-balanced split |
325
- | `ppi_m1_uniform_random.parquet` | Exp 1: uniform random negatives |
326
- | `ppi_m1_degree_matched.parquet` | Exp 1: degree-matched negatives |
327
 
328
- ### GE (`exports/ge/`)
329
 
330
  | File | Description |
331
  |------|-------------|
332
- | `negbiodb_ge_pairs.parquet` | 770 MB; 22.5M gene-cell-line pairs with 5 split columns |
333
- | `ge_m1_random.parquet` | Random split (train/val/test) |
334
- | `ge_m1_cold_gene.parquet` | Cold-gene generalization split |
335
- | `ge_m1_cold_cell_line.parquet` | Cold-cell-line generalization split |
336
- | `ge_m1_cold_both.parquet` | Cold-both (hardest) split |
337
- | `ge_m1_degree_balanced.parquet` | Degree-balanced negative control |
338
 
339
  ## Data Sources
340
 
341
- ### DTI
342
-
343
  | Source | Records | License |
344
  |--------|---------|---------|
345
  | [ChEMBL v36](https://www.ebi.ac.uk/chembl/) | 371K | CC BY-SA 3.0 |
346
  | [PubChem BioAssay](https://pubchem.ncbi.nlm.nih.gov/) | 29.6M | Public Domain |
347
  | [BindingDB](https://www.bindingdb.org/) | 404K | CC BY |
348
  | [DAVIS](https://github.com/dingyan20/Davis-Dataset-for-DTA-Prediction) | 20K | Public |
349
-
350
- ### CT
351
-
352
- | Source | Records | License |
353
- |--------|---------|---------|
354
  | [AACT (ClinicalTrials.gov)](https://aact.ctti-clinicaltrials.org/) | 216,987 trials | Public Domain |
355
  | [CTO](https://github.com/fairnessforensics/CTO) | 20,627 | MIT |
356
  | [Open Targets](https://www.opentargets.org/) | 32,782 targets | Apache 2.0 |
357
  | [Shi & Du 2024](https://doi.org/10.1038/s41597-024-03399-2) | 119K + 803K rows | CC BY 4.0 |
358
-
359
- ### PPI
360
-
361
- | Source | Records | License |
362
- |--------|---------|---------|
363
  | [IntAct](https://www.ebi.ac.uk/intact/) | 779 pairs | CC BY 4.0 |
364
  | [HuRI](http://www.interactome-atlas.org/) | 500,000 pairs | CC BY 4.0 |
365
  | [hu.MAP 3.0](https://humap3.proteincomplexes.org/) | 1,228,891 pairs | MIT |
366
  | [STRING v12.0](https://string-db.org/) | 500,000 pairs | CC BY 4.0 |
 
 
367
 
368
- ### GE
369
 
370
- | Source | Records | License |
371
- |--------|---------|---------|
372
- | [DepMap CRISPR (Chronos)](https://depmap.org/) | 28.7M gene-cell pairs | CC BY 4.0 |
373
- | [DepMap RNAi (DEMETER2)](https://depmap.org/) | Integrated | CC BY 4.0 |
374
 
375
- ## ML Evaluation Metrics
376
-
377
- | Metric | Role |
378
- |--------|------|
379
- | **LogAUC[0.001,0.1]** | Primary ranking metric (early enrichment) |
380
- | **BEDROC (alpha=20)** | Early enrichment (exponentially weighted) |
381
- | **EF@1%, EF@5%** | Enrichment factor at top 1%/5% |
382
- | **AUPRC** | Secondary ranking metric |
383
- | **MCC** | Balanced classification |
384
- | **AUROC** | Backward compatibility |
385
 
386
  ## Citation
387
 
388
- If you use NegBioDB in your research, please cite:
389
-
390
  ```bibtex
391
  @misc{negbiodb2026,
392
  title={NegBioDB: A Negative Results Database and Dual ML/LLM Benchmark for Biomedical Sciences},
@@ -396,14 +198,8 @@ If you use NegBioDB in your research, please cite:
396
  }
397
  ```
398
 
399
- ## License
400
-
401
- **CC BY-SA 4.0** — see [LICENSE](LICENSE) for details.
402
-
403
- This license is required by the viral clause in ChEMBL's CC BY-SA 3.0 license.
404
-
405
- ---
406
 
407
- ## Contact
408
 
409
- JangKeun Kim (jak4013@med.cornell.edu) Weill Cornell Medicine
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ task_categories:
4
+ - text-classification
5
+ - text-generation
6
+ - tabular-classification
7
+ language:
8
+ - en
9
+ size_categories:
10
+ - 10M<n<100M
11
+ tags:
12
+ - biology
13
+ - chemistry
14
+ - drug-discovery
15
+ - clinical-trials
16
+ - protein-protein-interaction
17
+ - gene-essentiality
18
+ - negative-results
19
+ - publication-bias
20
+ - benchmark
21
+ - biomedical
22
+ pretty_name: "NegBioDB: Negative Results Database & Benchmark"
23
+ configs:
24
+ - config_name: dti_pairs
25
+ data_files: "data/negbiodb_dti_pairs.parquet"
26
+ - config_name: dti_m1_balanced
27
+ data_files: "data/negbiodb_m1_balanced.parquet"
28
+ - config_name: ct_pairs
29
+ data_files: "data/ct/negbiodb_ct_pairs.parquet"
30
+ - config_name: ppi_pairs
31
+ data_files: "data/ppi/negbiodb_ppi_pairs.parquet"
32
+ - config_name: ge_pairs
33
+ data_files: "data/ge/negbiodb_ge_pairs.parquet"
34
+ ---
35
+
36
  # NegBioDB
37
 
38
  **Negative Results Database & Dual ML/LLM Benchmark for Biomedical Sciences**
 
42
 
43
  Approximately 90% of scientific experiments produce null or inconclusive results, yet the vast majority remain unpublished. NegBioDB systematically collects experimentally confirmed negative results across four biomedical domains and provides dual-track ML + LLM benchmarks to quantify the impact of this publication bias on AI models.
44
 
45
+ ## Quick Start
46
+
47
+ ```python
48
+ # Load any domain with the datasets library
49
+ from datasets import load_dataset
50
 
51
+ # DTI pairs (30.5M negative compound-target interactions)
52
+ dti = load_dataset("jang1563/NegBioDB", "dti_pairs", split="train")
53
+
54
+ # Clinical trial failures (102K intervention-condition pairs)
55
+ ct = load_dataset("jang1563/NegBioDB", "ct_pairs", split="train")
56
+
57
+ # PPI negatives (2.2M confirmed non-interactions)
58
+ ppi = load_dataset("jang1563/NegBioDB", "ppi_pairs", split="train")
59
+
60
+ # Gene essentiality (22.5M gene-cell-line pairs)
61
+ ge = load_dataset("jang1563/NegBioDB", "ge_pairs", split="train")
62
+ ```
63
+
64
+ Or load directly with pandas:
65
+
66
+ ```python
67
+ import pandas as pd
68
+ from huggingface_hub import hf_hub_download
69
+
70
+ # Download a specific file
71
+ path = hf_hub_download("jang1563/NegBioDB", "data/negbiodb_dti_pairs.parquet", repo_type="dataset")
72
+ df = pd.read_parquet(path)
73
+ print(df.shape) # (1_725_446, ~20 columns)
74
+ ```
75
 
76
  ## Database Statistics
77
 
 
83
  | **GE** | 28,759,256 | 19,554 genes, 2,132 cell lines | DepMap (CRISPR, RNAi) | ~16 GB |
84
  | **Total** | **~61.6M** | | **14 sources** | **~38 GB** |
85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  ## Key Findings
87
 
88
  ### ML: Negative Source Matters
89
 
90
+ **DTI** -- Degree-matched negatives inflate LogAUC by +0.112 on average. Cold-target splits cause catastrophic failure:
91
 
92
  | DTI Model | Random (NegBioDB) | Random (Degree-Matched) | Cold-Target |
93
  |-----------|------------------|------------------------|-------------|
 
95
  | GraphDTA | 0.843 | **0.967** | 0.241 |
96
  | DrugBAN | 0.830 | **0.955** | 0.151 |
97
 
98
+ **PPI** -- PIPR cold_both AUROC drops to 0.409 (below random); MLPFeatures remains robust at 0.950.
99
 
100
+ **CT** -- NegBioDB negatives are trivially separable (AUROC ~1.0); M2 7-way classification is challenging (best macro-F1 = 0.51).
101
 
102
+ **GE** -- Cold-gene splits reveal severe generalization gaps; degree-balanced negatives modestly improve ranking metrics.
103
 
104
  ### LLM: L4 Discrimination Reveals Domain Differences
105
 
106
  | Domain | L4 MCC Range | Interpretation | Contamination |
107
  |--------|-------------|----------------|---------------|
108
+ | DTI | &le; 0.18 | Near random | Not detected |
109
+ | PPI | 0.33--0.44 | Moderate | **Yes** (temporal gap) |
110
+ | CT | 0.48--0.56 | Meaningful | Not detected |
111
+ | GE | Pending | -- | -- |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  ## Exported Datasets
114
 
115
+ ### DTI
116
 
117
  | File | Description |
118
  |------|-------------|
119
  | `negbiodb_dti_pairs.parquet` | 1.7M compound-target pairs with 5 split columns |
120
  | `negbiodb_m1_balanced.parquet` | M1: 1.73M rows (1:1 active:inactive) |
121
  | `negbiodb_m1_realistic.parquet` | M1: 9.49M rows (1:10 ratio) |
122
+ | `negbiodb_m1_balanced_ddb.parquet` | Degree-balanced split |
123
+ | `negbiodb_m1_uniform_random.parquet` | Uniform random negatives (control) |
124
+ | `negbiodb_m1_degree_matched.parquet` | Degree-matched negatives (control) |
125
+
126
+ ### CT
127
+
128
+ | File | Description |
129
+ |------|-------------|
130
+ | `ct/negbiodb_ct_pairs.parquet` | 102,850 failure pairs, 6 splits |
131
+ | `ct/negbiodb_ct_m1_balanced.parquet` | Binary: 11,222 rows (5,611 pos + 5,611 neg) |
132
+ | `ct/negbiodb_ct_m2.parquet` | 7-way category: 112,298 rows |
133
 
134
+ ### PPI
135
 
136
  | File | Description |
137
  |------|-------------|
138
+ | `ppi/negbiodb_ppi_pairs.parquet` | 2,220,786 negative pairs with split columns |
139
+ | `ppi/ppi_m1_balanced.parquet` | M1: 123,456 rows (1:1 pos:neg) |
140
+ | `ppi/ppi_m1_realistic.parquet` | M1: 679,008 rows (1:10 ratio) |
 
 
141
 
142
+ ### GE
143
 
144
  | File | Description |
145
  |------|-------------|
146
+ | `ge/negbiodb_ge_pairs.parquet` | 22.5M gene-cell-line pairs with 5 split columns |
 
 
 
 
 
147
 
148
+ ### LLM Benchmarks
149
 
150
  | File | Description |
151
  |------|-------------|
152
+ | `llm_benchmarks/l1_mcq.jsonl` | L1: Multiple-choice classification |
153
+ | `llm_benchmarks/l4_tested_untested.jsonl` | L4: Tested vs. untested discrimination |
154
+ | `ct_llm/ct_l*_dataset.jsonl` | CT domain LLM datasets (L1-L4) |
155
+ | `ppi_llm/ppi_l*_dataset.jsonl` | PPI domain LLM datasets (L1-L4) |
156
+ | `ge_llm/ge_l*_dataset.jsonl` | GE domain LLM datasets (L1-L4) |
 
157
 
158
  ## Data Sources
159
 
 
 
160
  | Source | Records | License |
161
  |--------|---------|---------|
162
  | [ChEMBL v36](https://www.ebi.ac.uk/chembl/) | 371K | CC BY-SA 3.0 |
163
  | [PubChem BioAssay](https://pubchem.ncbi.nlm.nih.gov/) | 29.6M | Public Domain |
164
  | [BindingDB](https://www.bindingdb.org/) | 404K | CC BY |
165
  | [DAVIS](https://github.com/dingyan20/Davis-Dataset-for-DTA-Prediction) | 20K | Public |
 
 
 
 
 
166
  | [AACT (ClinicalTrials.gov)](https://aact.ctti-clinicaltrials.org/) | 216,987 trials | Public Domain |
167
  | [CTO](https://github.com/fairnessforensics/CTO) | 20,627 | MIT |
168
  | [Open Targets](https://www.opentargets.org/) | 32,782 targets | Apache 2.0 |
169
  | [Shi & Du 2024](https://doi.org/10.1038/s41597-024-03399-2) | 119K + 803K rows | CC BY 4.0 |
 
 
 
 
 
170
  | [IntAct](https://www.ebi.ac.uk/intact/) | 779 pairs | CC BY 4.0 |
171
  | [HuRI](http://www.interactome-atlas.org/) | 500,000 pairs | CC BY 4.0 |
172
  | [hu.MAP 3.0](https://humap3.proteincomplexes.org/) | 1,228,891 pairs | MIT |
173
  | [STRING v12.0](https://string-db.org/) | 500,000 pairs | CC BY 4.0 |
174
+ | [DepMap CRISPR](https://depmap.org/) | 28.7M gene-cell pairs | CC BY 4.0 |
175
+ | [DepMap RNAi](https://depmap.org/) | Integrated | CC BY 4.0 |
176
 
177
+ ## Reproducing from Source
178
 
179
+ Full pipeline code is available at [GitHub](https://github.com/jang1563/NegBioDB).
 
 
 
180
 
181
+ ```bash
182
+ git clone https://github.com/jang1563/NegBioDB.git
183
+ cd NegBioDB
184
+ make setup # Create venv and install dependencies
185
+ make db # Initialize SQLite database
186
+ make download # Download all sources
187
+ make load-all # Run ETL pipelines
188
+ ```
 
 
189
 
190
  ## Citation
191
 
 
 
192
  ```bibtex
193
  @misc{negbiodb2026,
194
  title={NegBioDB: A Negative Results Database and Dual ML/LLM Benchmark for Biomedical Sciences},
 
198
  }
199
  ```
200
 
201
+ ## License & Contact
 
 
 
 
 
 
202
 
203
+ **License:** CC BY-SA 4.0 (required by ChEMBL's CC BY-SA 3.0 viral clause)
204
 
205
+ **Contact:** JangKeun Kim (jak4013@med.cornell.edu) -- Weill Cornell Medicine