---
name: biogenesis-data
description: How the CAIROME processed tumor-cohort assets are organized (cohorts, omics layers, signature methods, subtypes, clinical variables, file formats) and which tools answer which questions. Read first for any data question.
---

# CAIROME processed cohort data

The portal hosts processed data from public tumor cohorts (CPTAC, TCGA, METABRIC and others).
`search_cohorts` and `get_cohort` report `mock`. When it is `true`, the assets are synthetic MOCK data with real gene symbols and realistic structure: tell users that results come from mock data.

## Organization

- **Cancer type**: `gbm`, `hnscc`, `luad`, `lscc`, `brca`, `hcc`, `stad`, `pdac`, `ccrcc`, `coad`, `blca`, `ucec`, `ov`, `prad`, `skcm`.
- **Cohort**: an id such as `cptac-melanoma`. Each cohort has patients, a clinical table, one or more omics layers and usually a subtype column (e.g. `TCGA_subtype_v2`).
- **Omics layers**: `genomics` (somatic mutations, from the clinical table), `transcriptomics`, `proteomics` and `phosphoproteomics`.
- **Signature methods**: every quantitative layer has per-patient signatures from one or more methods. Transcriptomics: `limma-voom` (default), `deseq2`, `cd` (Characteristic Direction). Proteomics and phosphoproteomics: `zscore`. `get_cohort` lists `methods` and `default_method`.
- **Patients/samples**: ids look like `C3L-00967`. Some samples (e.g. `SC-0547`, replicates like `SC-0547-2`) have signatures but no clinical row. Layers can have different sample counts (`samples_per_layer`).

## File formats (per cohort)

| File | Format | Contents |
|---|---|---|
| `clinical.csv` | CSV | one row per patient, keyed by `sampleName`; can have 1000+ columns: demographics, stage, survival, `<GENE>_somatic_type` / `_somatic_binary` mutations, `<GENE>_cnv` copy number, deconvolution (`*_bdb`, `*_instaprism`), scores and subtype calls. `NA` = missing |
| `<layer>_<method>_max500.gmt` | GMT | per-patient signatures. Terms are `PATIENT::<label>::upregulated-gene` / `downregulated-gene` (transcriptome), `…-protein` (proteome) or `modified-phosphorylated_site` (phosphoproteome, genes of the modified sites, no direction) |
| `<layer>_assertions_<method>_max500.csv` | KG assertions | `source, source_type, source_label, relation, target, target_type, target_label, cohort`: Patient → upregulated_gene / downregulated_gene / upregulated_protein / downregulated_protein → Gene; Patient → modified → phosphorylated_site; Gene → site → phosphorylated_site |
| `<layer>_<method>_max500_umap.csv` | UMAP | `x, y, cluster, direction, sample_id, term, genes`: an embedding of one method's signatures with one up point and one down point per patient. Transcriptomes have one per DGE method (limma-voom, deseq2, cd); limma-voom is the default |
| `gene-attribute.tsv` | attribute table | genes × samples (transcriptomics), expression z-scored across genes within each sample |

## Which tool to use

- To find cohorts, use `list_cancer_types`, then `search_cohorts`, then `get_cohort`.
- For clinical questions, first find the variable with `search_clinical_variables` (e.g. query "survival", "stage" or a gene name), then use `summarize_clinical` with an optional `group_by` (such as `overall_survival` by `TCGA_subtype_v2`).
- For gene-level questions, use `get_gene_expression` (z-scores from the attribute table, grouped by the subtype column or any clinical variable) for one cohort, or `find_gene_across_cohorts` (mutation frequency and how often the gene is in patient signatures) for all of them.
- For subtype biology, use `get_differential_expression` (computed on the fly from the attribute table, subtype vs the other subtyped patients), then `run_enrichr` on the up genes.
- For links between patients, genes and phosphosites, use `query_knowledge_graph` (e.g. node = `BRAF`, optionally `layer`, `method`, `node_type`).
- For gene sets, use `get_gene_sets` (`patient_up`, `patient_down`, `patient_modified` with a layer and method, or `mutations`).
- For a single patient, use `get_patient_signature` (choose layer and method), then `find_patient_drugs` (Perturb-Seqr reversers; transcriptomics or proteomics).
- For downloads, use `get_file_url`.

## Good practice

- Resolve ids before analysis. Don't guess cohort, subtype, patient or clinical-variable names: call `get_cohort` and `search_clinical_variables`.
- Report the cohort, layer, method and contrast behind every number, and give file links when they help.
- Differential expression here compares z-scores across genes within each sample, so `mean_diff` is small; rank by t and adjusted p-value.
- Keep tables short (top 10 to 15 rows) and offer to show more.
- Results are for research only. They are not clinical recommendations.
