File size: 3,619 Bytes
6a5d53b c59ee67 9968552 6a5d53b 9968552 6a5d53b 9968552 6a5d53b 9968552 6a5d53b 9968552 6a5d53b 80fb52f 6a5d53b 9968552 6a5d53b 9968552 6a5d53b 9968552 6a5d53b c59ee67 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | ---
license: cc0-1.0
task_categories:
- tabular-classification
- feature-extraction
tags:
- tcga
- bulk-rna-seq
- methylation
- mutation
- cancer
- genomics
- multi-omics
pretty_name: TCGA PanCancer Atlas (8-subtype base set + per-architecture extensions)
---
# TCGA
A multi-omics subset of the TCGA PanCancer Atlas (RNA, methylation, mutation, clinical),
for use with [AUTOENCODIX](https://github.com/jan-forest/autoencodix_package) tutorials.
## Base set (for `Vanillix` and other Tutorials)
Covers **8 cancer types**: BRCA, OV, LUAD, UCEC, LUSC, COAD, READ, UCS.
- `rna.parquet` — 3552 samples × 17448 genes (RNA expression)
- `methylation.parquet` — 3875 samples × 9829 genes (per-gene methylation)
- `mutation.parquet` — 3461 samples × 20304 genes (combined mutation/CNA score per gene;
restricted to samples that belong to the 8 cancer types above — the source file is a
pan-cancer TCGA mutation matrix, trimmed here to match this cohort)
- `clinical.parquet` — 3902 samples × 56 columns (sample-level clinical/annotation
metadata, incl. `CANCER_TYPE_ACRONYM`, `SUBTYPE`)
Gene identifiers are NCBI/Entrez gene IDs throughout, consistent with the ontology files
below.
## `ontology/` — extension for `Ontix` Tutorial
Two ontology hierarchies, each as a 2-level gene-grouping file (gene ID → level-1 group,
level-1 group → level-2 group):
- `chromosome_ont_lvl1_ncbi.txt`, `chromosome_ont_lvl2.txt` — chromosome/cytoband-based
grouping
- `reactome_ont_lvl1.txt`, `reactome_ont_lvl2.txt` — Reactome pathway-based grouping
(level 2 uses human-readable Reactome pathway names)
## `xmodalix/` — extension for `XModalix` Tutorial
Synthetic MNIST-style images paired to TCGA samples, one per sample, for the
image↔omics translation tutorial:
- `xmodalix/tcga_fake_images.zip` — 3907 grayscale 28×28 PNGs
- `xmodalix/tcga_image_mappings.txt` — tab-separated `sample_ids`, `img_paths`,
`extra_class_labels`, `CANCER_TYPE_ACRONYM`; 3230 of the 3902 base-set clinical
samples have a paired image (one image label per cancer type)
## Loading
```python
from huggingface_hub import hf_hub_download
import pandas as pd
rna_path = hf_hub_download(repo_id="autoencodix/tcga", repo_type="dataset", filename="rna.parquet")
meth_path = hf_hub_download(repo_id="autoencodix/tcga", repo_type="dataset", filename="methylation.parquet")
mut_path = hf_hub_download(repo_id="autoencodix/tcga", repo_type="dataset", filename="mutation.parquet")
clin_path = hf_hub_download(repo_id="autoencodix/tcga", repo_type="dataset", filename="clinical.parquet")
rna = pd.read_parquet(rna_path)
```
Ontix additionally needs, e.g.:
```python
chr1 = hf_hub_download(repo_id="autoencodix/tcga", repo_type="dataset", filename="ontology/chromosome_ont_lvl1_ncbi.txt")
rea1 = hf_hub_download(repo_id="autoencodix/tcga", repo_type="dataset", filename="ontology/reactome_ont_lvl1.txt")
```
XModalix additionally needs:
```python
images_zip = hf_hub_download(repo_id="autoencodix/tcga", repo_type="dataset", filename="xmodalix/tcga_fake_images.zip")
mapping = hf_hub_download(repo_id="autoencodix/tcga", repo_type="dataset", filename="xmodalix/tcga_image_mappings.txt")
```
## License
**CC0 1.0 (Public Domain Dedication).** The TCGA PanCancer Atlas open-access data
(RNA, methylation, mutation, clinical) is designated public domain by the NIH Genomic
Data Commons, with no restrictions on reuse. The Reactome pathway groupings in
`ontology/` are separately licensed under CC0 by Reactome. The synthetic `xmodalix/`
images are generated by this project and released under the same CC0 terms.
|