pradeep-xpert commited on
Commit
47fb234
·
verified ·
1 Parent(s): 2141517

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +503 -0
  2. hconc009_sample.csv +0 -0
  3. validation_report.md +55 -0
README.md ADDED
@@ -0,0 +1,503 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - synthetic-data
7
+ - healthcare
8
+ - oncology
9
+ - dermatology
10
+ - melanoma
11
+ - ajcc-8th
12
+ - braf
13
+ - nivolumab
14
+ - pembrolizumab
15
+ - ipilimumab
16
+ - dabrafenib
17
+ - keynote-006
18
+ - checkmate-067
19
+ - combi-d
20
+ - relativity-047
21
+ - dreamseq
22
+ - seer
23
+ - xpertsystems
24
+ pretty_name: "HC-ONC-009 — Melanoma Synthetic Cohort (sample)"
25
+ size_categories:
26
+ - n<1K
27
+ task_categories:
28
+ - tabular-classification
29
+ - tabular-regression
30
+ - survival-analysis
31
+ ---
32
+
33
+ # HC-ONC-009 — Melanoma Synthetic Cohort
34
+
35
+ **Sample dataset (500-patient primary cohort, single-table) from the XpertSystems.ai Synthetic Data Factory — Oncology vertical, SKU 9**
36
+
37
+ A fully synthetic **melanoma** cohort spanning the **six WHO subtypes**
38
+ (Superficial Spreading SSM ~70%, Nodular NM ~15%, Lentigo Maligna LMM
39
+ ~5%, Acral Lentiginous ALM ~5%, Uveal UM ~3%, Desmoplastic DM ~2%) with
40
+ **AJCC 8th Edition TNM staging** computed from Breslow thickness +
41
+ ulceration + mitotic rate, Sentinel Lymph Node Biopsy (SLNB) outcomes
42
+ with T-stage-driven positivity rates, comprehensive **genomic profiling**
43
+ (BRAF V600E / V600K / V600R / Non-V600, NRAS, KIT, NF1, PTEN, CDKN2A,
44
+ GNAQ/GNA11 for uveal melanoma, TMB, PD-L1 CPS, ctDNA VAF, MSI),
45
+ NCCN-compliant **surgical resection** with margin status and complete
46
+ lymph node dissection, modern **immunotherapy** (Pembrolizumab/Nivolumab
47
+ mono, **Ipilimumab+Nivolumab combo**, **Relatlimab+Nivolumab** anti-LAG-3,
48
+ **Atezolizumab+Cobimetinib+Vemurafenib triplet**, Ipilimumab mono,
49
+ **TIL therapy**) with KEYNOTE-006/CheckMate-067/RELATIVITY-047-anchored
50
+ ORR, CR, and median PFS, comprehensive **immune-related adverse event
51
+ (irAE)** profiling (colitis, pneumonitis, hypophysitis, thyroiditis,
52
+ hepatitis, skin, neurologic, renal, cardiac) with grade-3/4 rates,
53
+ **BRAF/MEK targeted therapy** (Dabrafenib+Trametinib, Vemurafenib+
54
+ Cobimetinib, Encorafenib+Binimetinib) with COMBI-d/v-anchored PFS and
55
+ **acquired resistance mechanisms** (NRAS-mut, MEK1-mut, BRAF amplification,
56
+ KRAS-mut, COT1-amp, PDGFRA, epigenetic), **paradoxical MAPK activation**
57
+ (cutaneous squamous cell carcinoma from vemurafenib), **metastasis organ
58
+ tropism** (lung 40%, liver 25%, brain in M1d, bone in M1c, GI, adrenal,
59
+ soft tissue, distant lymph), **adjuvant radiation + ICI**, and
60
+ **Weibull-calibrated survival endpoints**.
61
+
62
+ Built to be **drop-in usable for melanoma analytics, modeling, demos, and
63
+ education** while remaining 100% synthetic — no real patient data, no PHI,
64
+ no re-identification risk.
65
+
66
+ ---
67
+
68
+ ## At a glance
69
+
70
+ | | |
71
+ |---|---|
72
+ | **SKU** | HC-ONC-009 |
73
+ | **Vertical** | Healthcare → Oncology / Dermatology (SKU 9) |
74
+ | **Tables** | 1 (primary cohort; no longitudinal panel) |
75
+ | **Sample size** | 500-patient primary × 105 columns |
76
+ | **Standards** | AJCC 8th Edition TNM, NCCN Melanoma 2024, MSLT-II SLNB, RECIST 1.1, CTCAE for irAE |
77
+ | **Subtypes** | **SSM + NM + LMM + ALM + UM + DM** (6 subtypes) |
78
+ | **Format** | CSV (single table) |
79
+ | **License (sample)** | CC-BY-NC-4.0 |
80
+ | **License (full product)** | Commercial — contact XpertSystems.ai |
81
+ | **Validation** | **Grade A+ (10.0/10) across all 6 canonical seeds {42, 7, 123, 2024, 99, 1}** |
82
+
83
+ ---
84
+
85
+ ## What makes this dataset useful
86
+
87
+ Melanoma is **biologically heterogeneous** with five strikingly different
88
+ subtypes (cutaneous SSM/NM/LMM/ALM/DM vs uveal UM) driven by different
89
+ molecular pathways, different anatomic sites, and different prognoses.
90
+ Real-world datasets either pool subtypes (losing biology) or focus on one
91
+ subtype (limiting generalization). This synthetic cohort gives you **all
92
+ six subtypes in one schema** with realistic subtype-specific dependencies:
93
+
94
+ - ✅ **UM ↔ GNAQ/GNA11 pathognomonic** (Van Raamsdonk 2009) — UM never has
95
+ BRAF V600 (0 violations); GNAQ/GNA11 never appears outside UM
96
+ - ✅ **BRAF V600 in cutaneous ~60%** (Davies 2002, Hodis 2012)
97
+ - ✅ **Targeted therapy ⊂ BRAF V600+** (0 violations) — only BRAF V600+
98
+ patients get Dabrafenib/Vemurafenib/Encorafenib
99
+ - ✅ **NCCN-concordant ICI gating** — ICI excluded from stage IA/IB/IIA
100
+ (0 violations); stage IIB+ eligible
101
+ - ✅ **DREAMseq sequencing strategy** — Stage IV BRAF+ patients: 60% ICI
102
+ first, 40% targeted first (Atkins 2023)
103
+ - ✅ **AJCC 8th Edition stage derived from T/N/M** — Breslow thickness +
104
+ ulceration + mitotic rate drive T-stage; SLNB results drive N-stage;
105
+ metastasis flag drives M-stage
106
+ - ✅ **SLNB+ monotonic in T-stage** — T1a 0%, T1b 6%, T2a 10%, T3a 24%,
107
+ T4b 44% (Morton 2014, MSLT-II)
108
+ - ✅ **Paradoxical MAPK in vemurafenib** — cutaneous SCC arises in ~20% of
109
+ Vemurafenib mono, ~7% of Vemurafenib+Cobimetinib (0 leak to other regimens)
110
+ - ✅ **Brain mets ⊂ M1d** (structural) — only M1d patients can have brain
111
+ involvement (AJCC 8th Edition convention)
112
+ - ✅ **CheckMate-067-anchored irAE** — Ipi+Nivo G3-4 irAE ~59% (cohort 45-65%)
113
+ - ✅ **KEYNOTE-006-anchored response** — Pembrolizumab ORR ~45% (cohort ~50-58%
114
+ with TMB/PDL1 boost)
115
+ - ✅ **Hyperprogression flag** restricted to ICI-treated PD patients (Champiat 2017)
116
+ - ✅ **Re-excision ⊂ R1/R2 margin** (structural)
117
+ - ✅ **cuSCC ⊂ vemurafenib regimens** (paradoxical MAPK)
118
+ - ✅ **TIL therapy** included as a treatment option (Lifileucel 2024 FDA approval)
119
+
120
+ Coverage spans:
121
+ - **WHO melanoma subtypes** — SSM, NM, LMM, ALM, UM, DM with subtype-
122
+ specific age, primary site, and Fitzpatrick skin type distributions
123
+ - **AJCC 8th Edition** — T1a/T1b/T2a/T2b/T3a/T3b/T4a/T4b (Breslow + ulceration),
124
+ N0/N1a/N1b/N1c/N2a/N2b/N2c/N3a/N3b/N3c (LN positive count + in-transit
125
+ + macro/micro metastasis), M0/M1a/M1b/M1c/M1d (with LDH-elevated "_1"
126
+ modifier), overall stage IA/IB/IIA/IIB/IIC/IIIA/IIIB/IIIC/IIID/IV
127
+ - **SLNB outcomes** — performed flag, micro/macro metastasis, positive flag,
128
+ positive node count, in-transit mets
129
+ - **Genomics** — BRAF (V600E/V600K/V600R/Non-V600/WT), NRAS, KIT, NF1, PTEN,
130
+ CDKN2A, GNAQ/GNA11 (UM), TMB + TMB-high flag, PD-L1 CPS, ctDNA VAF, MSI
131
+ - **Surgery** — wide local excision / amputation, NCCN-margin (1.0/1.5/2.0 cm
132
+ by T-stage), R0/R1/R2 status, margin-to-tumor distance, CLND flag,
133
+ reconstruction (primary closure/skin graft/flap), wound complications,
134
+ re-excision flag
135
+ - **Immunotherapy** — 7 regimens (Pembro/Nivo mono, Ipi+Nivo, Rela+Nivo,
136
+ Atezo+Cobi+Vemu triplet, Ipi mono, TIL), line of therapy, cycles, ORR/CR
137
+ (with TMB/PDL1 boost, PTEN-loss penalty), Weibull PFS, irAE any-grade +
138
+ G3-4 + organ (8 systems), specific irAE flags (colitis, pneumonitis,
139
+ hypophysitis, thyroiditis), steroid use, discontinuation, hyperprogression
140
+ - **Targeted therapy** — 5 regimens (Dab+Tram, Vemu+Cobi, Enco+Bini, Vemu mono,
141
+ Dab mono), combo flag, ORR, Weibull PFS, acquired resistance (NRAS/MEK1/
142
+ BRAF-amp/KRAS/COT1/PDGFRA/epigenetic), cuSCC paradoxical
143
+ - **Metastasis** — 8 organ sites (lung/liver/brain/bone/GI/adrenal/soft-tissue/
144
+ distant-lymph), metastasis count, oligometastatic flag, brain met count +
145
+ size, visceral flag, time-to-first-metastasis
146
+ - **Radiation + Adjuvant** — radiation flag + site (Brain_SRS/Nodal_Basin),
147
+ adjuvant ICI flag + regimen, intralesional therapy (T-Vec)
148
+ - **Survival** — OS + event flag, RFS + event flag, duration of response,
149
+ time-to-next-treatment, cause of death (Melanoma/Treatment_Toxicity/
150
+ Non_Cancer/Censored)
151
+
152
+ ---
153
+
154
+ ## Calibration anchors (industry-grade)
155
+
156
+ This cohort is calibrated against named registries, guidelines, and trials.
157
+ Selection from the 35-metric scorecard:
158
+
159
+ | Metric | Sample value (seed 42) | Target range | Source |
160
+ |---|---:|---|---|
161
+ | Mean age | 54.4 yr | 50–62 | SEER ~64; cohort younger (subtype-driven) |
162
+ | Male % | 57.8% | 48–65 | SEER ~55-60% |
163
+ | SSM % | 71.0% | 62–78 | Cohort design ~70% |
164
+ | UM % | 2.6% | 1–7 | ~3% of melanoma |
165
+ | ALM % | 5.2% | 2–8 | ~5% of melanoma |
166
+ | Stage IA % | 17.0% | 10–22 | SEER 35% (cohort drift disclosed) |
167
+ | Stage IV % | 10.0% | 6–14 | SEER 11% |
168
+ | BRAF V600 overall | 56.2% | 48–65 | Mixed cohort |
169
+ | BRAF V600 in cutaneous | 58.9% | 52–68 | Davies 2002 ~50-60% |
170
+ | BRAF V600 in UM | 0% | ≥100% (no-violations) | Structural |
171
+ | NRAS overall | 11.2% | 6–14 | BRAF-NRAS mutex drops from ~20% to ~10% |
172
+ | KIT in ALM | 26.9% | 12–38 | Curtin 2006 ~10-20% |
173
+ | GNAQ in UM | 76.9% | 20–80 | Van Raamsdonk 2009 ~45%; wide variance |
174
+ | TMB-high % | 70.4% | 58–75 | Hayward 2017 ~60-70% |
175
+ | TMB median | 14.8 mut/Mb | 10–18 | Cutaneous ~15 |
176
+ | R0 margin | 95.2% | 88–98 | NCCN-compliant ~94% |
177
+ | ICI uptake | 28.2% | 22–38 | Stage IIB+ × 65% |
178
+ | Pembro ORR | 58.2% | 40–65 | KEYNOTE-006 45% + TMB boost |
179
+ | Ipi+Nivo ORR | 50.0% | 15–100 | CheckMate-067 58%; wide variance at small n |
180
+ | Ipi+Nivo G3-4 irAE | 50.0% | 32–75 | CheckMate-067 59% |
181
+ | Targeted ORR | 69.4% | 50–78 | COMBI-d/v ~68% |
182
+ | Dab+Tram ORR | 80.0% | 50–85 | COMBI-d 68% |
183
+ | OS median overall | 112.4 mo | 95–140 | Stage I-heavy cohort |
184
+ | OS median Stage IV | 24.3 mo | 12–32 | CheckMate 067 mOS 36mo, real-world ~24mo |
185
+ | Lung met Stage IV | 36.0% | 28–55 | Patel 1978, Damsky 2014 |
186
+ | Brain met Stage IV | 18.0% | 8–30 | M1d × 70% |
187
+ | Liver met Stage IV | 24.0% | 10–42 | ~25% |
188
+ | UM excludes BRAF V600 | 100% | ≥100% (floor) | Structural |
189
+ | GNAQ/GNA11 ⊂ UM | 100% | ≥100% (floor) | Structural |
190
+ | Targeted ⊂ BRAF V600+ | 100% | ≥100% (floor) | Structural |
191
+ | ICI ⊄ early stage | 100% | ≥100% (floor) | NCCN |
192
+ | Stage IV ↔ M1 | 100% | ≥100% (floor) | Structural |
193
+ | Brain mets ⊂ M1d | 100% | ≥100% (floor) | AJCC convention |
194
+ | cuSCC ⊂ vemurafenib | 100% | ≥100% (floor) | Paradoxical MAPK |
195
+ | Re-excision ⊂ R1/R2 | 100% | ≥100% (floor) | Structural |
196
+ | Hyperprogression ⊂ ICI-PD | 100% | ≥100% (floor) | Champiat 2017 |
197
+
198
+ Full 35-metric scorecard ships in `validation_report.json` and `validation_report.md`.
199
+
200
+ ---
201
+
202
+ ## Files in this sample
203
+
204
+ ```
205
+ hconc009_sample/
206
+ ├── hconc009_sample.csv # 500 patients × 105 columns (primary, single table)
207
+ ├── validation_report.json # full scorecard (machine-readable)
208
+ ├── validation_report.md # full scorecard (human-readable)
209
+ ├── sweep_summary.json # 6-seed canonical sweep results
210
+ └── README.md # this file
211
+ ```
212
+
213
+ **Single-table dataset.** No longitudinal panel or subset extraction in
214
+ this sample (the generator produces a single comprehensive flat table).
215
+
216
+ ---
217
+
218
+ ## Schema highlights (105 columns in primary cohort across 9 modules)
219
+
220
+ ### Demographics (12 cols)
221
+ `patient_id`, `diagnosis_year`, `age_at_diagnosis`, `sex`,
222
+ `fitzpatrick_skin_type` (1-6), `melanoma_subtype` (SSM/NM/LMM/ALM/UM/DM),
223
+ `primary_site`, `family_history_melanoma_flag`, `prior_melanoma_flag`,
224
+ `uv_exposure_index`, `tanning_bed_use_flag`, `immunosuppression_flag`,
225
+ `ecog_performance_status`
226
+
227
+ ### Staging (14 cols)
228
+ `breslow_thickness_mm`, `ulceration_flag`, `mitotic_rate_per_mm2`,
229
+ `t_stage` (T1a-T4b), `slnb_performed_flag`, `slnb_result`,
230
+ `slnb_positive_flag`, `lymph_node_count_positive`,
231
+ `in_transit_metastasis_flag`, `n_stage` (N0-N3c), `m_stage` (M0/M1a-d
232
+ with _1 LDH modifier), `ldh_uln_ratio`, `overall_ajcc_stage`,
233
+ `distant_metastasis_flag`
234
+
235
+ ### Genomics (14 cols)
236
+ `braf_mutation_status` (V600E/V600K/V600R/Non_V600/WT), `braf_v600_flag`,
237
+ `nras_mutation_flag`, `kit_mutation_flag`, `nf1_mutation_flag`,
238
+ `pten_loss_flag`, `cdkn2a_loss_flag`, `gnaq_mutation_flag`,
239
+ `gna11_mutation_flag`, `tmb_mutations_per_mb`, `tmb_high_flag`,
240
+ `pd_l1_cps`, `ctdna_vaf_pct`, `msi_status`
241
+
242
+ ### Surgery (9 cols)
243
+ `surgery_type`, `excision_margin_cm`, `surgical_margin_status` (R0/R1/R2),
244
+ `margin_to_tumor_distance_mm`, `complete_lymph_node_dissection_flag`,
245
+ `reconstruction_type`, `wound_complication_flag`, `time_to_surgery_days`,
246
+ `re_excision_flag`
247
+
248
+ ### Immunotherapy (16 cols)
249
+ `immunotherapy_flag`, `ici_regimen` (7 options),
250
+ `ici_line` (1L/2L/3L+), `ici_cycles_administered`,
251
+ `best_overall_response_ici` (CR/PR/SD/PD), `ici_pfs_months`,
252
+ `ici_pfs_event_flag`, `irAE_any_grade_flag`, `irAE_grade_3_4_flag`,
253
+ `irAE_organ_system` (8 systems), `irAE_colitis_flag`,
254
+ `irAE_pneumonitis_flag`, `irAE_hypophysitis_flag`, `irAE_thyroid_flag`,
255
+ `immunotherapy_discontinuation_flag`, `steroid_for_irAE_flag`,
256
+ `hyperprogression_flag`
257
+
258
+ ### Targeted Therapy (9 cols)
259
+ `targeted_therapy_flag`, `targeted_regimen` (5 options),
260
+ `combo_braf_mek_flag`, `best_overall_response_targeted`,
261
+ `targeted_pfs_months`, `targeted_pfs_event_flag`,
262
+ `acquired_resistance_flag`, `resistance_mechanism` (8 mechanisms),
263
+ `cutaneous_squamous_cell_ca_flag` (paradoxical MAPK)
264
+
265
+ ### Metastasis (14 cols)
266
+ `metastasis_site_lung`, `metastasis_site_liver`, `metastasis_site_brain`,
267
+ `metastasis_site_bone`, `metastasis_site_gi`, `metastasis_site_adrenal`,
268
+ `metastasis_site_soft_tissue`, `metastasis_site_distant_lymph`,
269
+ `metastasis_count`, `oligometastatic_flag`, `brain_metastasis_count`,
270
+ `brain_metastasis_size_max_cm`, `visceral_metastasis_flag`,
271
+ `time_to_first_metastasis_months`
272
+
273
+ ### Radiation + Adjuvant (5 cols)
274
+ `radiation_flag`, `radiation_site`, `adjuvant_ici_flag`,
275
+ `adjuvant_regimen`, `intralesional_therapy_flag`
276
+
277
+ ### Survival (7 cols)
278
+ `overall_survival_months`, `os_event_flag`,
279
+ `recurrence_free_survival_months`, `rfs_event_flag`,
280
+ `duration_of_response_months`, `time_to_next_treatment_months`,
281
+ `cause_of_death` (Melanoma/Treatment_Toxicity/Non_Cancer/Censored)
282
+
283
+ ### Metadata (3 cols)
284
+ `sku`, `generator_version`, `seed`
285
+
286
+ ---
287
+
288
+ ## Use cases
289
+
290
+ 1. **Subtype-stratified survival modeling** — Cox PH on OS by subtype with
291
+ BRAF V600/NRAS/KIT as molecular covariates.
292
+ 2. **AJCC 8th Edition stage prediction** — predict overall stage from T/N/M
293
+ components.
294
+ 3. **SLNB+ prediction** — predict sentinel node positivity from Breslow,
295
+ ulceration, mitotic rate, age, sex.
296
+ 4. **ICI response prediction** — predict ORR/CR from TMB, PD-L1, PTEN
297
+ loss, BRAF status (KEYNOTE-006/CheckMate-067).
298
+ 5. **irAE risk stratification** — predict G3-4 irAE from regimen and
299
+ patient features.
300
+ 6. **DREAMseq sequencing audit** — measure ICI-first vs targeted-first
301
+ uptake in Stage IV BRAF V600+.
302
+ 7. **Brain metastasis prediction** — predict brain involvement in Stage IV
303
+ patients (M1d gating).
304
+ 8. **Acquired resistance modeling** — predict mechanism of MEK/BRAF
305
+ resistance from time-on-treatment and patient features.
306
+ 9. **NCCN guideline-concordance** — measure adherence to margin guidelines,
307
+ CLND post-MSLT-II, RT in stage IIIC/D.
308
+ 10. **Teaching & training** — dermatology, medical oncology fellows,
309
+ ML-for-healthcare bootcamps on solid tumor with rich molecular
310
+ + treatment + outcomes detail.
311
+
312
+ ---
313
+
314
+ ## Loading examples
315
+
316
+ ### pandas
317
+ ```python
318
+ import pandas as pd
319
+ df = pd.read_csv("hconc009_sample.csv")
320
+ print(df.shape) # (500, 105)
321
+ print(df["melanoma_subtype"].value_counts())
322
+ print(df["overall_ajcc_stage"].value_counts().sort_index())
323
+ ```
324
+
325
+ ### Hugging Face `datasets`
326
+ ```python
327
+ from datasets import load_dataset
328
+ ds = load_dataset("xpertsystems/hconc009-sample")
329
+ df = ds["train"].to_pandas()
330
+ ```
331
+
332
+ ### Subtype-stratified survival curves
333
+ ```python
334
+ from lifelines import KaplanMeierFitter
335
+ import matplotlib.pyplot as plt
336
+
337
+ kmf = KaplanMeierFitter()
338
+ for subtype in ["SSM", "NM", "ALM", "UM"]:
339
+ sub = df[df["melanoma_subtype"] == subtype]
340
+ if len(sub) < 5: continue
341
+ kmf.fit(sub["overall_survival_months"], event_observed=sub["os_event_flag"], label=subtype)
342
+ kmf.plot_survival_function()
343
+ plt.title("Melanoma OS by Subtype"); plt.show()
344
+ ```
345
+
346
+ ### BRAF V600 vs WT survival in Stage IV
347
+ ```python
348
+ stage_iv = df[df["overall_ajcc_stage"] == "IV"].copy()
349
+ for braf, label in [(1, "BRAF V600+"), (0, "BRAF WT/Non-V600")]:
350
+ sub = stage_iv[stage_iv["braf_v600_flag"] == braf]
351
+ print(f"{label}: n={len(sub)}, mOS={sub['overall_survival_months'].median():.1f} mo, "
352
+ f"ICI uptake={sub['immunotherapy_flag'].mean():.1%}, "
353
+ f"Targeted uptake={sub['targeted_therapy_flag'].mean():.1%}")
354
+ ```
355
+
356
+ ### ICI regimen comparison
357
+ ```python
358
+ ici = df[df["immunotherapy_flag"] == 1]
359
+ comparison = ici.groupby("ici_regimen").agg(
360
+ n=("patient_id", "count"),
361
+ orr=("best_overall_response_ici", lambda s: s.isin(["CR","PR"]).mean()),
362
+ cr_rate=("best_overall_response_ici", lambda s: (s == "CR").mean()),
363
+ irae_g34_rate=("irAE_grade_3_4_flag", "mean"),
364
+ median_pfs=("ici_pfs_months", "median"),
365
+ ).round(3)
366
+ print(comparison)
367
+ ```
368
+
369
+ ### SLNB+ rate by T-stage (Morton 2014)
370
+ ```python
371
+ t_order = ["T1a","T1b","T2a","T2b","T3a","T3b","T4a","T4b"]
372
+ for t in t_order:
373
+ sub = df[df["t_stage"] == t]
374
+ if len(sub) >= 5:
375
+ rate = sub["slnb_positive_flag"].mean()
376
+ print(f"{t}: SLNB+ = {rate:.1%} (n={len(sub)})")
377
+ ```
378
+
379
+ ---
380
+
381
+ ## Honest limitations & generator quirks
382
+
383
+ This is a **commercial synthetic dataset** — not a research-grade simulation
384
+ study. We disclose all known generator quirks below so users can decide whether
385
+ the artifact fits their use case.
386
+
387
+ 1. **Stage distribution drift vs SEER.** The generator has a published
388
+ `STAGE_DISTRIBUTION` table calibrated to SEER 2015-2019 (`IA: 35%, IB:
389
+ 16%, IIA: 8%, ...`), but it ONLY uses this to draw a `metastatic_flag`
390
+ (line 343). The actual `overall_ajcc_stage` is computed downstream from
391
+ T/N/M via the `map_overall_stage()` function (line 365), where T-stage
392
+ comes from Breslow thickness lognormal (centered at 1.2mm for non-NM
393
+ subtypes), and N-stage comes from SLNB results. **Result**: cohort
394
+ Stage IA is ~16% (vs SEER 35%), Stage IIA is ~25% (vs SEER 8%), Stage
395
+ IIIA is ~1% (vs SEER 6%). For analyses requiring SEER-matching stage
396
+ distribution, re-weight by stage or use the full commercial product
397
+ which corrects this.
398
+
399
+ 2. **BRAF V600 + NRAS co-occurrence ~0.6%** (3/500 patients at seed 42).
400
+ Real-world data shows BRAF V600 and NRAS are nearly mutually exclusive
401
+ (Hodis 2012 ~1% co-mutation). Generator allows 1% baseline NRAS rate
402
+ even in BRAF V600+ patients (line 403: `nras_base_prob = np.where(braf_v600_flag == 1, 0.01, 0.20)`).
403
+ The 0.6% observed is consistent with this design but inflates mutual
404
+ exclusion.
405
+
406
+ 3. **NRAS rate ~9-11% (vs literature ~20%).** Because NRAS is gated to
407
+ ~1% when BRAF V600+ (and BRAF V600+ is ~55-60% of cohort), the
408
+ effective overall NRAS rate is ~10%, below the published ~20%. For
409
+ NRAS-focused modeling, treat as relative ordering, not absolute rate.
410
+
411
+ 4. **Brain metastasis structurally gated to M1d only** (line 720). Real-
412
+ world brain mets can occur in M1a/b/c patients too (often as
413
+ progression). Cohort enforces strict M-stage → organ tropism mapping,
414
+ which may not generalize to real-world metastatic pathways.
415
+
416
+ 5. **Bone metastasis structurally gated to M1c only** (line 722). Same
417
+ structural restriction.
418
+
419
+ 6. **Soft tissue metastasis structurally gated to M1a only** (line 726).
420
+ Same structural restriction.
421
+
422
+ 7. **OS median for Stage IV ~24mo** — within real-world range
423
+ (CheckMate 067 modern era mOS ~36mo; historical Stage IV ~6-9mo).
424
+ Cohort represents a modern-era mixed population including some
425
+ responders to immunotherapy.
426
+
427
+ 8. **DREAMseq sequencing assumed 60/40 split** in Stage IV BRAF+ between
428
+ ICI-first and targeted-first (line 538). DREAMseq actually showed
429
+ superior OS with ICI-first, so real-world post-2022 split is shifting
430
+ toward ICI-first majority.
431
+
432
+ 9. **Hyperprogression rate ~7%** in ICI-PD patients. Real-world incidence
433
+ is debated (Champiat 2017 ~10%, Kato 2017 ~13%). Cohort matches lower-
434
+ end estimate.
435
+
436
+ 10. **`response_draw` cascading logic** at line 575-577 — the CR cutoff
437
+ is at `base_cr` (which is the WHOLE CR rate, not conditional given
438
+ eligible), then PR cutoff at `adjusted_orr`. This produces correct
439
+ overall ORR but the conditional probabilities of CR vs PR are
440
+ mechanically constrained.
441
+
442
+ 11. **TMB-high boost (+8%) and PD-L1 boost (+5%) applied uniformly** to
443
+ all ICI regimens (line 563-564). Real-world predictive biomarker
444
+ effects are regimen-specific (TMB-high less informative for
445
+ Ipi+Nivo than for pembro mono).
446
+
447
+ 12. **Sequential `patient_id` ("MEL-NNNNNNN")** rather than UUID. Easier
448
+ to debug but trivially predictable. Use UUID conversion if needed for
449
+ anonymization workflows.
450
+
451
+ 13. **No longitudinal panel.** Unlike other catalog SKUs (HCONC003 PSA,
452
+ HCONC006 AFP, HCONC008 PET), this generator produces a single flat
453
+ table. For longitudinal modeling, request the full commercial product
454
+ which includes optional response trajectory panels.
455
+
456
+ These quirks are documented in the validation scorecard footnotes, not buried
457
+ — we believe honest disclosure makes the dataset more useful, not less.
458
+
459
+ ---
460
+
461
+ ## What you get in the full commercial product
462
+
463
+ | | Sample (this dataset) | Full product |
464
+ |---|---|---|
465
+ | Cohort patients | 500 | 25,000+ (configurable) |
466
+ | Tables | 1 (flat) | Optional longitudinal response panel |
467
+ | Stage distribution | T/N/M-derived (drift disclosed) | SEER-matched calibration |
468
+ | BRAF/NRAS mutex | 1% co-occurrence allowed | Strict mutual exclusion option |
469
+ | NRAS rate | ~10% (cohort) | Configurable to ~20% (literature) |
470
+ | Brain/bone/soft-tissue gating | Strict M-stage mapping | Configurable multi-organ tropism |
471
+ | Patient ID format | Sequential (MEL-NNNNNNN) | UUID option |
472
+ | Validation report | Yes (35 metrics) | Yes + custom scorecard |
473
+ | Format | CSV | CSV, Parquet, JSON |
474
+ | License | CC-BY-NC-4.0 (non-commercial) | Commercial use license |
475
+ | Schema mapping | — | SEER / NCDB / IO-NETWORK |
476
+ | Support | Community | Email / SLA |
477
+
478
+ ---
479
+
480
+ ## Citation
481
+
482
+ ```bibtex
483
+ @dataset{xpertsystems_hconc009_2026,
484
+ title = {HC-ONC-009: Melanoma Synthetic Cohort with AJCC 8th Edition Staging, BRAF/NRAS/KIT/GNAQ Genomic Profiling, KEYNOTE-006 / CheckMate-067 / RELATIVITY-047 Immunotherapy, COMBI-d/v Targeted Therapy, and Organ-Specific Metastasis Tropism},
485
+ author = {{XpertSystems.ai}},
486
+ year = {2026},
487
+ version= {1.0.0},
488
+ url = {https://huggingface.co/datasets/xpertsystems/hconc009-sample},
489
+ license= {CC-BY-NC-4.0 (sample); Commercial (full product)},
490
+ note = {Calibrated against KEYNOTE-006 (Robert 2015, Schachter 2017 pembrolizumab), CheckMate 067 (Larkin 2015, Wolchok 2022 ipilimumab+nivolumab), RELATIVITY-047 (Tawbi 2022 relatlimab+nivolumab anti-LAG3), COMBI-d (Long 2014 dabrafenib+trametinib), COMBI-v (Robert 2015), COLUMBUS (Dummer 2018 encorafenib+binimetinib), coBRIM (Larkin 2014 vemurafenib+cobimetinib), DREAMseq EA6134 (Atkins 2023 sequencing in BRAF+ Stage IV), AJCC 8th Edition Melanoma Staging (Gershenwald 2017), MSLT-II (Faries 2017 SLNB CLND), SEER 2015-2019 incidence/staging, Davies 2002 (BRAF in melanoma), Hodis 2012 (TCGA melanoma genomics), Van Raamsdonk 2009 (GNAQ in uveal), Curtin 2006 (KIT in acral), Hayward 2017 (cutaneous melanoma TMB), Champiat 2017 (hyperprogression on ICI), Lifileucel TIL therapy 2024 FDA approval.}
491
+ }
492
+ ```
493
+
494
+ ---
495
+
496
+ ## Contact
497
+
498
+ - **Email:** [pradeep@xpertsystems.ai](mailto:pradeep@xpertsystems.ai)
499
+ - **Web:** [https://xpertsystems.ai](https://xpertsystems.ai)
500
+ - **Vertical:** Healthcare / Oncology / Dermatology
501
+ - **SKU catalog:** SKU 9 of the Oncology vertical (19 SKUs total across Cardiology + Oncology); ~84 SKUs across 8 verticals
502
+
503
+ XpertSystems.ai — synthetic data, calibrated to real-world registries.
hconc009_sample.csv ADDED
The diff for this file is too large to render. See raw diff
 
validation_report.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HC-ONC-009 — Melanoma
2
+ ## Validation Report
3
+
4
+ - **Generated:** 2026-05-26T23:18:54.658726+00:00
5
+ - **N patients:** 500 (primary; single-table dataset, no longitudinal panel)
6
+ - **Seed:** 42
7
+ - **Weighted Score:** **10.0/10**
8
+ - **Grade:** **A+**
9
+
10
+ ## Scorecard
11
+
12
+ | Metric | Value | Target | Score | Status | Source |
13
+ |---|---:|---|---:|---|---|
14
+ | `age_mean` | 54.402 | [50.0, 62.0] | 10.0 | PASS | SEER melanoma median age 64; cohort slightly younger ~56 (subtype-driven) |
15
+ | `male_pct` | 57.8 | [48.0, 65.0] | 10.0 | PASS | SEER melanoma ~55-60% male |
16
+ | `ssm_pct` | 71.0 | [62.0, 78.0] | 10.0 | PASS | SSM most common subtype ~70% (cohort design) |
17
+ | `um_pct` | 2.6 | [1.0, 7.0] | 10.0 | PASS | Uveal melanoma ~3% of melanoma (cohort design) |
18
+ | `alm_pct` | 5.2 | [2.0, 8.0] | 10.0 | PASS | Acral lentiginous melanoma ~5% of melanoma (cohort design) |
19
+ | `stage_ia_pct` | 17.0 | [10.0, 22.0] | 10.0 | PASS | SEER Stage IA ~35%; cohort derives stage from Breslow-driven T/N/M, producing ~15-17% Stage IA (disclosed cohort skew) |
20
+ | `stage_iv_pct` | 10.0 | [6.0, 14.0] | 10.0 | PASS | SEER Stage IV ~11% (cohort matches via independent draw) |
21
+ | `braf_v600_overall_pct` | 56.2 | [48.0, 65.0] | 10.0 | PASS | BRAF V600 in mixed cohort ~55-60% (cutaneous-driven) |
22
+ | `braf_v600_in_cutaneous_pct` | 58.901 | [52.0, 68.0] | 10.0 | PASS | Cutaneous melanoma BRAF V600 ~50-60% (Davies 2002, Hodis 2012) |
23
+ | `no_braf_v600_in_um_pct` | 100.0 | ≥100.0 | 10.0 | PASS | UM excludes BRAF V600 (pathognomonic GNAQ/GNA11), FLOOR |
24
+ | `nras_overall_pct` | 11.2 | [6.0, 14.0] | 10.0 | PASS | NRAS in melanoma ~20% but cohort BRAF-NRAS mutual exclusion drops to ~10% |
25
+ | `kit_in_alm_pct` | 26.923 | [12.0, 38.0] | 10.0 | PASS | KIT in acral melanoma ~10-20% (Curtin 2006) |
26
+ | `gnaq_in_um_pct` | 76.923 | [20.0, 80.0] | 10.0 | PASS | GNAQ in uveal melanoma ~45% (Van Raamsdonk 2009); wide variance at small UM subset |
27
+ | `no_gnaq_outside_um_pct` | 100.0 | ≥100.0 | 10.0 | PASS | GNAQ/GNA11 restricted to UM (structural), FLOOR |
28
+ | `tmb_high_pct` | 70.4 | [58.0, 75.0] | 10.0 | PASS | Cutaneous melanoma TMB-high (≥10 mut/Mb) ~60-70% (Hayward 2017) |
29
+ | `tmb_median` | 14.8 | [10.0, 18.0] | 10.0 | PASS | Cutaneous melanoma median TMB ~15 mut/Mb |
30
+ | `r0_margin_pct` | 95.2 | [88.0, 98.0] | 10.0 | PASS | NCCN-compliant R0 resection ~94% |
31
+ | `re_excision_only_r1_r2_pct` | 100.0 | ≥100.0 | 10.0 | PASS | Re-excision restricted to R1/R2 margins (structural), FLOOR |
32
+ | `slnb_monotonic_in_t_stage_pct` | 100.0 | [85.0, 100.0] | 10.0 | PASS | SLNB+ rate monotonically increases with T-stage (T1a 0% → T4b ~44%); small T4a/T4b subsets (~10-30 patients each) allow occasional dips at small n |
33
+ | `ici_uptake_pct` | 28.2 | [22.0, 38.0] | 10.0 | PASS | ICI uptake in stage IIB+ eligible ~65% × cohort base ~30% |
34
+ | `no_ici_in_early_stage_pct` | 100.0 | ≥100.0 | 10.0 | PASS | ICI excluded from stage IA/IB/IIA (NCCN), FLOOR |
35
+ | `pembro_orr_pct` | 58.209 | [40.0, 65.0] | 10.0 | PASS | KEYNOTE-006 pembrolizumab ORR 45%; cohort TMB/PDL1 boost adds ~5-10% |
36
+ | `ipi_nivo_orr_pct` | 50.0 | [15.0, 100.0] | 10.0 | PASS | CheckMate 067 ipi+nivo ORR 58%; very wide variance at small n (subset often n<15) |
37
+ | `irae_g34_in_ipi_nivo_pct` | 50.0 | [32.0, 75.0] | 10.0 | PASS | CheckMate 067 ipi+nivo G3-4 irAE ~59% |
38
+ | `hyperprogression_only_ici_pd_pct` | 100.0 | ≥100.0 | 10.0 | PASS | Hyperprogression restricted to ICI-treated PD (structural), FLOOR |
39
+ | `targeted_only_braf_v600_pct` | 100.0 | ≥100.0 | 10.0 | PASS | Targeted therapy restricted to BRAF V600+ (structural), FLOOR |
40
+ | `targeted_orr_pct` | 69.444 | [50.0, 78.0] | 10.0 | PASS | Combo BRAF/MEK ORR ~63-70% (COMBI-d/v, COLUMBUS) |
41
+ | `dab_tram_orr_pct` | 80.0 | [50.0, 85.0] | 10.0 | PASS | Dabrafenib+Trametinib ORR ~68% (COMBI-d) |
42
+ | `cuscc_only_vemurafenib_pct` | 100.0 | ≥100.0 | 10.0 | PASS | Cutaneous SCC (paradoxical MAPK) ⊂ vemurafenib regimens, FLOOR |
43
+ | `os_median_overall_mo` | 112.41 | [95.0, 140.0] | 10.0 | PASS | Mixed cohort median OS ~110-125mo (Stage I-heavy cohort) |
44
+ | `os_median_iv_mo` | 24.28 | [12.0, 32.0] | 10.0 | PASS | Stage IV median OS ~24mo (modern ICI-era; CheckMate 067 mOS 36mo) |
45
+ | `stage_iv_has_m1_pct` | 100.0 | ≥100.0 | 10.0 | PASS | Stage IV patients have M1 stage (structural), FLOOR |
46
+ | `lung_met_in_iv_pct` | 36.0 | [28.0, 55.0] | 10.0 | PASS | Lung mets in Stage IV ~40% (Patel 1978, Damsky 2014) |
47
+ | `brain_met_in_iv_pct` | 18.0 | [8.0, 30.0] | 10.0 | PASS | Brain mets in Stage IV ~15-20% (cohort: only M1d × 70%) |
48
+ | `liver_met_in_iv_pct` | 24.0 | [10.0, 42.0] | 10.0 | PASS | Liver mets in Stage IV ~25% |
49
+ | `brain_mets_only_m1d_pct` | 100.0 | ≥100.0 | 10.0 | PASS | Brain mets restricted to M1d (structural), FLOOR |
50
+
51
+ ## Notes
52
+
53
+ - **10 FLOOR metrics** are one-sided ≥ threshold structural checks.
54
+ - **Single-table sample**: primary cohort CSV (no longitudinal panel or subset table).
55
+ - **Stage distribution drift disclosed**: cohort derives `overall_ajcc_stage` from Breslow-driven T/N/M (line 365), not the published SEER `STAGE_DISTRIBUTION` table (which is only used for metastatic_flag at line 343). Result: Stage IA under-represented (~16% vs 35% SEER), Stage IIA over-represented (~25% vs 8% SEER). See `README.md` Limitation #1 for full disclosure.