| name | tcga-bulk-data-preprocessing-with-omicverse |
| title | TCGA bulk data preprocessing with omicverse |
| description | TCGA bulk RNA-seq preprocessing with pyTCGA: GDC sample sheets, expression archives, clinical metadata, Kaplan-Meier survival analysis, and annotated AnnData export. |
TCGA Bulk Data Preprocessing with OmicVerse
Overview
Use this skill for loading TCGA data from GDC downloads, building normalised expression matrices, attaching clinical metadata, and running survival analyses through ov.bulk.pyTCGA.
Instructions
1. Gather required downloads
Confirm the user has three items from the GDC Data Portal:
gdc_sample_sheet.<date>.tsv — the sample sheet export
- Decompressed
gdc_download_xxxxx/ directory with expression archives
clinical.cart.<date>/ directory with clinical XML/JSON files
2. Initialise the TCGA helper
import omicverse as ov
import scanpy as sc
ov.plot_set()
aml_tcga = ov.bulk.pyTCGA(sample_sheet_path, download_dir, clinical_dir)
aml_tcga.adata_init()
3. Persist and reload
aml_tcga.adata.write_h5ad('data/ov_tcga_raw.h5ad', compression='gzip')
new_tcga = ov.bulk.pyTCGA(sample_sheet_path, download_dir, clinical_dir)
new_tcga.adata_read()