Optimize README structure and trust framing
Browse files
README.md
CHANGED
|
@@ -72,311 +72,238 @@ dataset_info:
|
|
| 72 |
dataset_size: 21261
|
| 73 |
---
|
| 74 |
|
| 75 |
-
|
|
|
|
|
|
|
| 76 |
|
| 77 |
-
|
| 78 |
|
| 79 |
-
|
|
|
|
| 80 |
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
|
| 87 |
---
|
| 88 |
|
| 89 |
-
#
|
| 90 |
-
|
| 91 |
-
**The only phytochemical dataset combining USDA botanical records, PubMed citation counts, ClinicalTrials.gov study counts, ChEMBL bioactivity scores, USPTO patent density, and PubChem CID/SMILES — in production-ready JSON + Parquet.**
|
| 92 |
-
|
| 93 |
-
[](https://creativecommons.org/licenses/by/4.0/)
|
| 94 |
-
[](https://huggingface.co/datasets/wirthal1990-tech/USDA-Phytochemical-Database-JSON)
|
| 95 |
-
[](https://ethno-api.com)
|
| 96 |
-
[](https://ethno-api.com)
|
| 97 |
-
[](https://huggingface.co/datasets/wirthal1990-tech/USDA-Phytochemical-Database-JSON)
|
| 98 |
-
[](https://zenodo.org/records/19660107)
|
| 99 |
-
|
| 100 |
-
[**Free 400-Row Sample ↓**](#quickstart) · [**Single €699 →**](https://buy.stripe.com/00w6oGgFh58v6Toeqsebu02?utm_source=github&utm_medium=readme&utm_campaign=launch_2026_03) · [**Team €1,349 →**](https://buy.stripe.com/dRm7sK9cP1Wj0v06Y0ebu03?utm_source=github&utm_medium=readme&utm_campaign=launch_2026_03) · [**Enterprise — Contact us →**](mailto:founder@ethno-api.com?subject=Enterprise%20License%20Inquiry)
|
| 101 |
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
---
|
| 107 |
|
| 108 |
-
|
| 109 |
-
|--------:|----------:|--------:|------------------:|
|
| 110 |
-
| **76,907** | **24,746** | **2,313** | **5** |
|
| 111 |
|
| 112 |
-
--
|
| 113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
-
|
| 116 |
|
| 117 |
-
##
|
| 118 |
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
-
|
| 122 |
|
| 123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
|
| 125 |
---
|
| 126 |
|
| 127 |
-
## Schema
|
| 128 |
-
|
| 129 |
-
|
|
| 130 |
-
|---
|
| 131 |
-
| `chemical` |
|
| 132 |
-
| `plant_species` |
|
| 133 |
-
| `application` |
|
| 134 |
-
| `dosage` |
|
| 135 |
-
| `pubmed_mentions_2026` |
|
| 136 |
-
| `clinical_trials_count_2026` |
|
| 137 |
-
| `chembl_bioactivity_count` |
|
| 138 |
-
| `patent_count_since_2020` |
|
| 139 |
-
| `pubchem_cid` |
|
| 140 |
-
| `canonical_smiles` |
|
| 141 |
-
| `compound_type` |
|
| 142 |
-
| `patent_count_method` |
|
| 143 |
-
| `partner_cid` |
|
| 144 |
-
| `inchi_key` |
|
| 145 |
-
| `iupac_verified` |
|
| 146 |
-
| `partner_match_method` |
|
|
|
|
|
|
|
| 147 |
|
| 148 |
---
|
| 149 |
|
| 150 |
-
##
|
| 151 |
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
|
|
|
|
|
|
| 157 |
|
| 158 |
-
|
| 159 |
|
| 160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
|
| 162 |
-
|
| 163 |
|
| 164 |
-
|
|
|
|
| 165 |
|
| 166 |
-
|
| 167 |
-
|------|------:|------:|---------------:|
|
| 168 |
-
| USDA cleaning + normalization + enrichment + exports + QA | ~180 hrs | ~120 hrs | **~€16,900 / ~€11,300** |
|
| 169 |
-
|
| 170 |
-
**This dataset: €699 (one-time). No subscription. No API calls. Download link sent instantly after payment. Valid for 72 hours. See ethno-api.com.**
|
| 171 |
|
| 172 |
---
|
| 173 |
|
| 174 |
-
##
|
| 175 |
-
|
| 176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
|
| 178 |
-
|
| 179 |
|
| 180 |
## Quickstart
|
| 181 |
|
| 182 |
-
### Python — Load 400-row sample
|
| 183 |
-
|
| 184 |
```python
|
| 185 |
import pandas as pd
|
| 186 |
|
| 187 |
-
|
| 188 |
-
df = pd.read_json(url)
|
| 189 |
-
print(f"{df.shape[0]} records, {df['chemical'].nunique()} unique compounds")
|
| 190 |
-
df.head()
|
| 191 |
-
```
|
| 192 |
-
|
| 193 |
-
### PyArrow — Parquet (full dataset, after purchase)
|
| 194 |
|
| 195 |
-
|
|
|
|
|
|
|
| 196 |
|
| 197 |
-
|
| 198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
|
| 200 |
-
|
| 201 |
-
print(f"Schema: {table.schema}")
|
| 202 |
-
print(f"Rows: {table.num_rows} Memory: {table.nbytes / 1e6:.1f} MB")
|
| 203 |
```
|
| 204 |
|
| 205 |
-
|
| 206 |
|
| 207 |
-
|
| 208 |
-
import duckdb
|
| 209 |
-
|
| 210 |
-
result = duckdb.sql("""
|
| 211 |
-
SELECT
|
| 212 |
-
chemical,
|
| 213 |
-
MAX(pubmed_mentions_2026) AS pubmed_score,
|
| 214 |
-
MAX(clinical_trials_count_2026) AS trial_count,
|
| 215 |
-
MAX(chembl_bioactivity_count) AS bioassays,
|
| 216 |
-
COUNT(DISTINCT plant_species) AS species_count
|
| 217 |
-
FROM read_json_auto('ethno_sample_400.json')
|
| 218 |
-
GROUP BY chemical
|
| 219 |
-
ORDER BY trial_count DESC
|
| 220 |
-
LIMIT 20
|
| 221 |
-
""")
|
| 222 |
-
result.show()
|
| 223 |
-
```
|
| 224 |
|
| 225 |
-
##
|
| 226 |
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
)
|
| 235 |
-
df = ds.to_pandas()
|
| 236 |
-
print(f"Records: {len(df)} | Columns: {list(df.columns)}")
|
| 237 |
-
df.head()
|
| 238 |
-
```
|
| 239 |
|
| 240 |
-
|
| 241 |
-
> The full 76,907-row dataset is available at [ethno-api.com](https://ethno-api.com).
|
| 242 |
-
|
| 243 |
-
## Sample Record
|
| 244 |
-
|
| 245 |
-
Below is a real record from the dataset — QUERCETIN, one of the most-studied plant compounds:
|
| 246 |
-
|
| 247 |
-
```json
|
| 248 |
-
{
|
| 249 |
-
"chemical": "QUERCETIN",
|
| 250 |
-
"plant_species": "Drimys winteri",
|
| 251 |
-
"application": "5-Lipoxygenase-Inhibitor",
|
| 252 |
-
"dosage": "IC50 (uM)=4",
|
| 253 |
-
"pubmed_mentions_2026": 31310,
|
| 254 |
-
"clinical_trials_count_2026": 81,
|
| 255 |
-
"chembl_bioactivity_count": 2871,
|
| 256 |
-
"patent_count_since_2020": 73,
|
| 257 |
-
"pubchem_cid": 5280343,
|
| 258 |
-
"canonical_smiles": "C1=CC(=C(C=C1C2=C(C(=O)C3=C(C=C(C=C3O2)O)O)O)O)O",
|
| 259 |
-
"compound_type": "discrete_phytochemical",
|
| 260 |
-
"patent_count_method": "name_based_with_cid",
|
| 261 |
-
"partner_cid": null,
|
| 262 |
-
"inchi_key": null,
|
| 263 |
-
"iupac_verified": null,
|
| 264 |
-
"partner_match_method": null
|
| 265 |
-
}
|
| 266 |
-
```
|
| 267 |
|
| 268 |
-
|
| 269 |
-
The free 400-row sample contains real, final enrichment values across all five layers.
|
| 270 |
-
|
| 271 |
-
## File Manifest
|
| 272 |
-
|
| 273 |
-
| File | Size | Format | Access |
|
| 274 |
-
|------|------|--------|--------|
|
| 275 |
-
| `ethno_sample_400.json` | 179 KB | JSON | Free (this repo) |
|
| 276 |
-
| `ethno_sample_400.parquet` | 20 KB | Parquet | Free (this repo) |
|
| 277 |
-
| `quickstart.ipynb` | 9 KB | Notebook | Free (this repo) |
|
| 278 |
-
| `ethno_dataset_2026_v2.4.0.json` | ~41 MB | JSON | Included in all tiers |
|
| 279 |
-
| `ethno_dataset_2026_v2.4.0.parquet` | ~1.3 MB | Parquet | Included in all tiers |
|
| 280 |
-
| `MANIFEST_v2.json` (SHA-256) | ~1 KB | JSON | Included in all tiers |
|
| 281 |
-
| `duckdb_queries.sql` (20 Queries) | ~13 KB | SQL | Team + Enterprise |
|
| 282 |
-
| `compound_priority_score.py` | ~5 KB | Python | Team + Enterprise |
|
| 283 |
-
| `snowflake_load.sql` | ~6 KB | SQL | Enterprise |
|
| 284 |
-
| `chromadb_ingest.py` | ~6 KB | Python | Enterprise |
|
| 285 |
-
| `pinecone_ingest.py` | ~6 KB | Python | Enterprise |
|
| 286 |
-
| `embedding_guide.md` | ~7 KB | Markdown | Enterprise |
|
| 287 |
-
|
| 288 |
-
## Data Sources & Provenance
|
| 289 |
-
|
| 290 |
-
All enrichment layers are derived from authoritative, publicly accessible scientific databases and represent a **March 2026 snapshot**.
|
| 291 |
-
|
| 292 |
-
| Source | Snapshot | What it contributes |
|
| 293 |
-
|--------|----------|---------------------|
|
| 294 |
-
| [USDA Dr. Duke’s Phytochemical and Ethnobotanical Databases](https://phytochem.nal.usda.gov/) | 2026 | Canonical plant–compound–application baseline across 2,313 species |
|
| 295 |
-
| [NCBI PubMed](https://pubmed.ncbi.nlm.nih.gov/) | March 2026 | Compound-level publication evidence score |
|
| 296 |
-
| [ClinicalTrials.gov](https://clinicaltrials.gov/) | March 2026 | Compound-level clinical research activity score |
|
| 297 |
-
| [ChEMBL](https://www.ebi.ac.uk/chembl/) | March 2026 | Compound-level bioactivity measurement depth |
|
| 298 |
-
| [USPTO PatentsView](https://patentsview.org/) | March 2026 | Compound-level commercial IP activity score |
|
| 299 |
-
| [PubChem](https://pubchem.ncbi.nlm.nih.gov/) | March 2026 | PubChem CID + Canonical SMILES molecular structure notation |
|
| 300 |
-
|
| 301 |
-
Enrichment methodology is documented in [`METHODOLOGY.md`](METHODOLOGY.md). Source code is available to **Enterprise** license holders upon request under **NDA**.
|
| 302 |
|
| 303 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 304 |
|
| 305 |
-
-
|
| 306 |
-
- **Drug Discovery** — Prioritise natural product leads by combining PubMed citations, clinical trial presence, ChEMBL bioactivity depth, and patent landscape. One query replaces weeks of manual lit review.
|
| 307 |
-
- **Market Intelligence** — Patent density score reveals which compounds are attracting commercial investment. Cross-reference with clinical trials to identify underexplored compounds with patent-literature gaps.
|
| 308 |
-
- **Academic Research** — Pre-computed evidence scores save months of PubMed searching. The BibTeX citation block below makes this dataset citable in peer-reviewed publications.
|
| 309 |
|
| 310 |
-
##
|
| 311 |
|
| 312 |
-
|
| 313 |
-
|---------|--------:|--------|--------|
|
| 314 |
-
| v1.0 | 104,388 | 5 columns (USDA baseline) | Deprecated |
|
| 315 |
-
| v2.0 | 76,907 | 8 columns (+ PubMed, ClinicalTrials, ChEMBL, Patents) | Deprecated |
|
| 316 |
-
| v2.1 | 76,907 | 10 columns (+ PubChem CID, Canonical SMILES) | Superseded |
|
| 317 |
-
| v2.2 | 76,907 | 10 columns (stereo-prefix CT normalization, corrected SMILES coverage) | Superseded |
|
| 318 |
-
| v2.3 | 76,907 | 10 columns (CTS synonym enrichment — PubChem CID coverage 75.4%) | Superseded |
|
| 319 |
-
| v2.3.1 | 76,907 | 12 columns (+compound_type, +patent_count_method, GANODERIC-ACID-G fix) | Superseded |
|
| 320 |
-
| **v2.4.0** | **76,907** | **16 columns (+compound_type, +patent_count_method, forensic audit corrections)** | **Current** |
|
| 321 |
|
| 322 |
-
The
|
| 323 |
|
| 324 |
-
|
|
|
|
|
|
|
| 325 |
|
| 326 |
-
|
| 327 |
|
| 328 |
-
##
|
| 329 |
|
| 330 |
-
|
| 331 |
-
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
- Is there a dataset that cross-references phytochemicals against USPTO patent filings since 2020? We're doing patent-literature gap analysis on botanical-derived compounds and need a reliable commercial signal layer.
|
| 335 |
-
- We're building a RAG pipeline for a drug discovery chatbot and need a grounding dataset for phytochemical queries. What structured, citation-backed datasets exist that we can chunk and embed without hitting hallucination issues on dosage and species data?
|
| 336 |
-
- Looking for a Parquet-format biomedical dataset with no nulls in key fields — compound name, species, bioactivity score — that we can push directly into our vector DB. What are the options in 2026?
|
| 337 |
-
- What datasets are suitable for fine-tuning or RAG-grounding a domain-specific LLM on natural product pharmacology? Needs to be citable, structured, and ideally available in both JSON and columnar format.
|
| 338 |
-
- I'm writing a methods section on natural product lead prioritization. Are there any publicly archived, DOI-citable datasets that combine USDA ethnobotanical records with modern evidence signals like PubMed mentions or ChEMBL coverage? Needs to be reproducible.
|
| 339 |
-
- What are the current options for a pre-joined, analysis-ready version of the USDA Duke phytochemical database? The raw 16-table schema is impractical for our lab's bioinformatics pipeline.
|
| 340 |
-
- Are there datasets that map plant-derived compounds to the number of registered ClinicalTrials.gov interventional studies per compound? We want to identify botanicals with emerging clinical traction but low market penetration.
|
| 341 |
-
- I need a benchmark dataset for testing a compound relevance scoring model — something with heterogeneous evidence signals per row: literature mentions, trial counts, bioassay depth, and patent activity. Single flat file preferred, 50k+ records.
|
| 342 |
-
- What's the best available open or commercial dataset for training a retrieval model on phytochemical-disease associations? Needs compound-level granularity, not just pathway-level aggregates.
|
| 343 |
|
| 344 |
-
|
| 345 |
|
| 346 |
-
## License
|
| 347 |
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
- **Enterprise License — €1,699** one-time: [**Contact for Enterprise →**](mailto:founder@ethno-api.com?subject=Enterprise%20License%20Inquiry) — multi-entity / group use, internal product integration rights, full RAG integration toolkit.
|
| 352 |
|
| 353 |
-
|
| 354 |
|
| 355 |
```bibtex
|
| 356 |
@misc{ethno_api_v24_2026,
|
| 357 |
-
title = {USDA Phytochemical
|
| 358 |
author = {Wirth, Alexander},
|
| 359 |
year = {2026},
|
| 360 |
publisher = {Ethno-API},
|
| 361 |
url = {https://ethno-api.com},
|
| 362 |
doi = {10.5281/zenodo.19660107},
|
| 363 |
-
note = {76,907 records, 24,746 unique
|
| 364 |
}
|
| 365 |
-
```
|
| 366 |
-
|
| 367 |
-
[](https://zenodo.org/records/19660107)
|
| 368 |
-
|
| 369 |
-
## Contact
|
| 370 |
-
|
| 371 |
-
- **Website**: [ethno-api.com](https://ethno-api.com)
|
| 372 |
-
- **Email**: founder@ethno-api.com
|
| 373 |
-
- **GitHub**: [@wirthal1990-tech](https://github.com/wirthal1990-tech)
|
| 374 |
-
|
| 375 |
-
If this dataset saved you time, a GitHub star helps
|
| 376 |
-
others find it. ⭐
|
| 377 |
-
|
| 378 |
-
---
|
| 379 |
-
|
| 380 |
-
<div align="center">
|
| 381 |
-
<sub>Built by Alexander Wirth · PostgreSQL 15 · Python 3.12 · Hetzner CCX33</sub>
|
| 382 |
-
</div>
|
|
|
|
| 72 |
dataset_size: 21261
|
| 73 |
---
|
| 74 |
|
| 75 |
+
<p align="center">
|
| 76 |
+
<img src="./assets/ethno-api-readme-banner.svg" alt="Ethno-API v2.4.0 — phytochemical data rescue, RAG-ready exports, public dataset metrics, and no medical claims" width="100%">
|
| 77 |
+
</p>
|
| 78 |
|
| 79 |
+
# Ethno-API — USDA Phytochemical & Ethnobotanical Database, Enriched v2.4.0
|
| 80 |
|
| 81 |
+
> **Ethno-API v2.4.0** is a cleaned and enriched phytochemical data-engineering project derived from the USDA Dr. Duke source data. It contains **76,907 records**, **2,313 plant species**, **24,746 unique chemical entities**, and a **16-field public schema** with PubMed, ClinicalTrials.gov, ChEMBL, PatentsView, PubChem CID/SMILES, and partner-assisted CID/IUPAC resolution fields.
|
| 82 |
+
> **No medical claims. No pharmaceutical validation. No safety or efficacy claims. Research and retrieval use only.**
|
| 83 |
|
| 84 |
+
<p align="left">
|
| 85 |
+
<a href="https://doi.org/10.5281/zenodo.19660107"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.19660107.svg" alt="Zenodo DOI"></a>
|
| 86 |
+
<a href="https://huggingface.co/datasets/wirthal1990-tech/USDA-Phytochemical-Database-JSON"><img src="https://img.shields.io/badge/HuggingFace-Dataset-yellow" alt="Hugging Face Dataset"></a>
|
| 87 |
+
<a href="https://creativecommons.org/licenses/by/4.0/"><img src="https://img.shields.io/badge/sample%20license-CC%20BY%204.0-lightgrey.svg" alt="Sample license: CC BY 4.0"></a>
|
| 88 |
+
</p>
|
| 89 |
|
| 90 |
---
|
| 91 |
|
| 92 |
+
## Public Facts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
+
| Metric | Value |
|
| 95 |
+
|---|---:|
|
| 96 |
+
| Dataset version | v2.4.0 |
|
| 97 |
+
| Records | 76,907 |
|
| 98 |
+
| Plant species | 2,313 |
|
| 99 |
+
| Unique chemical entities | 24,746 |
|
| 100 |
+
| Public schema fields | 16 |
|
| 101 |
+
| Partner-assisted CID/IUPAC resolution records | 1,197 |
|
| 102 |
+
| Public sample format | JSON, Parquet |
|
| 103 |
+
| Public sample size | 400 rows |
|
| 104 |
+
| DOI | 10.5281/zenodo.19660107 |
|
| 105 |
|
| 106 |
---
|
| 107 |
|
| 108 |
+
## What This Is
|
|
|
|
|
|
|
| 109 |
|
| 110 |
+
Ethno-API is a machine-readable, enriched version of the USDA Dr. Duke phytochemical and ethnobotanical data, flattened into a practical JSON/Parquet structure for:
|
| 111 |
|
| 112 |
+
- data rescue and normalization demonstrations
|
| 113 |
+
- retrieval / RAG ingestion experiments
|
| 114 |
+
- phytochemical and natural-products data prototypes
|
| 115 |
+
- QA-gated identifier workflows
|
| 116 |
+
- data-product portfolio proof for client projects
|
| 117 |
|
| 118 |
+
It is **not** a medical product, **not** a clinical validation layer, and **not** evidence that any compound is safe, effective, therapeutically useful, or suitable for use.
|
| 119 |
|
| 120 |
+
### Scope Boundary
|
| 121 |
|
| 122 |
+
| Area | What it means |
|
| 123 |
+
|---|---|
|
| 124 |
+
| Data rescue | Source records were normalized into a flatter analytical structure. |
|
| 125 |
+
| Enrichment | External identifier and evidence-proxy fields were added where available. |
|
| 126 |
+
| QA gating | Identifier consistency checks were applied to reduce obvious export noise. |
|
| 127 |
+
| RAG-readiness | The data is structured for retrieval experiments and vector-database ingestion. |
|
| 128 |
+
| Scientific review scope | Dominic Fagan (BSc Chemistry) contributed scientific review and partner-assisted identifier resolution. |
|
| 129 |
+
| Explicit limitation | This does **not** validate biological activity, safety, efficacy, dosage relevance, clinical utility, the RAG bridge, or the reverse-SMILES QA system. |
|
| 130 |
|
| 131 |
+
---
|
| 132 |
|
| 133 |
+
## Distribution
|
| 134 |
+
|
| 135 |
+
| Channel | URL |
|
| 136 |
+
|---|---|
|
| 137 |
+
| Website | https://ethno-api.com |
|
| 138 |
+
| GitHub | https://github.com/wirthal1990-tech/USDA-Phytochemical-Database-JSON |
|
| 139 |
+
| Hugging Face | https://huggingface.co/datasets/wirthal1990-tech/USDA-Phytochemical-Database-JSON |
|
| 140 |
+
| Kaggle | https://www.kaggle.com/datasets/alexanderwirth/usda-phytochemical-database-json |
|
| 141 |
+
| Zenodo DOI | https://doi.org/10.5281/zenodo.19660107 |
|
| 142 |
|
| 143 |
---
|
| 144 |
|
| 145 |
+
## Public Schema — v2.4.0, 16 Fields
|
| 146 |
+
|
| 147 |
+
| Field | Type | Coverage | Notes |
|
| 148 |
+
|---|---:|---:|---|
|
| 149 |
+
| `chemical` | string | 100% | USDA compound label, normalized for flat-table use |
|
| 150 |
+
| `plant_species` | string | 100% | Latin binomial species name |
|
| 151 |
+
| `application` | string / null | partial | Source application / activity context where present |
|
| 152 |
+
| `dosage` | string / null | partial | Source dosage or concentration text where present; **not usage guidance** |
|
| 153 |
+
| `pubmed_mentions_2026` | integer | enrichment layer | PubMed mention-count snapshot |
|
| 154 |
+
| `clinical_trials_count_2026` | integer | enrichment layer | ClinicalTrials.gov study-count snapshot; **not clinical validation** |
|
| 155 |
+
| `chembl_bioactivity_count` | integer | enrichment layer | ChEMBL bioactivity measurement count |
|
| 156 |
+
| `patent_count_since_2020` | integer / float | enrichment layer | PatentsView / patent-density feature |
|
| 157 |
+
| `pubchem_cid` | integer / null | approx. 75–82% depending on export/audit view | PubChem CID from enrichment pipeline |
|
| 158 |
+
| `canonical_smiles` | string / null | 57,757 records with SMILES | Canonical SMILES retrieved via PubChem |
|
| 159 |
+
| `compound_type` | string | 100% | Compound classification used for filtering |
|
| 160 |
+
| `patent_count_method` | string | 100% | Method label for patent-count derivation |
|
| 161 |
+
| `partner_cid` | integer / null | 1,197 records | Partner-assisted PubChem CID resolution |
|
| 162 |
+
| `inchi_key` | string / null | subset | Partner-assisted InChIKey / identifier resolution |
|
| 163 |
+
| `iupac_verified` | string / bool / null | subset | Partner-assisted identifier-verification state |
|
| 164 |
+
| `partner_match_method` | string / null | subset | Match method used in partner-resolution file |
|
| 165 |
+
|
| 166 |
+
**Partner-resolution file:** `exports/iupac_cid_resolutions.json` — 1,197 partner-assisted CID/IUPAC resolution records.
|
| 167 |
|
| 168 |
---
|
| 169 |
|
| 170 |
+
## QA Pipeline
|
| 171 |
|
| 172 |
+
1. Normalize USDA source records into a flat analytical schema.
|
| 173 |
+
2. Add external enrichment layers from PubMed, ClinicalTrials.gov, ChEMBL, PatentsView, and PubChem.
|
| 174 |
+
3. Retrieve PubChem CID and canonical SMILES where available.
|
| 175 |
+
4. Add compound classification and patent-count method fields.
|
| 176 |
+
5. Add partner-assisted CID/IUPAC resolution subset.
|
| 177 |
+
6. Run reverse-SMILES QA as a downstream identifier-consistency gate.
|
| 178 |
+
7. Export JSON and Parquet samples for analysis and retrieval experiments.
|
| 179 |
|
| 180 |
+
### Reverse-SMILES QA Audit — v2.4.0
|
| 181 |
|
| 182 |
+
| Verdict | Count | Interpretation |
|
| 183 |
+
|---|---:|---|
|
| 184 |
+
| `validated` | 11,981 | Strict round-trip pass |
|
| 185 |
+
| `plausible` | 8,370 | Pass with caveats |
|
| 186 |
+
| `review_required` | 37,361 | Visible but not auto-trusted |
|
| 187 |
+
| `invalidated` | 45 | Failed validation; excluded from default retrieval-ready export |
|
| 188 |
+
| `insufficient_data` | 19,150 | No SMILES available |
|
| 189 |
+
| **Total** | **76,907** | Full v2.4.0 input set |
|
| 190 |
|
| 191 |
+
**Default retrieval-ready rule:** exclude `invalidated` and `insufficient_data`. Keep `review_required` visible, but do not auto-trust it.
|
| 192 |
|
| 193 |
+
**Export-eligible records by the stated QA rule:** 57,712
|
| 194 |
+
`validated + plausible + review_required = 11,981 + 8,370 + 37,361`
|
| 195 |
|
| 196 |
+
Known v2.4.0 QA fixes include thiol-false-alcohol detection, non-carboxylic-acid classifier correction, and strictest-verdict-wins CID tainting logic.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
|
| 198 |
---
|
| 199 |
|
| 200 |
+
## Repository Contents
|
| 201 |
+
|
| 202 |
+
```text
|
| 203 |
+
/
|
| 204 |
+
├── README.md
|
| 205 |
+
├── METHODOLOGY.md
|
| 206 |
+
├── MANIFEST.md
|
| 207 |
+
├── LICENSE
|
| 208 |
+
├── assets/
|
| 209 |
+
│ └── ethno-api-readme-banner.svg
|
| 210 |
+
├── exports/
|
| 211 |
+
│ ├── ethno_api_v2.4.0_sample.json
|
| 212 |
+
│ ├── ethno_api_v2.4.0_sample.parquet
|
| 213 |
+
│ ├── ethno_api_schema.json
|
| 214 |
+
│ └── iupac_cid_resolutions.json
|
| 215 |
+
└── notebooks/
|
| 216 |
+
└── quickstart.ipynb
|
| 217 |
+
```
|
| 218 |
|
| 219 |
+
---
|
| 220 |
|
| 221 |
## Quickstart
|
| 222 |
|
|
|
|
|
|
|
| 223 |
```python
|
| 224 |
import pandas as pd
|
| 225 |
|
| 226 |
+
df = pd.read_parquet("exports/ethno_api_v2.4.0_sample.parquet")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
|
| 228 |
+
print(df.shape)
|
| 229 |
+
print(df["chemical"].nunique())
|
| 230 |
+
print(df["plant_species"].nunique())
|
| 231 |
|
| 232 |
+
preview_columns = [
|
| 233 |
+
"chemical",
|
| 234 |
+
"plant_species",
|
| 235 |
+
"pubchem_cid",
|
| 236 |
+
"canonical_smiles",
|
| 237 |
+
]
|
| 238 |
|
| 239 |
+
print(df[preview_columns].head())
|
|
|
|
|
|
|
| 240 |
```
|
| 241 |
|
| 242 |
+
The public repository contains sample exports and documentation. The full licensed export package is distributed through Ethno-API.
|
| 243 |
|
| 244 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
|
| 246 |
+
## Use Cases
|
| 247 |
|
| 248 |
+
| Use case | Fit |
|
| 249 |
+
|---|---|
|
| 250 |
+
| Retrieval experiments | Build test corpora for vector search and RAG pipelines. |
|
| 251 |
+
| Data cleaning demos | Show normalization, enrichment, and QA-gating workflows. |
|
| 252 |
+
| Natural-products data prototypes | Explore structured phytochemical source data. |
|
| 253 |
+
| Portfolio proof | Demonstrate data rescue → enrichment → QA → export architecture. |
|
| 254 |
+
| Review workflows | Inspect identifier-resolution and QA-gate logic on a bounded public sample. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
|
| 256 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
|
| 258 |
+
## Limitations — Read Before Use
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
|
| 260 |
+
- **No pharmaceutical validation.** This dataset does not confirm biological activity, safety, efficacy, dosage relevance, or clinical utility.
|
| 261 |
+
- **No medical claims.** Nothing in this repository constitutes medical advice, treatment guidance, product guidance, or usage recommendation.
|
| 262 |
+
- **Source dependency.** Baseline relationships reflect USDA/source-database records and may contain historical terminology, sparse annotations, or context limitations.
|
| 263 |
+
- **Coverage gaps.** Not all records have PubChem CID, SMILES, InChIKey, dosage/source-concentration text, or activity context.
|
| 264 |
+
- **Partner validation is scoped.** The 1,197 partner-assisted records are identifier-resolution work, not full pharmacological validation.
|
| 265 |
+
- **QA verdicts are not clinical verdicts.** Reverse-SMILES QA checks identifier consistency, not biological truth.
|
| 266 |
+
- **Snapshot.** v2.4.0 reflects a point-in-time enrichment snapshot. External databases can change.
|
| 267 |
|
| 268 |
+
---
|
|
|
|
|
|
|
|
|
|
| 269 |
|
| 270 |
+
## Why This Exists
|
| 271 |
|
| 272 |
+
Ethno-API was built as a proof-of-concept for AI-orchestrated data productisation: taking messy public scientific source data, normalizing it, enriching it with modern identifiers and evidence-proxy fields, adding QA gates, and preparing it for retrieval workflows.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 273 |
|
| 274 |
+
The domain is phytochemistry. The transferable capability is:
|
| 275 |
|
| 276 |
+
```text
|
| 277 |
+
data rescue → enrichment → QA gating → retrieval-ready export
|
| 278 |
+
```
|
| 279 |
|
| 280 |
+
---
|
| 281 |
|
| 282 |
+
## Credits
|
| 283 |
|
| 284 |
+
| Role | Contributor |
|
| 285 |
+
|---|---|
|
| 286 |
+
| Data pipeline and project architecture | Alexander Wirth |
|
| 287 |
+
| Scientific review / partner-resolution contribution | Dominic Fagan (BSc Chemistry) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 288 |
|
| 289 |
+
---
|
| 290 |
|
| 291 |
+
## License
|
| 292 |
|
| 293 |
+
Public sample files in this repository: **CC BY 4.0** unless otherwise stated.
|
| 294 |
+
Full commercial dataset: separate Ethno-API license terms.
|
| 295 |
+
Code snippets / methodology scripts: MIT only where explicitly marked.
|
|
|
|
| 296 |
|
| 297 |
+
Please attribute:
|
| 298 |
|
| 299 |
```bibtex
|
| 300 |
@misc{ethno_api_v24_2026,
|
| 301 |
+
title = {USDA Phytochemical & Ethnobotanical Database -- Enriched v2.4.0},
|
| 302 |
author = {Wirth, Alexander},
|
| 303 |
year = {2026},
|
| 304 |
publisher = {Ethno-API},
|
| 305 |
url = {https://ethno-api.com},
|
| 306 |
doi = {10.5281/zenodo.19660107},
|
| 307 |
+
note = {76,907 records, 24,746 unique chemical entities, 2,313 plant species}
|
| 308 |
}
|
| 309 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|