mims-harvard/tooluniverse

tooluniverse-microbiome-research

Microbiome research using MGnify, GTDB, ENA, OLS (ENVO biomes), and EuropePMC.

First seen May 21, 2026

Installation

$ npx skills add mims-harvard/tooluniverse --skill tooluniverse-microbiome-research

Summary

  • Microbiome research using MGnify, GTDB, ENA, OLS (ENVO biomes), and EuropePMC.
  • Covers study discovery, taxonomic profiling, host-microbe interaction analysis, and biome-by-condition queries.
  • Use for microbiome study selection, organism-environment associations, and clinical-microbiome literature review.
  • Distinct from analytical workflow (use tooluniverse-metagenomics-analysis for that).

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from mims-harvard/tooluniverse · top by installs.

npx skills add mims-harvard/tooluniverse

Browse all from mims-harvard/tooluniverse

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1.7K
License LICENSE
Default branch main
Open issues 9
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 12,983 B
  • docs SUMMARY.md 429 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 132 installs

SKILL.md

Microbiome Research with ToolUniverse

Comprehensive microbiome analysis using MGnify (EBI metagenomics), GTDB (genome taxonomy), ENA (sequencing data), OLS (ontology lookup for ENVO biomes), and EuropePMC (literature).

Core Tools

Tool Purpose Auth
MGnifysearchstudies Find metagenomics studies by biome/keyword None
MGnifygetstudy_detail Study metadata, abstract, sample counts None
MGnifylistanalyses List taxonomic/functional analysis outputs for a study None
MGnifygettaxonomy Taxonomic composition from an analysis None
MGnifygetgo_terms GO functional annotations from an analysis None
MGnifygetinterpro InterPro protein domain annotations None
MGnifylistbiomes Browse MGnify biome hierarchy None
MGnifysearchgenomes Search metagenome-assembled genomes (MAGs) None
MGnifygetgenome Genome quality metrics (completeness, contamination) None
GTDBsearchgenomes Search bacterial/archaeal genomes by taxonomy None
GTDBgetspecies Species cluster details from GTDB None
GTDBgettaxon_info Taxonomic rank info in GTDB hierarchy None
GTDBsearchtaxon Search taxa by partial name across all ranks None
ENAPortalsearchstudies Find sequencing studies in ENA. Query format: description="keyword" None
ENAPortalsearchsamples Find samples with environmental metadata None
olssearchterms Search ENVO ontology for biome/environment terms None
EuropePMCsearcharticles Find microbiome publications None
PubMedsearcharticles Literature search (different coverage than EuropePMC) None

For drug-microbiome studies, also use:

  • PubChemgetCIDbycompoundname / PubChemgetcompoundpropertiesbyCID — drug identity
  • CTDgetchemicalgeneinteractions — drug-gene interactions (e.g., metformin affects 1,175+ genes)
  • keggsearchpathway / kegggetpathway_info — microbial metabolic pathways (butanoate, propanoate)
  • ReactomeAnalysispathwayenrichment — host pathway enrichment for drug-affected genes
  • drugbankvocabsearch — drug mechanism and targets

MGnify tip: Use concise single-keyword searches (e.g., "metformin") — multi-word queries may timeout. The MGnify API can be slow for broad searches.

Quick Start

from tooluniverse import ToolUniverse

tu = ToolUniverse()
tu.load_tools()

# 1. Search for gut microbiome studies
studies = tu.run_one_function({
    'name': 'MGnify_search_studies',
    'arguments': {'search': 'gut microbiome', 'size': 5}
})

# 2. Get study details
detail = tu.run_one_function({
    'name': 'MGnify_get_study_detail',
    'arguments': {'study_accession': 'MGYS00006860'}
})

# 3. List analyses for a study
analyses = tu.run_one_function({
    'name': 'MGnify_list_analyses',
    'arguments': {'study_accession': 'MGYS00006860', 'size': 5}
})

# 4. Get taxonomic profile from an analysis
taxonomy = tu.run_one_function({
    'name': 'MGnify_get_taxonomy',
    'arguments': {'analysis_accession': 'MGYA00612683'}
})

# 5. Get functional annotations
go_terms = tu.run_one_function({
    'name': 'MGnify_get_go_terms',
    'arguments': {'analysis_accession': 'MGYA00612683'}
})

Common Workflows

Workflow 1: Study Discovery by Environment

Find studies for a specific biome using MGnify's biome hierarchy:

