Datasets:
Card cleanup: trim discovery-detail prose, drop project lists + misleading source line, share biospecimen tree + survival section across both cards, reorder so survival_derived sits after the GDC-source story, add non-affiliation note to disclaimer.
Browse files
README.md
CHANGED
|
@@ -145,16 +145,12 @@ configs:
|
|
| 145 |
|
| 146 |
# TCGA Patients (Open Access)
|
| 147 |
|
| 148 |
-
Open-access
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
- **
|
| 153 |
-
- **
|
| 154 |
-
- **Source:** GDC `/cases` endpoint, open-access tier only.
|
| 155 |
-
- **Schema:** derived from the [GDC Data Dictionary][gdc-dict]; the live
|
| 156 |
-
dictionary the GDC was serving when the data was fetched is hashed into
|
| 157 |
-
each project's `gdc_status.json` for provenance.
|
| 158 |
- **GDC data release:** Data Release 45.0 - December 04, 2025
|
| 159 |
|
| 160 |
## Data model
|
|
@@ -172,10 +168,6 @@ case one patient (TCGA-XX-1234)
|
|
| 172 |
└── aliquot a vial of that analyte handed off for sequencing
|
| 173 |
```
|
| 174 |
|
| 175 |
-
Every `days_to_*` field anchors to the case's `index_date` (TCGA: almost
|
| 176 |
-
always `"Diagnosis"`), per the dictionary, so clinical and biospecimen events
|
| 177 |
-
share a single timeline.
|
| 178 |
-
|
| 179 |
|
| 180 |
### Where this dataset deviates from the GDC
|
| 181 |
|
|
@@ -194,92 +186,40 @@ tree:
|
|
| 194 |
`Matched_Norm_Sample_UUID`; we additionally resolve those to
|
| 195 |
`tumor_sample_id` / `matched_normal_sample_id` so consumers can join
|
| 196 |
straight to `samples[]`.
|
| 197 |
-
- **
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
Tab-Separated Values (TSV) file onto the row as scalar fields. The
|
| 201 |
-
`stranded_first` / `stranded_second` columns are dropped — the GDC
|
| 202 |
-
pipeline harmonizes by [treating all RNA-Seq reads as
|
| 203 |
unstranded](https://docs.gdc.cancer.gov/Data/Bioinformatics_Pipelines/Expression_mRNA_Pipeline/),
|
| 204 |
so `unstranded` is the canonical column.
|
| 205 |
|
| 206 |
-
##
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
**
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|---|---|
|
| 229 |
-
| OS | 98.2% |
|
| 230 |
-
| DSS | 93.2% |
|
| 231 |
-
| PFI | 96.3% |
|
| 232 |
-
| DFI | 90.1% |
|
| 233 |
-
|
| 234 |
-
**Why we don't ship Liu's curated 2018 values directly:** the CDR is a
|
| 235 |
-
frozen 2018 snapshot derived from a since-modified GDC release. Including
|
| 236 |
-
those values in this dataset would lock in irreproducible source-data
|
| 237 |
-
drift. We re-derive on every build instead, so the values you see here
|
| 238 |
-
always reflect the current GDC and are reproducible from this dataset's
|
| 239 |
-
other tables alone.
|
| 240 |
-
|
| 241 |
-
[repo-survival]: https://github.com/galtay/tcga2hf/blob/main/packages/tcga2hf-pipeline/src/tcga2hf_pipeline/survival.py
|
| 242 |
-
[repo-liu-report]: https://github.com/galtay/tcga2hf/blob/main/dev_research/liu_2018/report.html
|
| 243 |
-
|
| 244 |
-
## How this dataset is built
|
| 245 |
-
|
| 246 |
-
Three GDC REST endpoints feed every row, with filters and field lists
|
| 247 |
-
constructed in [`src/tcga2hf/clinical.py`][src-clinical] and
|
| 248 |
-
[`src/tcga2hf/genomic.py`][src-genomic] of the [`tcga2hf` repo][repo].
|
| 249 |
-
|
| 250 |
-
**Projects fetched in this build:** `TCGA-ACC`, `TCGA-BLCA`, `TCGA-BRCA`, `TCGA-CESC`, `TCGA-CHOL`, `TCGA-COAD`, `TCGA-DLBC`, `TCGA-ESCA`, `TCGA-GBM`, `TCGA-HNSC`, `TCGA-KICH`, `TCGA-KIRC`, `TCGA-KIRP`, `TCGA-LAML`, `TCGA-LGG`, `TCGA-LIHC`, `TCGA-LUAD`, `TCGA-LUSC`, `TCGA-MESO`, `TCGA-OV`, `TCGA-PAAD`, `TCGA-PCPG`, `TCGA-PRAD`, `TCGA-READ`, `TCGA-SARC`, `TCGA-SKCM`, `TCGA-STAD`, `TCGA-TGCT`, `TCGA-THCA`, `TCGA-THYM`, `TCGA-UCEC`, `TCGA-UCS`, `TCGA-UVM`.
|
| 251 |
-
|
| 252 |
-
### `POST /cases`
|
| 253 |
-
|
| 254 |
-
Filter: `project.project_id IN [<projects above>]`. The request `expand`s
|
| 255 |
-
the full nested `case` structure (demographic + diagnoses → treatments +
|
| 256 |
-
follow_ups + exposures + family_histories + samples → portions →
|
| 257 |
-
analytes → aliquots). The response is captured verbatim into
|
| 258 |
-
`<data-dir>/raw/<project>/cases.json` per project and feeds the case-level scalars + the nested `demographic`, `diagnoses[]`, `follow_ups[]`, `exposures[]`, `family_histories[]`, and `samples[]` columns of each patient row. See
|
| 259 |
-
`tcga2hf.clinical.TOP_LEVEL_FIELDS` and `tcga2hf.clinical.EXPANSIONS`
|
| 260 |
-
for the exact field/expand lists.
|
| 261 |
-
|
| 262 |
-
### `POST /files`
|
| 263 |
-
|
| 264 |
-
One POST per (project, modality). All requests share
|
| 265 |
-
`cases.project.project_id = <project>` AND `access = open`. The
|
| 266 |
-
remaining clauses lock the format / experimental strategy / workflow
|
| 267 |
-
type so future GDC additions can't silently ship a different pipeline
|
| 268 |
-
under the same `data_type`. Each row's molecular content lands in two top-level array columns on the same patient row:
|
| 269 |
|
| 270 |
| Lands at | data_type | data_format | data_category | experimental_strategy | analysis.workflow_type |
|
| 271 |
|---|---|---|---|---|---|
|
| 272 |
| `samples_masked_somatic_mutation` array | `Masked Somatic Mutation` | `MAF` | `Simple Nucleotide Variation` | `WXS` | `Aliquot Ensemble Somatic Variant Merging and Masking` |
|
| 273 |
| `samples_gene_expression_quantification` array | `Gene Expression Quantification` | `TSV` | `Transcriptome Profiling` | `RNA-Seq` | `STAR - Counts` |
|
| 274 |
-
|
| 275 |
-
See `tcga2hf.genomic.MODALITY_FILTERS` and `tcga2hf.genomic.FILE_FIELDS`
|
| 276 |
-
for the full request payload.
|
| 277 |
-
|
| 278 |
-
### `POST /data` → file bytes
|
| 279 |
-
|
| 280 |
-
UUIDs returned by `/files` are batched (≤50 per request) into `POST
|
| 281 |
-
/data`; the response is a tar.gz of those files. Mutations files are parsed row-by-row into each patient's `samples_masked_somatic_mutation` array; expression files are parsed and projected into `samples_gene_expression_quantification`. See
|
| 282 |
-
`tcga2hf.gdc.bulk_download` for the batching and retry logic.
|
| 283 |
|
| 284 |
### Provenance pinned per build
|
| 285 |
|
|
@@ -289,8 +229,34 @@ UUIDs returned by `/files` are batched (≤50 per request) into `POST
|
|
| 289 |
saved alongside the raw data; its SHA-256 is recorded in
|
| 290 |
`gdc_status.json`.
|
| 291 |
|
| 292 |
-
[
|
| 293 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
|
| 295 |
## Loading
|
| 296 |
|
|
@@ -364,9 +330,12 @@ Policy references:
|
|
| 364 |
|
| 365 |
## Disclaimer
|
| 366 |
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
|
|
|
|
|
|
|
|
|
| 370 |
[`galtay/tcga2hf`][repo].
|
| 371 |
|
| 372 |
[gdc-dict]: https://docs.gdc.cancer.gov/Data_Dictionary/
|
|
|
|
| 145 |
|
| 146 |
# TCGA Patients (Open Access)
|
| 147 |
|
| 148 |
+
Open-access TCGA data from the NCI Genomic Data Commons (GDC), reshaped as
|
| 149 |
+
one HuggingFace (HF) subset per TCGA project; one row per patient. Covers
|
| 150 |
+
all 33 TCGA projects.
|
| 151 |
+
|
| 152 |
+
- **Generated:** 2026-05-09 20:13:48 UTC
|
| 153 |
+
- **Schema:** derived from the [GDC Data Dictionary][gdc-dict].
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
- **GDC data release:** Data Release 45.0 - December 04, 2025
|
| 155 |
|
| 156 |
## Data model
|
|
|
|
| 168 |
└── aliquot a vial of that analyte handed off for sequencing
|
| 169 |
```
|
| 170 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
|
| 172 |
### Where this dataset deviates from the GDC
|
| 173 |
|
|
|
|
| 186 |
`Matched_Norm_Sample_UUID`; we additionally resolve those to
|
| 187 |
`tumor_sample_id` / `matched_normal_sample_id` so consumers can join
|
| 188 |
straight to `samples[]`.
|
| 189 |
+
- **Stranded RNA-Seq columns dropped.** Each Gene Expression record drops
|
| 190 |
+
`stranded_first` / `stranded_second`; the GDC pipeline [harmonizes
|
| 191 |
+
RNA-Seq reads as
|
|
|
|
|
|
|
|
|
|
| 192 |
unstranded](https://docs.gdc.cancer.gov/Data/Bioinformatics_Pipelines/Expression_mRNA_Pipeline/),
|
| 193 |
so `unstranded` is the canonical column.
|
| 194 |
|
| 195 |
+
## How this dataset was built
|
| 196 |
+
|
| 197 |
+
Every row originates in the NCI Genomic Data Commons (GDC). Three
|
| 198 |
+
sources feed each project's data:
|
| 199 |
+
|
| 200 |
+
- **Case-level clinical structure** — fetched from the GDC `/cases`
|
| 201 |
+
endpoint, returning the full nested case JSON (demographic + diagnoses
|
| 202 |
+
→ treatments + follow_ups + exposures + family_histories + samples →
|
| 203 |
+
portions → analytes → aliquots).
|
| 204 |
+
- **Per-modality molecular files** — discovered via `/files` (filtered
|
| 205 |
+
by the clauses in the table below) and downloaded via `/data`. Each
|
| 206 |
+
combination locks one `data_type` to a specific GDC pipeline so future
|
| 207 |
+
GDC additions can't silently ship different content under the same
|
| 208 |
+
`data_type`.
|
| 209 |
+
- **BCR Clinical Supplement files** — original Biospecimen Core Resource
|
| 210 |
+
(BCR) clinical biotab forms (per-project TSVs: patient, follow_up,
|
| 211 |
+
nte, drug, radiation, etc.). The harmonized `/cases` endpoint drops
|
| 212 |
+
or under-populates a number of clinical fields that the BCR-original
|
| 213 |
+
biotabs preserve — most importantly Liu et al. 2018's
|
| 214 |
+
`treatment_outcome_first_course`, used by `survival_derived`.
|
| 215 |
+
Discovered via `/files` filtered to `data_type="Clinical Supplement"`
|
| 216 |
+
+ `data_format="bcr biotab"`, downloaded via `/data`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
|
| 218 |
| Lands at | data_type | data_format | data_category | experimental_strategy | analysis.workflow_type |
|
| 219 |
|---|---|---|---|---|---|
|
| 220 |
| `samples_masked_somatic_mutation` array | `Masked Somatic Mutation` | `MAF` | `Simple Nucleotide Variation` | `WXS` | `Aliquot Ensemble Somatic Variant Merging and Masking` |
|
| 221 |
| `samples_gene_expression_quantification` array | `Gene Expression Quantification` | `TSV` | `Transcriptome Profiling` | `RNA-Seq` | `STAR - Counts` |
|
| 222 |
+
| consumed in-memory for `survival_derived` | `Clinical Supplement` | `bcr biotab` | `Clinical` | | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
|
| 224 |
### Provenance pinned per build
|
| 225 |
|
|
|
|
| 229 |
saved alongside the raw data; its SHA-256 is recorded in
|
| 230 |
`gdc_status.json`.
|
| 231 |
|
| 232 |
+
See the [repository][repo] for full request payloads, filter clauses,
|
| 233 |
+
and the build pipeline source.
|
| 234 |
+
|
| 235 |
+
## Survival endpoints (`survival_derived`)
|
| 236 |
+
|
| 237 |
+
The only value-added enrichment in this dataset. Four standard survival
|
| 238 |
+
endpoints — Overall Survival (OS), Disease-Specific Survival (DSS),
|
| 239 |
+
Progression-Free Interval (PFI), Disease-Free Interval (DFI) — re-derived
|
| 240 |
+
from the current GDC data using the algorithm from **Liu et al. 2018**
|
| 241 |
+
([DOI 10.1016/j.cell.2018.02.052](https://doi.org/10.1016/j.cell.2018.02.052)).
|
| 242 |
+
|
| 243 |
+
Each patient row carries a top-level **`survival_derived` struct** with eight sub-fields: `os_event` / `os_time`, `dss_event` / `dss_time`, `pfi_event` / `pfi_time`, `dfi_event` / `dfi_time`. `*_event` is 0/1 (event observed vs censored); `*_time` is days
|
| 244 |
+
from `index_date` (TCGA: diagnosis date). DFI is null for SKCM / THYM /
|
| 245 |
+
UVM / LAML — Liu specifies no DFI for those tumor types.
|
| 246 |
+
|
| 247 |
+
We've reimplemented Liu's method against the current TCGA data and find
|
| 248 |
+
broad agreement with the original curated CDR. Differences exist and are
|
| 249 |
+
expected: this is a newer release of the underlying GDC data, so
|
| 250 |
+
re-curated clinical values, post-2018 patient additions, and schema
|
| 251 |
+
migrations all contribute to the gap. This work is evolving; see the
|
| 252 |
+
[repository][repo] for the full reproduction report and per-endpoint
|
| 253 |
+
methodology.
|
| 254 |
+
|
| 255 |
+
**Why we don't ship Liu's curated 2018 values directly:** the CDR is a
|
| 256 |
+
frozen 2018 snapshot derived from a since-modified GDC release. Including
|
| 257 |
+
those values would lock in irreproducible source-data drift. We re-derive
|
| 258 |
+
on every build, so the values reflect the current GDC and are reproducible
|
| 259 |
+
from this dataset's other tables alone.
|
| 260 |
|
| 261 |
## Loading
|
| 262 |
|
|
|
|
| 330 |
|
| 331 |
## Disclaimer
|
| 332 |
|
| 333 |
+
**This project is not affiliated with the NCI, GDC, or the TCGA Research
|
| 334 |
+
Network.** It is an experimental open-source pipeline that may change
|
| 335 |
+
significantly between versions; pin the GDC release and dataset commit
|
| 336 |
+
if you depend on a specific snapshot. Re-derive from the GDC for any
|
| 337 |
+
analysis where freshness matters — the dataset reflects the GDC release
|
| 338 |
+
pinned in each project's `gdc_status.json`. Pipeline source:
|
| 339 |
[`galtay/tcga2hf`][repo].
|
| 340 |
|
| 341 |
[gdc-dict]: https://docs.gdc.cancer.gov/Data_Dictionary/
|