wirthal1990-tech commited on
Commit
ba58a87
·
verified ·
1 Parent(s): 0c75f83

Optimize README structure and trust framing

Browse files
Files changed (1) hide show
  1. README.md +164 -237
README.md CHANGED
@@ -72,311 +72,238 @@ dataset_info:
72
  dataset_size: 21261
73
  ---
74
 
75
- > **Production-grade phytochemical data.** Single €699 · Team €1,349 · Enterprise €1,699. [→ ethno-api.com](https://ethno-api.com)
 
 
76
 
77
- <div align="center">
78
 
79
- ## Citation
 
80
 
81
- If you use this dataset in your research, please cite:
82
-
83
- ```
84
- Wirth, A. (2026). USDA Phytochemical Database — Enriched v2.4.0 (Sample). Zenodo. https://doi.org/10.5281/zenodo.19660107
85
- ```
86
 
87
  ---
88
 
89
- # USDA Phytochemical & Ethnobotanical Database — Enriched v2.4.0
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
- [![License: CC BY 4.0](https://img.shields.io/badge/Sample-CC%20BY%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)
94
- [![Sample](https://img.shields.io/badge/Sample-400%20rows-brightgreen)](https://huggingface.co/datasets/wirthal1990-tech/USDA-Phytochemical-Database-JSON)
95
- [![Full Dataset](https://img.shields.io/badge/Full%20Dataset-76%2C907%20rows-blue)](https://ethno-api.com)
96
- [![Format](https://img.shields.io/badge/Format-JSON%20%2B%20Parquet-orange)](https://ethno-api.com)
97
- [![HuggingFace](https://img.shields.io/badge/%F0%9F%A4%97%20HuggingFace-Dataset-yellow)](https://huggingface.co/datasets/wirthal1990-tech/USDA-Phytochemical-Database-JSON)
98
- [![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.19660107.svg)](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
- > **Enrichment status (March 2026):** All five enrichment layers (PubMed, ClinicalTrials.gov, ChEMBL, PatentsView, PubChem) are **complete and final**. v2.4.0 adds compound_type classification and patent_count_method transparency (PubChem CID coverage: 75.4%). The free 400-row sample contains real enrichment values.
103
-
104
- </div>
 
 
 
 
 
 
 
 
105
 
106
  ---
107
 
108
- | Records | Compounds | Species | Enrichment Layers |
109
- |--------:|----------:|--------:|------------------:|
110
- | **76,907** | **24,746** | **2,313** | **5** |
111
 
112
- ---
113
 
 
 
 
 
 
114
 
115
- > **Data Quality:** Dataset was audit-validated on 2026-03-16. Original 104,388 records cleaned to 76,907 by removing macronutrients (WATER, GLUCOSE etc.) and exact duplicates. [Audit report available on request.]
116
 
117
- ## Patent and Literature Signal Layer
118
 
119
- v2.4.0 includes compound-level patent and literature signals across 24,746 unique chemicals. Each compound carries a `patent_count_since_2020` (USPTO PatentsView) and `pubmed_mentions_2026` (NCBI E-utilities) field, enabling independent prioritization analysis.
 
 
 
 
 
 
 
120
 
121
- A new `compound_type` column classifies all entries as `discrete_phytochemical`, `substance_class`, `complex_mixture`, `inorganic_element`, or `generic_ambiguous`. A `patent_count_method` column documents the query methodology per compound (including known limitations for name-based queries on generic terms).
122
 
123
- Full methodology is documented in `METHODOLOGY.md`. Known limitations are listed in `MANIFEST_v2.json` under `known_limitations`.
 
 
 
 
 
 
 
 
124
 
125
  ---
126
 
127
- ## Schema (v2.4.0)
128
-
129
- | Column | Type | Nulls | Description |
130
- |--------|------|-------|-------------|
131
- | `chemical` | `string` | 0% | Standardised compound name (USDA Duke's nomenclature) |
132
- | `plant_species` | `string` | 0% | Binomial Latin species name |
133
- | `application` | `string` | ~50% | Traditional medicinal application (e.g. "Antiinflammatory") |
134
- | `dosage` | `string` | ~87% | Reported dosage, concentration, or IC50 value |
135
- | `pubmed_mentions_2026` | `int32` | 0% | Total PubMed publications mentioning this compound (March 2026 snapshot) |
136
- | `clinical_trials_count_2026` | `int32` | 0% | ClinicalTrials.gov study count per compound (March 2026) |
137
- | `chembl_bioactivity_count` | `int32` | 0% | ChEMBL documented bioactivity measurement count |
138
- | `patent_count_since_2020` | `int32` | ~0.9% | US patents since 2020-01-01 mentioning compound (USPTO PatentsView) |
139
- | `pubchem_cid` | `int64` | ~28.2% | PubChem Compound ID (CID) — resolved via PubChem PUG REST (March 2026) |
140
- | `canonical_smiles` | `string` | ~28.2% | Canonical SMILES notation — molecular structure from PubChem (75.4% of unique compounds resolved in v2.4/v2.4.0) |
141
- | `compound_type` | `string` | 0% | Classification: `discrete_phytochemical`, `substance_class`, `complex_mixture`, `inorganic_element`, `generic_ambiguous` — added in v2.4.0 |
142
- | `patent_count_method` | `string` | ~0.9% | Query methodology: `name_based_with_cid`, `name_based_no_cid`, `name_based_invalidated`, `NULL` — added in v2.4.0 |
143
- | `partner_cid` | `int64` | ~98% | Cross-matched PubChem CID from COCONUT/FooDB partner databases — added in v2.4.0 |
144
- | `inchi_key` | `string` | ~99.4% | InChI key for structural identification — added in v2.4.0 |
145
- | `iupac_verified` | `int64` | ~99.4% | PubChem CID verified via IUPAC name resolution — added in v2.4.0 |
146
- | `partner_match_method` | `string` | ~98% | Cross-match methodology: `exact_cid_match`, `iupac_resolution`, `NULL` — added in v2.4.0 |
 
 
147
 
148
  ---
149
 
150
- ## Pricing & Licensing
151
 
152
- | Tier | Price | Includes | Purchase |
153
- |------|-------|----------|----------|
154
- | **Single Entity** | **€699** net | JSON + Parquet + SHA-256 Manifest. 1 legal entity, internal use. Perpetual license. | [**Buy Now →**](https://buy.stripe.com/00w6oGgFh58v6Toeqsebu02?utm_source=github&utm_medium=readme&utm_campaign=launch_2026_03) |
155
- | **Team** | **€1,349** net | Everything in Single + `duckdb_queries.sql` (20 queries, 5 categories) + `compound_priority_score.py` + 4 pre-computed views (Top-500 by PubMed, Trials, Patent Density, Anti-Inflammatory Panel). Unlimited internal users within 1 legal entity. | [**Buy Now →**](https://buy.stripe.com/dRm7sK9cP1Wj0v06Y0ebu03?utm_source=github&utm_medium=readme&utm_campaign=launch_2026_03) |
156
- | **Enterprise** | **€1,699** net | Everything in Team + `snowflake_load.sql` + `chromadb_ingest.py` + `pinecone_ingest.py` + `embedding_guide.md` (ClinicalBERT, RAG pipelines) + Compound Opportunity Matrix + Clinical Pipeline Gaps CSV + Pre-chunked RAG JSONL. Multi-entity / group use, internal product integration permitted. | [**Contact for Enterprise →**](mailto:founder@ethno-api.com?subject=Enterprise%20License%20Inquiry) |
 
 
157
 
158
- > No VAT charged (German small business exemption, §19 UStG). All prices net. One-time purchase — no subscription, no recurring costs.
159
 
160
- ---
 
 
 
 
 
 
 
161
 
162
- ## Why Not Build This Yourself?
163
 
164
- Normalising and cross-referencing **24,746 phytochemicals** across multiple authoritative sources is not a weekend project.
 
165
 
166
- | Scope | Without AI | With AI (2026) | Cost @ €80/hr |
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
- ## Why This Dataset Exists
175
-
176
- Large language models hallucinate botanical taxonomy. A biotech team’s RAG pipeline confidently outputting “Quercetin found in 450 species at 2.3 mg/g” sounds plausible — but the real number of species in our data is 215, and dosage varies by three orders of magnitude depending on the plant part.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
 
178
- The raw USDA Dr. Duke’s database is spread across 16 relational tables. Joining them correctly requires understanding non-obvious foreign keys, handling >40% null values in application fields, and normalising species names against accepted binomial nomenclature. Most teams give up after a week.
179
 
180
  ## Quickstart
181
 
182
- ### Python — Load 400-row sample
183
-
184
  ```python
185
  import pandas as pd
186
 
187
- url = "https://raw.githubusercontent.com/wirthal1990-tech/USDA-Phytochemical-Database-JSON/main/ethno_sample_400.json"
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
- Download link delivered instantly after payment (valid 72h). See ethno-api.com.
 
 
196
 
197
- ```python
198
- import pyarrow.parquet as pq
 
 
 
 
199
 
200
- table = pq.read_table("ethno_dataset_2026_v2.4.0.parquet")
201
- print(f"Schema: {table.schema}")
202
- print(f"Rows: {table.num_rows} Memory: {table.nbytes / 1e6:.1f} MB")
203
  ```
204
 
205
- ### DuckDB (analytical queries — sample included)
206
 
207
- ```python
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
- ### HuggingFace Datasets
226
 
227
- ```python
228
- from datasets import load_dataset
229
-
230
- ds = load_dataset(
231
- "wirthal1990-tech/USDA-Phytochemical-Database-JSON",
232
- split="train",
233
- trust_remote_code=False
234
- )
235
- df = ds.to_pandas()
236
- print(f"Records: {len(df)} | Columns: {list(df.columns)}")
237
- df.head()
238
- ```
239
 
240
- > **Note:** The `split="train"` loads `ethno_sample_400.parquet` (400 rows, 16 columns).
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
- All 76,907 records contain all 16 schema fields. The 4 enrichment columns are always non-null; `pubchem_cid` and `canonical_smiles` are filled for 75.4% of unique compounds (18,675 of 24,746 resolved via PubChem PUG REST in v2.4/v2.4.0); `compound_type` and `patent_count_method` are populated for all records; `application` (~50% null) and `dosage` (~87% null) reflect USDA source gaps. Unresolved compounds are phytochemical trivial names, mixture descriptions, or non-specific ethnobotanical terms not indexed in PubChem by name.
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
- ## Use Cases
 
 
 
 
 
 
304
 
305
- - **RAG Pipelines** — Ground LLM responses with verified phytochemical data. Each record has a PubMed evidence score — use it to weight retrieval results and filter hallucinations.
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
- ## Dataset Versions
311
 
312
- | Version | Records | Schema | Status |
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 free sample (`ethno_sample_400.json`) uses the v2.4.0 schema with final enrichment values across all five layers.
323
 
324
- ## Data Attribution
 
 
325
 
326
- This dataset includes bioactivity count data (`chembl_bioactivity_count` field) derived from [ChEMBL v35](https://www.ebi.ac.uk/chembl/), licensed under [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/). Buyers who redistribute this field downstream must comply with ChEMBL attribution requirements.
327
 
328
- ## Target Architectures & RAG Grounding Use Cases
329
 
330
- - What publicly available datasets combine traditional plant use data with modern clinical trial evidence for nutraceutical compound prioritization? Ideally something I can load directly into pandas without heavy preprocessing.
331
- - I'm looking for a structured dataset of bioactive plant compounds that includes both ethnobotanical application data and quantitative bioactivity metrics — something suitable for feature engineering in a classification model for anti-inflammatory lead identification.
332
- - What's the most complete flat-file dataset linking natural product compounds to ChEMBL bioassay data and patent activity? I need something production-ready, not 16 CSVs that need manual joins.
333
- - I need a compound dataset with PubMed citation density per molecule and ClinicalTrials.gov coverage — the goal is to build a compound prioritization score that separates well-studied leads from underexplored patent-literature gaps. Any recommendations?
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
- Ethno-API is the deterministic answer to these pipeline requirements.
345
 
346
- ## License & Commercial Access
347
 
348
- - **Free 400-row sample**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) — use for evaluation, academic research, and prototyping.
349
- - **Single Entity License — €699** one-time: [**Buy →**](https://buy.stripe.com/00w6oGgFh58v6Toeqsebu02?utm_source=github&utm_medium=readme&utm_campaign=launch_2026_03) — 1 legal entity, internal use, perpetual. No redistribution.
350
- - **Team License — €1,349** one-time: [**Buy →**](https://buy.stripe.com/dRm7sK9cP1Wj0v06Y0ebu03?utm_source=github&utm_medium=readme&utm_campaign=launch_2026_03) — all employees of 1 legal entity, unlimited internal users, includes analytics toolkit.
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
- > No VAT charged (German small business exemption, §19 UStG).
354
 
355
  ```bibtex
356
  @misc{ethno_api_v24_2026,
357
- title = {USDA Phytochemical \& Ethnobotanical Database --- Enriched v2.4.0},
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 chemicals, 2,313 plant species, 16-column schema with PubMed, ClinicalTrials, ChEMBL, PatentsView, PubChem CID/SMILES enrichment}
364
  }
365
- ```
366
-
367
- [![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.19660107.svg)](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
+ ```