# Browse biome hierarchy
biomes = tu.run_one_function({
    'name': 'MGnify_list_biomes',
    'arguments': {'lineage': 'root:Host-associated:Human', 'depth': 3}
})

# Search studies in a specific biome
studies = tu.run_one_function({
    'name': 'MGnify_search_studies',
    'arguments': {'biome': 'root:Host-associated:Human:Digestive system', 'size': 10}
})

# Look up ENVO ontology terms for environment metadata
envo = tu.run_one_function({
    'name': 'ols_search_terms',
    'arguments': {'query': 'human gut', 'ontology': 'envo', 'rows': 5}
})

Workflow 2: Taxonomic Profiling

Get the microbial composition of a metagenomics sample:

# Get analyses for a study
analyses = tu.run_one_function({
    'name': 'MGnify_list_analyses',
    'arguments': {'study_accession': 'MGYS00006860', 'size': 3}
})

# Get taxonomy for a specific analysis
taxonomy = tu.run_one_function({
    'name': 'MGnify_get_taxonomy',
    'arguments': {'analysis_accession': 'MGYA00612683'}
})
# Returns organisms with lineage, abundance counts, and taxonomy rank

Workflow 3: Genome Quality Assessment

Evaluate metagenome-assembled genomes (MAGs):

# Search for genomes from a specific taxon
genomes = tu.run_one_function({
    'name': 'MGnify_search_genomes',
    'arguments': {'search': 'Faecalibacterium prausnitzii', 'size': 5}
})

# Get quality metrics for a genome
genome = tu.run_one_function({
    'name': 'MGnify_get_genome',
    'arguments': {'genome_accession': 'MGYG000000001'}
})
# Returns completeness, contamination, N50, genome length, taxonomy

# Cross-reference with GTDB taxonomy
gtdb = tu.run_one_function({
    'name': 'GTDB_search_genomes',
    'arguments': {'operation': 'search_genomes', 'query': 'Faecalibacterium', 'items_per_page': 5}
})

Workflow 4: Functional Annotation

Discover functional potential of a metagenome:

# GO terms from an analysis
go_terms = tu.run_one_function({
    'name': 'MGnify_get_go_terms',
    'arguments': {'analysis_accession': 'MGYA00612683'}
})

# InterPro domains
interpro = tu.run_one_function({
    'name': 'MGnify_get_interpro',
    'arguments': {'analysis_accession': 'MGYA00612683'}
})

Workflow 5: Literature Integration

Combine metagenomics data with published research:

# Find relevant publications
papers = tu.run_one_function({
    'name': 'EuropePMC_search_articles',
    'arguments': {'query': 'gut microbiome AND Faecalibacterium AND (IBD OR "Crohn")', 'limit': 10}
})

# Find sequencing data in ENA
ena_studies = tu.run_one_function({
    'name': 'ENAPortal_search_studies',
    'arguments': {'query': 'description="gut microbiome 16S"', 'limit': 5}
})

MGnify Biome Hierarchy

Key biome lineages (use MGnifylistbiomes to discover others):

  • Human gut: root:Host-associated:Human:Digestive system
  • Human oral/skin: root:Host-associated:Human:Oral / root:Host-associated:Human:Skin
  • Soil: root:Environmental:Terrestrial:Soil
  • Ocean/Freshwater: root:Environmental:Aquatic:Marine / root:Environmental:Aquatic:Freshwater
  • Wastewater: root:Engineered:Wastewater

Key Identifiers

MGnify: studies=MGYS, analyses=MGYA, genomes=MGYG. ENA studies=PRJEB. GTDB genomes=GCA_. ENVO terms=ENVO: (e.g. ENVO:00002041).

Reasoning Framework

Starting Point: Define the Question First

Microbiome analysis starts with: what is the question? LOOK UP DON'T GUESS — always check the study type and sequencing method before interpreting results.

Decision tree for data type:

  • Community composition (who is there?) → 16S/ITS amplicon → alpha/beta diversity, differential abundance
  • Functional potential (what can they do?) → Shotgun metagenomics → MGnify GO terms, InterPro, KEGG pathways
  • Active function (what are they doing now?) → Metatranscriptomics → specialized pipelines (not MGnify/GTDB alone)

Before calling any tool, determine which data type the user has via MGnifygetstudy_detail — the pipeline type (amplicon vs shotgun) determines which analyses are valid. Do not apply 16S diversity metrics to metagenomic data or vice versa.

