Multi-omics
Multi-omics means looking at several kinds of data from the same people or samples together, for example microbes and metabolites, or RNA and protein. In a note you can line the data up, find links between them and relate them to outcomes such as survival.
Prompts to try
Copy a prompt into a new note and send it. When the result is back, send the follow-up.
Survival by cancer subtype. 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.Shared patterns in microbes, metabolites and liver markers. Send:
Load HintikkaXOData from mia. What do the three experiments measure?Then:
Agglomerate the microbiota to genus and keep the most prevalent genera.Which species go with which active enzymes? 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.Four kinds of data from leukaemia patients:
Load the CLL data from MOFAdata. What are the four views, and how many samples does each have?
What a note can do
Notes keep linked data in a MultiAssayExperiment, one R object that ties several data tables to the same people or samples.
- Get data. Load miniACC, curatedTCGAData, HintikkaXOData, ibdmdb, MOFAdata, SingleCellMultiModal, depmap or HoloFood data, or combine your own tables.
- Line up samples. Keep only the people or samples that appear in every table.
- Links between tables. Correlate each feature in one table 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. Kaplan-Meier curves, log-rank tests and Cox models with the survival package.
Notes follow the MOFA2 workflows and the multi-omics chapters of the OMA book.
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 map from two linked tables.
- Salmon fatty acids and gut microbes from HoloFood: host measurements and gut microbes from a feeding trial.