Multi-omics
This page covers studies that measure several data types on the same people or samples, for example microbes and metabolites, or RNA and protein, and relate them to each other and to outcomes such as survival.
Prompts to try
Compare survival between cancer subtypes. Send:
Load miniACC from MultiAssayExperiment. Which clinical columns describe survival?Then:
Build overall survival time from days_to_death and days_to_last_followup, with vital_status as the event.Then:
Plot Kaplan-Meier curves for the C1A and C1B mRNA subtypes with the survival package.Inspect and filter a rat study with microbiota, metabolite and liver marker tables. Send:
Load HintikkaXOData from mia. What do the three experiments measure?Then:
Agglomerate the microbiota to genus and keep the most prevalent genera.Subset linked metagenomes and metatranscriptomes to the first visit. Send:
Load ibdmdb from mia. How many participants and samples are there?Then:
Keep the first visit of each participant, the species-level rows of MGX and the unstratified enzyme rows of MTX.Inspect the four data views of a leukaemia cohort:
Load the CLL data from MOFAdata. What are the four views, and how many samples does each have?
What a note can do
Notes hold linked data in a MultiAssayExperiment, which ties several tables to the same people or samples, and follow the MOFA2 workflows and the multi-omics chapters of the OMA book.
- Get data. Notes load miniACC, curatedTCGAData, HintikkaXOData, ibdmdb, MOFAdata, SingleCellMultiModal, depmap or HoloFood data, or combine your tables.
- Line up samples. Notes keep the people or samples that appear in every table.
- Links between tables. Each feature in one table is correlated with each feature in another, for example species with enzymes.
- Shared factors. MOFA2 finds a few hidden factors that explain variation across all the tables at once. mixOmics offers related methods.
- One map for two tables. A joint ordination places samples using two tables together.
- Outcomes. The survival package fits Kaplan-Meier curves, log-rank tests and Cox models.
Example notes

- What is a MultiAssayExperiment?: one object for several tables, and how to subset them together.
- Survival by molecular subtype in adrenocortical carcinoma: Kaplan-Meier curves and a log-rank test.
- Does mRNA predict protein in adrenocortical carcinoma?: RNA and protein for the same patients and genes.
- MOFA on microbes, metabolites and liver markers in rats: three tables prepared for MOFA, and the factors they share.
- Multi-omics factor analysis of CLL patients: drug response, methylation, RNA and mutations in one model.
- Species and their transcribed enzymes in IBD: links between metagenomes and metatranscriptomes.
- Joint ordination of metagenomes and metatranscriptomes: one ordination from two linked tables.
- Salmon fatty acids and gut microbes from HoloFood: host measurements and gut microbes from a feeding trial.