Dysbiosis Assessment Strategy

Dysbiosis (microbial imbalance) is context-dependent — there is no universal "healthy" microbiome. LOOK UP DON'T GUESS — compare to study-matched controls, not general population references.

  1. Check alpha diversity: Reduced Shannon index relative to controls suggests dysbiosis. Use MGnifygettaxonomy to get community profiles, then assess richness and evenness.
  2. Identify keystone taxa shifts: Loss of known beneficial taxa (e.g., Faecalibacterium, Roseburia in gut) or bloom of pathobionts (e.g., Enterobacteriaceae). LOOK UP taxa roles with GTDBgetspecies and literature via EuropePMCsearcharticles.
  3. Functional consequences: Does taxonomic shift correlate with loss/gain of metabolic pathways? Check MGnifygetgoterms and MGnifyget_interpro for the affected samples.
  4. Confounders: Antibiotics, diet, age, and geography all affect microbiome composition. A dysbiosis claim requires controlling for these factors or acknowledging them as limitations.

Taxonomic vs Functional Analysis: When to Use Each

  • Taxonomic analysis alone is sufficient when the question is "which organisms are present?" or "does community composition differ between groups?" Use MGnifygettaxonomy + GTDBsearchgenomes.
  • Functional analysis is needed when the question is "what metabolic capabilities differ?" or "why does a taxonomic shift matter?" Use MGnifygetgoterms + MGnifygetinterpro + keggsearch_pathway.
  • Both together when linking organisms to functions (e.g., "which taxa drive butyrate production in healthy vs IBD gut?"). Cross-reference taxonomic profiles with functional annotations from the same MGnify analysis.

Evidence Grading

Tier Description Example
T1 Replicated finding across multiple cohorts with consistent effect Reduced Faecalibacterium in IBD (>10 independent studies)
T2 Single well-powered study (n > 100) with appropriate controls Metformin-associated Akkermansia enrichment in a controlled trial
T3 Pilot study or observational association, small sample size Taxonomic shift in n=15 case-control, no validation cohort
T4 Computational prediction or single-sample observation Novel MAG with predicted function, no culture confirmation

Interpretation Guidance

Alpha diversity (within-sample): Shannon index measures richness and evenness. Higher Shannon (>3.0 for gut) suggests a stable community. Reduced alpha diversity is associated with dysbiosis (IBD, antibiotics). Always compare to study-matched controls — diversity varies by body site, sequencing depth, and geography.

Beta diversity (between-sample): Bray-Curtis (abundance-based) or UniFrac (phylogenetic). PERMANOVA p < 0.05 with R-squared > 0.05 indicates condition-driven clustering. Low R-squared (<0.02) even with significant p suggests the effect is small relative to inter-individual variation. Choose weighted UniFrac when abundant taxa matter most; unweighted when rare taxa are important.

Taxonomic composition: Relative abundance at phylum level (Firmicutes/Bacteroidetes ratio) is a coarse indicator; genus- or species-level resolution is preferred. A taxon present at >1% relative abundance in multiple samples is reliably detected. Taxa at <0.1% may be noise or sequencing artifacts. GTDB taxonomy may reclassify NCBI names (e.g., Firmicutes split into multiple phyla).

Functional profiling: GO terms and InterPro domains from MGnify reflect the metabolic potential (not necessarily activity) of the community. Enrichment of specific pathways (e.g., butyrate production, LPS biosynthesis) should be interpreted alongside taxonomic data to identify which organisms contribute the functions.

Synthesis Questions

A complete microbiome report should answer:

  1. How does alpha diversity compare between conditions, and is the difference significant?
  2. Does beta diversity analysis show condition-driven clustering (PERMANOVA)?
  3. Which taxa are differentially abundant, and are they known commensals or pathobionts?
  4. What functional pathways are enriched, and which taxa likely drive them?
  5. How do findings compare to published studies for the same biome/condition (literature context)?

Tips

  • MGnify study accessions start with MGYS, analyses with MGYA, genomes with MGYG
  • Use MGnifylistbiomes first to find the correct biome lineage string
  • MGnifygettaxonomy returns phylum-level to species-level composition
  • GTDB provides standardized bacterial/archaeal taxonomy (differs from NCBI in some lineages)
  • For 16S amplicon studies, taxonomy is the primary output; for shotgun metagenomics, both taxonomy and functional annotations are available
  • The size parameter in MGnify tools controls results per page (max 100)