Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,28 +1,277 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
- name: train
|
| 14 |
-
num_bytes: 436243353
|
| 15 |
-
num_examples: 27431
|
| 16 |
-
- name: validation
|
| 17 |
-
num_bytes: 8575570
|
| 18 |
-
num_examples: 559
|
| 19 |
-
download_size: 220685021
|
| 20 |
-
dataset_size: 444818923
|
| 21 |
-
configs:
|
| 22 |
-
- config_name: default
|
| 23 |
-
data_files:
|
| 24 |
-
- split: train
|
| 25 |
-
path: data/train-*
|
| 26 |
-
- split: validation
|
| 27 |
-
path: data/validation-*
|
| 28 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 1 |
---
|
| 2 |
+
pretty_name: PKPD Dataset
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-generation
|
| 7 |
+
size_categories:
|
| 8 |
+
- 10K<n<100K
|
| 9 |
+
source_datasets:
|
| 10 |
+
- extended
|
| 11 |
+
annotations_creators:
|
| 12 |
+
- machine-generated
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# PKPD Dataset
|
| 16 |
+
|
| 17 |
+
## Dataset summary
|
| 18 |
+
|
| 19 |
+
This dataset is a pharmacokinetics/pharmacodynamics (PK/PD) and pharmacometrics corpus built for domain-adaptive pretraining (DAPT).
|
| 20 |
+
|
| 21 |
+
It was created from automatically downloadable biomedical literature using:
|
| 22 |
+
|
| 23 |
+
- PubMed search via NCBI E-utilities
|
| 24 |
+
- PMID to PMCID mapping via the official PMC id conversion service
|
| 25 |
+
- Europe PMC / PMC open-access full-text XML retrieval
|
| 26 |
+
- JATS/XML parsing and heuristic filtering
|
| 27 |
+
|
| 28 |
+
The current released corpus contains **27,990 documents** and approximately **109.4 million estimated tokens**.
|
| 29 |
+
|
| 30 |
+
This release contains only the **core PubMed/PMC open-access article corpus**. Optional FDA guidance and open-source repository documentation were implemented in the pipeline but are **not included** in the current dataset export.
|
| 31 |
+
|
| 32 |
+
## Scope
|
| 33 |
+
|
| 34 |
+
The search strategy targets:
|
| 35 |
+
|
| 36 |
+
- pharmacokinetics
|
| 37 |
+
- pharmacodynamics
|
| 38 |
+
- PK/PD modeling
|
| 39 |
+
- population PK/PD
|
| 40 |
+
- nonlinear mixed effects modeling
|
| 41 |
+
- NONMEM / Monolix / SAEM / FOCE / NLME
|
| 42 |
+
- PBPK
|
| 43 |
+
- exposure-response
|
| 44 |
+
- dose selection
|
| 45 |
+
- model-informed drug development
|
| 46 |
+
- clinical pharmacology
|
| 47 |
+
- covariate modeling
|
| 48 |
+
- Bayesian PKPD
|
| 49 |
+
|
| 50 |
+
The corpus is intended for:
|
| 51 |
+
|
| 52 |
+
- domain-adaptive pretraining
|
| 53 |
+
- continued pretraining of biomedical or general LLMs
|
| 54 |
+
- information retrieval / RAG experiments
|
| 55 |
+
- corpus analysis for pharmacometrics language
|
| 56 |
+
|
| 57 |
+
## Source data and collection pipeline
|
| 58 |
+
|
| 59 |
+
### Source systems
|
| 60 |
+
|
| 61 |
+
Primary source systems used for this release:
|
| 62 |
+
|
| 63 |
+
1. **PubMed / NCBI E-utilities**
|
| 64 |
+
2. **PMC ID conversion API**
|
| 65 |
+
3. **Europe PMC fullTextXML endpoint**
|
| 66 |
+
|
| 67 |
+
Excluded from this release:
|
| 68 |
+
|
| 69 |
+
- paywalled journal scraping
|
| 70 |
+
- copyrighted textbook scraping
|
| 71 |
+
- FDA guidance pages
|
| 72 |
+
- open-source repository docs
|
| 73 |
+
|
| 74 |
+
### Date range
|
| 75 |
+
|
| 76 |
+
- **Search period:** 2010-01-01 to 2026-03-12
|
| 77 |
+
|
| 78 |
+
### Query families
|
| 79 |
+
|
| 80 |
+
The PubMed search used five overlapping query families:
|
| 81 |
+
|
| 82 |
+
1. `pkpd_core`
|
| 83 |
+
2. `population_pkpd`
|
| 84 |
+
3. `nlme_platforms`
|
| 85 |
+
4. `pbpk`
|
| 86 |
+
5. `exposure_response_midd`
|
| 87 |
+
|
| 88 |
+
Per-query unique PMID counts before cross-query deduplication:
|
| 89 |
+
|
| 90 |
+
| Query family | Unique PMIDs |
|
| 91 |
+
|---|---:|
|
| 92 |
+
| `pkpd_core` | 145,533 |
|
| 93 |
+
| `population_pkpd` | 6,847 |
|
| 94 |
+
| `nlme_platforms` | 3,932 |
|
| 95 |
+
| `pbpk` | 4,951 |
|
| 96 |
+
| `exposure_response_midd` | 12,331 |
|
| 97 |
+
|
| 98 |
+
After deduplication across query families, the search yielded:
|
| 99 |
+
|
| 100 |
+
- **156,274 unique PMIDs**
|
| 101 |
+
|
| 102 |
+
### Retrieval and filtering stages
|
| 103 |
+
|
| 104 |
+
Pipeline totals:
|
| 105 |
+
|
| 106 |
+
1. PubMed search: **156,274 unique PMIDs**
|
| 107 |
+
2. PMID to PMCID mapping: **66,948 PMCIDs**
|
| 108 |
+
3. Europe PMC / PMC XML retrieved: **49,097 XML articles**
|
| 109 |
+
4. Parsed JATS records: **49,097**
|
| 110 |
+
5. Final kept DAPT documents: **27,990**
|
| 111 |
+
|
| 112 |
+
Retrieval outcomes:
|
| 113 |
+
|
| 114 |
+
- PMCIDs with XML successfully materialized locally: **49,097**
|
| 115 |
+
- PMCIDs mapped but not available through Europe PMC fullTextXML: **18,215**
|
| 116 |
+
- Fetch failures: **0** at the end of the completed run
|
| 117 |
+
|
| 118 |
+
Filtering outcomes:
|
| 119 |
+
|
| 120 |
+
- Parsed input docs: **49,097**
|
| 121 |
+
- Final kept docs: **27,990**
|
| 122 |
+
- Rejected for low relevance: **19,052**
|
| 123 |
+
- Rejected for too short length: **2,054**
|
| 124 |
+
- Rejected as duplicates: **1**
|
| 125 |
+
|
| 126 |
+
## Data fields
|
| 127 |
+
|
| 128 |
+
Each record in the final JSONL contains:
|
| 129 |
+
|
| 130 |
+
- `id`: document identifier, usually PMCID-based
|
| 131 |
+
- `source`: source group
|
| 132 |
+
- `title`: article title
|
| 133 |
+
- `text`: cleaned training text
|
| 134 |
+
|
| 135 |
+
Example schema:
|
| 136 |
+
|
| 137 |
+
```json
|
| 138 |
+
{
|
| 139 |
+
"id": "PMC10010492",
|
| 140 |
+
"source": "core_pubmed_pmc",
|
| 141 |
+
"title": "Integrative population pharmacokinetic/pharmacodynamic analysis of nemonoxacin capsule in Chinese patients with community-acquired pneumonia",
|
| 142 |
+
"text": "..."
|
| 143 |
+
}
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
## Split / repartition
|
| 147 |
+
|
| 148 |
+
Current files on disk:
|
| 149 |
+
|
| 150 |
+
- `final_merged_dapt.jsonl`: **27,990** records
|
| 151 |
+
- `train.jsonl`: **27,431** records
|
| 152 |
+
- `eval.jsonl`: **559** records
|
| 153 |
+
|
| 154 |
+
Split proportions:
|
| 155 |
+
|
| 156 |
+
- **Train:** 27,431 / 27,990 = **98.0%**
|
| 157 |
+
- **Validation:** 559 / 27,990 = **2.0%**
|
| 158 |
+
|
| 159 |
+
Source repartition in the final release:
|
| 160 |
+
|
| 161 |
+
| Source | Documents | Share |
|
| 162 |
+
|---|---:|---:|
|
| 163 |
+
| `core_pubmed_pmc` | 27,990 | 100% |
|
| 164 |
+
|
| 165 |
+
Character / token scale:
|
| 166 |
+
|
| 167 |
+
- Total characters: **437,602,093**
|
| 168 |
+
- Average characters per kept document: **15,638.38**
|
| 169 |
+
- Rough token estimate: **109,400,619**
|
| 170 |
+
|
| 171 |
+
## Text extraction details
|
| 172 |
+
|
| 173 |
+
The XML parser keeps article components most useful for PKPD DAPT:
|
| 174 |
+
|
| 175 |
+
- title
|
| 176 |
+
- abstract
|
| 177 |
+
- methods
|
| 178 |
+
- modeling
|
| 179 |
+
- statistical analysis
|
| 180 |
+
- results
|
| 181 |
+
- discussion
|
| 182 |
+
- conclusion
|
| 183 |
+
|
| 184 |
+
The parser drops low-value or non-training sections when possible:
|
| 185 |
+
|
| 186 |
+
- references
|
| 187 |
+
- acknowledgements
|
| 188 |
+
- funding boilerplate
|
| 189 |
+
- author contributions
|
| 190 |
+
- supplementary boilerplate
|
| 191 |
+
|
| 192 |
+
Whitespace is normalized, and some inline citation clutter is removed.
|
| 193 |
+
|
| 194 |
+
## Quality notes
|
| 195 |
+
|
| 196 |
+
This corpus was built with **high recall rather than high precision**. It is strong for:
|
| 197 |
+
|
| 198 |
+
- PK/PD language
|
| 199 |
+
- clinical pharmacology
|
| 200 |
+
- PBPK
|
| 201 |
+
- exposure-response
|
| 202 |
+
- dose optimization
|
| 203 |
+
- drug disposition and modeling methods
|
| 204 |
+
|
| 205 |
+
However, the query strategy is broad, and some retained articles are only **adjacent** to pharmacometrics rather than strictly within it. For example, some documents concern:
|
| 206 |
+
|
| 207 |
+
- broader translational pharmacology
|
| 208 |
+
- oncology therapeutics
|
| 209 |
+
- drug-protein binding
|
| 210 |
+
- formulation or delivery topics
|
| 211 |
+
|
| 212 |
+
This makes the dataset suitable for a **prototype DAPT corpus**, but not yet a perfectly clean pharmacometrics-only benchmark.
|
| 213 |
+
|
| 214 |
+
## Intended uses
|
| 215 |
+
|
| 216 |
+
Recommended uses:
|
| 217 |
+
|
| 218 |
+
- domain-adaptive pretraining for LLMs
|
| 219 |
+
- continued pretraining of Qwen/Llama/Mistral-style causal LMs
|
| 220 |
+
- corpus mining and keyword analysis
|
| 221 |
+
- retrieval experiments on PKPD literature
|
| 222 |
+
|
| 223 |
+
Not recommended as-is for:
|
| 224 |
+
|
| 225 |
+
- strict pharmacometrics benchmarking without extra curation
|
| 226 |
+
- legal redistribution assumptions without checking article-level terms
|
| 227 |
+
- clinical decision support
|
| 228 |
+
|
| 229 |
+
## Licensing and redistribution note
|
| 230 |
+
|
| 231 |
+
This dataset is derived from **PMC / Europe PMC open-access full-text XML** and related PubMed metadata, but the corpus should **not** be interpreted as having a single unified license automatically inherited across all articles.
|
| 232 |
+
|
| 233 |
+
Important note:
|
| 234 |
+
|
| 235 |
+
- PMC / Europe PMC accessibility does **not** guarantee identical downstream redistribution terms for every document.
|
| 236 |
+
- Before making the dataset public, article-level licensing and redistribution conditions should be reviewed carefully.
|
| 237 |
+
|
| 238 |
+
For conservative use, private hosting is recommended until licensing is fully audited.
|
| 239 |
+
|
| 240 |
+
## Reproducibility
|
| 241 |
+
|
| 242 |
+
The dataset was generated by the local pipeline in:
|
| 243 |
+
|
| 244 |
+
- `scripts/01_search_pubmed.py`
|
| 245 |
+
- `scripts/02_map_pmids_to_pmcids.py`
|
| 246 |
+
- `scripts/03_fetch_fulltext_xml.py`
|
| 247 |
+
- `scripts/04_parse_jats_xml.py`
|
| 248 |
+
- `scripts/05_build_dapt_jsonl.py`
|
| 249 |
+
- `scripts/08_merge_and_report.py`
|
| 250 |
+
|
| 251 |
+
Summary reports used for this card:
|
| 252 |
+
|
| 253 |
+
- `data/reports/pubmed_search_summary.json`
|
| 254 |
+
- `data/reports/fulltext_retrieval_report.json`
|
| 255 |
+
- `data/reports/parsed_xml_report.json`
|
| 256 |
+
- `data/reports/core_pubmed_build_report.json`
|
| 257 |
+
- `data/reports/corpus_summary.json`
|
| 258 |
+
|
| 259 |
+
## Loading example
|
| 260 |
+
|
| 261 |
+
```python
|
| 262 |
+
from datasets import load_dataset
|
| 263 |
+
|
| 264 |
+
ds = load_dataset("Khalilbraham/PKPD-Dataset")
|
| 265 |
+
print(ds)
|
| 266 |
+
print(ds["train"][0].keys())
|
| 267 |
+
```
|
| 268 |
+
|
| 269 |
+
## Suggested citation
|
| 270 |
+
|
| 271 |
+
If you use this dataset, cite:
|
| 272 |
+
|
| 273 |
+
1. PubMed / NCBI E-utilities
|
| 274 |
+
2. PMC / Europe PMC
|
| 275 |
+
3. The dataset repository itself
|
| 276 |
+
|
| 277 |
+
You may also cite the associated local corpus-building pipeline if released separately.
|