|
Download README.md from lchen915/sar-pretrain-dockstring: direct link, hf CLI and curl.
- Browser
- Download file 4.54 kB
-
https://huggingface.co/datasets/lchen915/sar-pretrain-dockstring/resolve/main/README.md
- Command line
-
hf download hf://datasets/lchen915/sar-pretrain-dockstring/README.md
-
curl -L -o README.md https://huggingface.co/datasets/lchen915/sar-pretrain-dockstring/resolve/main/README.md
4.54 kB
| license: cc-by-sa-3.0 | |
| language: | |
| - en | |
| tags: | |
| - chemistry | |
| - molecules | |
| - drug-discovery | |
| - structure-activity-relationship | |
| - smiles | |
| size_categories: | |
| - 100K<n<1M | |
| task_categories: | |
| - text-generation | |
| configs: | |
| - config_name: holdout-ADORA2A | |
| data_files: data/holdout-ADORA2A.jsonl | |
| - config_name: holdout-ADRB1 | |
| data_files: data/holdout-ADRB1.jsonl | |
| - config_name: holdout-CA2 | |
| data_files: data/holdout-CA2.jsonl | |
| - config_name: holdout-CDK2 | |
| data_files: data/holdout-CDK2.jsonl | |
| - config_name: holdout-EGFR | |
| data_files: data/holdout-EGFR.jsonl | |
| - config_name: holdout-F2 | |
| data_files: data/holdout-F2.jsonl | |
| - config_name: holdout-PARP1 | |
| data_files: data/holdout-PARP1.jsonl | |
| - config_name: holdout-PGR | |
| data_files: data/holdout-PGR.jsonl | |
| - config_name: holdout-PPARA | |
| data_files: data/holdout-PPARA.jsonl | |
| - config_name: holdout-PPARG | |
| data_files: data/holdout-PPARG.jsonl | |
| # SAR pre-training corpora, leave-one-target-out | |
| Supervised fine-tuning data that teaches a language model to **propose edits to a | |
| synthetic route** so as to improve measured potency, built from structure–activity | |
| relationships in ChEMBL. | |
| Each file is one **fold**, named for the target it **holds out**. `holdout-CDK2.jsonl` | |
| contains no CDK2 data and is the corpus you pre-train on when CDK2 is your evaluation | |
| target. The name is the *excluded* target, not the included one — this is the most | |
| likely way to misread the dataset. | |
| ## Fold statistics | |
| | held out | rows | other targets | ChEMBL docs | | |
| |---|---|---|---| | |
| | ADORA2A | 29,521 | 65 | 5,540 | | |
| | ADRB1 | 30,201 | 65 | 5,579 | | |
| | CA2 | 29,303 | 65 | 5,572 | | |
| | CDK2 | 30,184 | 65 | 5,564 | | |
| | EGFR | 29,122 | 65 | 5,374 | | |
| | F2 | 29,779 | 65 | 5,498 | | |
| | PARP1 | 29,997 | 65 | 5,527 | | |
| | PGR | 30,139 | 65 | 5,568 | | |
| | PPARA | 30,233 | 65 | 5,594 | | |
| | PPARG | 30,126 | 65 | 5,569 | | |
| 298,605 rows in total. Verified: no fold contains its own held-out target. | |
| ## Known limitation — paralogue leakage in three folds | |
| Holding out a target does **not** hold out its close relatives, and in three folds | |
| that matters: | |
| | fold | paralogues still present | rows | | |
| |---|---|---| | |
| | CA2 | CA1 (929), CA9 (664), CA12 (575) | 2,168 | | |
| | PPARA | PPARG | 232 | | |
| | PPARG | PPARA | 119 | | |
| The carbonic-anhydrase case is the serious one: CA1, CA9 and CA12 share CA2's active | |
| site chemistry, so a model pre-trained on `holdout-CA2` has seen a great deal of | |
| closely transferable SAR. **Treat CA2 results from this split as optimistic.** The | |
| EGFR fold (no ERBB2/ERBB4) and the ADRB1 fold (no ADRB2) are clean. | |
| ## Record schema | |
| One JSON object per line: | |
| | field | meaning | | |
| |---|---| | |
| | `messages` | chat triple — system (the route-editing task), user (objective, readout, current best routes with scores and building blocks), assistant (a JSON list of edits) | | |
| | `target` | the ChEMBL target this record's SAR comes from | | |
| | `doc` | source ChEMBL document id, for provenance | | |
| | `n_edits` | how many edits the assistant turn proposes | | |
| | `deltas` | the measured potency improvement of each edit, in log units | | |
| A route is a postfix program: SMILES entries push purchasable building blocks onto a | |
| stack and `R<n>` applies a reaction template. An edit replaces one building block of | |
| one parent, and every proposed block is matched against a catalogue of 211,220 | |
| purchasable compounds. The assistant turn is the training target. | |
| ```python | |
| from datasets import load_dataset | |
| ds = load_dataset("lchen915/sar-pretrain-dockstring", "holdout-CDK2", split="train") | |
| ``` | |
| ## Provenance and licence | |
| Derived from **ChEMBL**, used under **CC BY-SA 3.0**, and released under the same | |
| licence. Each record keeps its source `doc` id. The records contain SMILES strings and | |
| numeric potency readouts; no free text from the source publications is reproduced. | |
| Please cite ChEMBL alongside this dataset: | |
| > Zdrazil B. et al. *The ChEMBL Database in 2023.* Nucleic Acids Research (2024). | |
| ## What this is for, and what it is not | |
| Built to test whether SAR pre-training composes with downstream fine-tuning for an | |
| LLM-driven evolutionary search over molecules. Two cautions from using it: | |
| - Potency is a **measured** readout from ChEMBL, not a docking score. Models | |
| pre-trained here are learning what medicinal chemists actually found, with whatever | |
| assay heterogeneity ChEMBL carries across 5,000-plus source documents. | |
| - In our own use, held-out loss on this corpus did **not** predict downstream search | |
| performance. Evaluate on the task you care about, not on this corpus's loss. | |