Datasets:
Slim down dataset card to stable bits (license + redistribution)
Browse files
README.md
CHANGED
|
@@ -21,181 +21,16 @@ configs:
|
|
| 21 |
|
| 22 |
# TCGA Patients (Open Access)
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
multi-modal oncology models can stream rich patient context in batches without
|
| 27 |
-
doing joins.
|
| 28 |
|
| 29 |
- **Projects included:** `TCGA-CHOL`, `TCGA-DLBC`
|
| 30 |
-
- **Generated:** 2026-05-04 00:
|
| 31 |
-
- **Source:** NCI GDC `/cases` endpoint
|
| 32 |
-
`diagnoses`, `diagnoses.treatments`, `follow_ups`, `exposures`,
|
| 33 |
-
`family_histories`, `project`.
|
| 34 |
-
- **Access tier:** open. Redistributable; see the License & redistribution
|
| 35 |
-
section below.
|
| 36 |
-
- **Subsets:** one HF subset (config) per TCGA project, mirroring the
|
| 37 |
-
[`wikimedia/wikipedia`](https://huggingface.co/datasets/wikimedia/wikipedia)
|
| 38 |
-
per-language pattern. Files are laid out as `<TCGA-XXXX>/train.parquet`.
|
| 39 |
-
|
| 40 |
-
## Loading
|
| 41 |
-
|
| 42 |
-
```python
|
| 43 |
-
from datasets import load_dataset
|
| 44 |
-
|
| 45 |
-
# Pick a single project — same pattern as wikimedia/wikipedia per-language subsets:
|
| 46 |
-
ds = load_dataset("<repo_id>", "TCGA-CHOL", split="train")
|
| 47 |
-
for patient in ds:
|
| 48 |
-
case_id = patient["case_id"]
|
| 49 |
-
diagnoses = patient["diagnoses"] # list of dicts
|
| 50 |
-
treatments = [tx for dx in diagnoses for tx in dx["treatments"]]
|
| 51 |
-
...
|
| 52 |
-
|
| 53 |
-
# Stream a project's patients (no full download):
|
| 54 |
-
stream = load_dataset("<repo_id>", "TCGA-CHOL", split="train", streaming=True)
|
| 55 |
-
|
| 56 |
-
# Iterate every project — concat across subsets yourself:
|
| 57 |
-
from datasets import get_dataset_config_names, concatenate_datasets
|
| 58 |
-
configs = get_dataset_config_names("<repo_id>")
|
| 59 |
-
all_ds = concatenate_datasets(
|
| 60 |
-
[load_dataset("<repo_id>", c, split="train") for c in configs]
|
| 61 |
-
)
|
| 62 |
-
```
|
| 63 |
-
|
| 64 |
-
Or load into pyarrow / polars / pandas directly:
|
| 65 |
-
|
| 66 |
-
```python
|
| 67 |
-
import pyarrow.parquet as pq
|
| 68 |
-
|
| 69 |
-
table = pq.read_table(
|
| 70 |
-
"TCGA-CHOL/train.parquet",
|
| 71 |
-
columns=["case_id", "project_id", "demographic", "diagnoses"],
|
| 72 |
-
)
|
| 73 |
-
```
|
| 74 |
-
|
| 75 |
-
## Verification
|
| 76 |
-
|
| 77 |
-
This dataset's source is the NCI GDC. The same TCGA cases are also browsable on
|
| 78 |
-
[cBioPortal](https://www.cbioportal.org/). cBioPortal hosts **multiple versions**
|
| 79 |
-
of TCGA per disease (Firehose Legacy, PanCancer Atlas, GDC-sourced); the
|
| 80 |
-
`*_tcga_gdc` family shares our upstream source and is the like-for-like
|
| 81 |
-
comparison. Disease prefixes use cBioPortal's own taxonomy, not always the
|
| 82 |
-
TCGA project suffix (e.g. `TCGA-DLBC` → `dlbclnos_tcga_gdc`).
|
| 83 |
-
|
| 84 |
-
```
|
| 85 |
-
https://www.cbioportal.org/patient/summary?studyId=<study>&caseId=<case_submitter_id>
|
| 86 |
-
```
|
| 87 |
-
|
| 88 |
-
For example, patient `TCGA-W5-AA39` (project `TCGA-CHOL`) →
|
| 89 |
-
`https://www.cbioportal.org/patient/summary?studyId=chol_tcga_gdc&caseId=TCGA-W5-AA39`.
|
| 90 |
-
|
| 91 |
-
## Schema
|
| 92 |
-
|
| 93 |
-
```
|
| 94 |
-
case_id: string
|
| 95 |
-
case_submitter_id: string
|
| 96 |
-
project_id: string
|
| 97 |
-
primary_site: string
|
| 98 |
-
disease_type: string
|
| 99 |
-
demographic: struct<
|
| 100 |
-
demographic_id: string,
|
| 101 |
-
submitter_id: string,
|
| 102 |
-
gender: string,
|
| 103 |
-
sex_at_birth: string,
|
| 104 |
-
race: string,
|
| 105 |
-
ethnicity: string,
|
| 106 |
-
vital_status: string,
|
| 107 |
-
age_at_index: int64,
|
| 108 |
-
days_to_birth: int64,
|
| 109 |
-
days_to_death: int64,
|
| 110 |
-
year_of_birth: int64,
|
| 111 |
-
year_of_death: int64,
|
| 112 |
-
country_of_residence_at_enrollment: string,
|
| 113 |
-
>
|
| 114 |
-
diagnoses: list<struct<
|
| 115 |
-
diagnosis_id: string,
|
| 116 |
-
submitter_id: string,
|
| 117 |
-
primary_diagnosis: string,
|
| 118 |
-
morphology: string,
|
| 119 |
-
tissue_or_organ_of_origin: string,
|
| 120 |
-
site_of_resection_or_biopsy: string,
|
| 121 |
-
icd_10_code: string,
|
| 122 |
-
ajcc_pathologic_stage: string,
|
| 123 |
-
ajcc_pathologic_t: string,
|
| 124 |
-
ajcc_pathologic_n: string,
|
| 125 |
-
ajcc_pathologic_m: string,
|
| 126 |
-
ajcc_staging_system_edition: string,
|
| 127 |
-
age_at_diagnosis: int64,
|
| 128 |
-
days_to_diagnosis: double,
|
| 129 |
-
year_of_diagnosis: int64,
|
| 130 |
-
prior_malignancy: string,
|
| 131 |
-
prior_treatment: string,
|
| 132 |
-
synchronous_malignancy: string,
|
| 133 |
-
classification_of_tumor: string,
|
| 134 |
-
last_known_disease_status: string,
|
| 135 |
-
days_to_last_follow_up: double,
|
| 136 |
-
days_to_last_known_disease_status: double,
|
| 137 |
-
days_to_recurrence: double,
|
| 138 |
-
residual_disease: string,
|
| 139 |
-
diagnosis_is_primary_disease: bool,
|
| 140 |
-
treatments: list<struct<
|
| 141 |
-
treatment_id: string,
|
| 142 |
-
submitter_id: string,
|
| 143 |
-
treatment_type: string,
|
| 144 |
-
treatment_or_therapy: string,
|
| 145 |
-
treatment_intent_type: string,
|
| 146 |
-
treatment_outcome: string,
|
| 147 |
-
therapeutic_agents: string,
|
| 148 |
-
days_to_treatment_start: double,
|
| 149 |
-
days_to_treatment_end: double,
|
| 150 |
-
initial_disease_status: string,
|
| 151 |
-
>>,
|
| 152 |
-
>>
|
| 153 |
-
follow_ups: list<struct<
|
| 154 |
-
follow_up_id: string,
|
| 155 |
-
submitter_id: string,
|
| 156 |
-
timepoint_category: string,
|
| 157 |
-
disease_response: string,
|
| 158 |
-
progression_or_recurrence: string,
|
| 159 |
-
days_to_follow_up: double,
|
| 160 |
-
days_to_progression: double,
|
| 161 |
-
days_to_recurrence: double,
|
| 162 |
-
ecog_performance_status: string,
|
| 163 |
-
>>
|
| 164 |
-
exposures: list<struct<
|
| 165 |
-
exposure_id: string,
|
| 166 |
-
submitter_id: string,
|
| 167 |
-
tobacco_smoking_status: string,
|
| 168 |
-
cigarettes_per_day: double,
|
| 169 |
-
years_smoked: double,
|
| 170 |
-
alcohol_history: string,
|
| 171 |
-
alcohol_intensity: string,
|
| 172 |
-
bmi: double,
|
| 173 |
-
weight: double,
|
| 174 |
-
height: double,
|
| 175 |
-
>>
|
| 176 |
-
family_histories: list<struct<
|
| 177 |
-
family_history_id: string,
|
| 178 |
-
submitter_id: string,
|
| 179 |
-
relationship_type: string,
|
| 180 |
-
relative_with_cancer_history: string,
|
| 181 |
-
relationship_primary_diagnosis: string,
|
| 182 |
-
>>
|
| 183 |
-
```
|
| 184 |
-
|
| 185 |
-
Notes on the nested layout:
|
| 186 |
-
|
| 187 |
-
- `demographic` is a single `struct` (1:1 with the patient).
|
| 188 |
-
- `diagnoses`, `follow_ups`, `exposures`, `family_histories` are `list<struct<...>>`
|
| 189 |
-
(0..N per patient).
|
| 190 |
-
- `treatments` is nested *inside* each diagnosis (`diagnoses[i].treatments`), so
|
| 191 |
-
the source 1:N relationship between diagnosis and treatment is preserved.
|
| 192 |
-
- All leaf fields are nullable.
|
| 193 |
|
| 194 |
## License & redistribution
|
| 195 |
|
| 196 |
-
|
| 197 |
-
(`/cases` endpoint with `access=open`). Per the
|
| 198 |
-
[NCI GDC Data Analysis Policy](https://gdc.cancer.gov/analyze-data/data-analysis-policies):
|
| 199 |
|
| 200 |
> The GDC itself places no restrictions (other than attempts at reidentification)
|
| 201 |
> on analysis or publication of open access data provided through the GDC Data Portal.
|
|
@@ -211,13 +46,8 @@ Per the [GDC Data Access Processes and Tools page](https://gdc.cancer.gov/access
|
|
| 211 |
> individually identifiable, as well as most clinical and all biospecimen data
|
| 212 |
> elements.
|
| 213 |
|
| 214 |
-
The clinical data here is squarely within that scope.
|
| 215 |
-
|
| 216 |
## Restrictions on use
|
| 217 |
|
| 218 |
-
The single hard restriction inherited from the GDC policy applies to all
|
| 219 |
-
downstream users:
|
| 220 |
-
|
| 221 |
> Users of any data provided by GDC, whether open or controlled access, agree
|
| 222 |
> not to attempt to reidentify any individual participant in any study
|
| 223 |
> represented by GDC data, for any purpose whatever.
|
|
@@ -225,30 +55,27 @@ downstream users:
|
|
| 225 |
|
| 226 |
## Required acknowledgement
|
| 227 |
|
| 228 |
-
If you publish or present results derived from this dataset,
|
| 229 |
[NCI-required TCGA acknowledgement](https://www.cancer.gov/ccg/research/genome-sequencing/tcga/using-tcga-data/citing):
|
| 230 |
|
| 231 |
> The results <published or shown> here are in whole or part based upon data
|
| 232 |
> generated by the TCGA Research Network: https://www.cancer.gov/tcga.
|
| 233 |
|
| 234 |
-
Suggested citations
|
| 235 |
|
| 236 |
- Grossman, R. L., et al. (2016). Toward a Shared Vision for Cancer Genomic Data.
|
| 237 |
*NEJM*, 375(12), 1109-1112.
|
| 238 |
- The Cancer Genome Atlas Research Network. https://www.cancer.gov/tcga
|
| 239 |
- NCI Genomic Data Commons. https://gdc.cancer.gov
|
| 240 |
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
|
| 246 |
[controlled]: https://docs.gdc.cancer.gov/Encyclopedia/pages/Controlled_Access/
|
| 247 |
-
- [NIH Genomic Data Sharing Policy](https://sharing.nih.gov/genomic-data-sharing)
|
| 248 |
|
| 249 |
## Disclaimer
|
| 250 |
|
| 251 |
-
Prototype dataset
|
| 252 |
-
|
| 253 |
-
are added — likely as additional top-level nested columns on the same patient row.
|
| 254 |
-
Re-derive from the GDC for any analysis where freshness matters.
|
|
|
|
| 21 |
|
| 22 |
# TCGA Patients (Open Access)
|
| 23 |
|
| 24 |
+
**Open-access** TCGA patient data from the NCI Genomic Data Commons (GDC).
|
| 25 |
+
One HuggingFace subset per TCGA project; one row per patient.
|
|
|
|
|
|
|
| 26 |
|
| 27 |
- **Projects included:** `TCGA-CHOL`, `TCGA-DLBC`
|
| 28 |
+
- **Generated:** 2026-05-04 00:20:17 UTC
|
| 29 |
+
- **Source:** NCI GDC `/cases` endpoint, open-access tier only.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
## License & redistribution
|
| 32 |
|
| 33 |
+
Per the [NCI GDC Data Analysis Policy](https://gdc.cancer.gov/analyze-data/data-analysis-policies):
|
|
|
|
|
|
|
| 34 |
|
| 35 |
> The GDC itself places no restrictions (other than attempts at reidentification)
|
| 36 |
> on analysis or publication of open access data provided through the GDC Data Portal.
|
|
|
|
| 46 |
> individually identifiable, as well as most clinical and all biospecimen data
|
| 47 |
> elements.
|
| 48 |
|
|
|
|
|
|
|
| 49 |
## Restrictions on use
|
| 50 |
|
|
|
|
|
|
|
|
|
|
| 51 |
> Users of any data provided by GDC, whether open or controlled access, agree
|
| 52 |
> not to attempt to reidentify any individual participant in any study
|
| 53 |
> represented by GDC data, for any purpose whatever.
|
|
|
|
| 55 |
|
| 56 |
## Required acknowledgement
|
| 57 |
|
| 58 |
+
If you publish or present results derived from this dataset, include the
|
| 59 |
[NCI-required TCGA acknowledgement](https://www.cancer.gov/ccg/research/genome-sequencing/tcga/using-tcga-data/citing):
|
| 60 |
|
| 61 |
> The results <published or shown> here are in whole or part based upon data
|
| 62 |
> generated by the TCGA Research Network: https://www.cancer.gov/tcga.
|
| 63 |
|
| 64 |
+
Suggested citations:
|
| 65 |
|
| 66 |
- Grossman, R. L., et al. (2016). Toward a Shared Vision for Cancer Genomic Data.
|
| 67 |
*NEJM*, 375(12), 1109-1112.
|
| 68 |
- The Cancer Genome Atlas Research Network. https://www.cancer.gov/tcga
|
| 69 |
- NCI Genomic Data Commons. https://gdc.cancer.gov
|
| 70 |
|
| 71 |
+
References:
|
| 72 |
+
[GDC Policies](https://gdc.cancer.gov/about-gdc/gdc-policies),
|
| 73 |
+
[GDC Encyclopedia — Controlled Access][controlled] (defines what is *not* here),
|
| 74 |
+
[NIH Genomic Data Sharing Policy](https://sharing.nih.gov/genomic-data-sharing).
|
| 75 |
|
| 76 |
[controlled]: https://docs.gdc.cancer.gov/Encyclopedia/pages/Controlled_Access/
|
|
|
|
| 77 |
|
| 78 |
## Disclaimer
|
| 79 |
|
| 80 |
+
Prototype dataset. Schema, included projects, and column coverage are still
|
| 81 |
+
evolving. Re-derive from the GDC for any analysis where freshness matters.
|
|
|
|
|
|