Functional annotation
Functional analysis asks what genes or microbes do, not just which ones are there. In a note you can test pathways and gene families in microbiome data, and check whether a list of genes points to a known pathway.
Prompts to try
Copy a prompt into a new note and send it. When the result is back, send the follow-up.
Do pathways change along with species? Send:
Load the species and pathway abundances of ThomasAM_2018a from curatedMetagenomicData. It is an Italian cohort with colorectal cancer, adenomas and controls.Then:
Run MaAsLin 3 on species for cancer versus control, adjusting for age, sex and BMI.Then:
Run the same model on the unstratified pathways. Do the significant pathways match the significant species?Work with gene families. Send:
Load the gene family profiles of PehrssonE_2016 from curatedMetagenomicData. It is households in a Peruvian shantytown and a rural village in El Salvador.Then:
Why are UniRef gene families usually summarised before testing?Test groups of microbes instead of one at a time. Send:
Load the species relative abundances of HMP_2019_ibdmdb from curatedMetagenomicData, with age, disease and current antibiotic use.Then:
What is microbe set enrichment analysis, and how does it differ from testing one species at a time?
What a note can do
- Community function. Load pathway, enzyme and gene family profiles (made with HUMAnN) from curatedMetagenomicData or a Zenodo record, or read your own. Test them between groups just like species. See Microbiome and metagenomics.
- Gene sets. A gene set is a list of genes that work together, such as a GO term (a named biological role) or a Reactome or KEGG pathway. msigdbr provides these lists for human, mouse and other species.
- Enrichment. fgsea checks whether the genes at the top of your results belong to the same gene set more often than by chance. This is called GSEA.
- Gene names. org.Hs.eg.db and org.Mm.eg.db translate between gene IDs and symbols for human and mouse.
- Single cells. AUCell gives each cell a score for a gene set.
To make HUMAnN profiles or gene annotations from your own reads or genomes, use Reports on Roihu, with CSC tools such as HUMAnN, eggNOG-mapper, InterProScan, DIAMOND and HMMER. The tables can then go into a note.
Example notes

- What pathways change in colorectal cancer?: MaAsLin3 on species and on pathways, side by side.
- Functional pathways in two Indian cities: pathway abundances instead of species.
- Gene families in households in Peru and El Salvador: filtering, naming and comparing gene families.
- Microbe set enrichment analysis in IBD: groups of microbes and of pathways tested against disease.
- Zenodo: stroke, gut species and enzymes: species and enzyme profiles tested together.
- Pathways in malnourished children with diarrhoea: a very small study, and how little survives correction.
- Species and their transcribed enzymes in IBD: which species go with which active enzymes.