Skill: metagenome-functional-profiling
Use When
- The user wants to know what metabolic functions are present in a metagenome.
- The user needs pathway-level abundance profiles (MetaCyc, KEGG).
- The user wants to annotate predicted genes from MAGs or assembled contigs.
- The user needs gene family and ortholog group assignments.
Inputs
- Required:
- Host-depleted FASTQ file(s) for HUMAnN, OR assembled contigs/MAGs FASTA for Prokka/eggNOG.
- Optional:
--tool STR— Tool to use:humann,prokka, oreggnog(default:humann).--db PATH— HUMAnN databases (ChocoPhlAn, UniRef) or eggNOG database path.--taxonomic-profile FILE— Taxonomic profile frommetagenome-taxonomic-profilingto speed up HUMAnN.--kingdom STR— Prokka kingdom (default:Bacteria).--threads N— Number of threads (default: 4).--outdir DIR— Output directory (default:functional_profiling_results).
Workflow
- If HUMAnN: run
humannwith--inputFASTQs, optionally with--taxonomic-profilefor guided search. - HUMAnN produces: gene families (RPK), pathway abundance, pathway coverage.
- Normalize HUMAnN output with
humann_renorm_table(CPM or relative abundance). - If Prokka: run on contigs/MAGs for gene prediction and annotation.
- If eggNOG-mapper: run
emapper.pyon predicted protein sequences for COG/KEGG/GO annotation. - Report: number of gene families, pathways detected, top abundant pathways, functional category distribution.
Output Contract
- HUMAnN gene family table — Gene families with RPK values (
<outdir>/<sample>_genefamilies.tsv). - HUMAnN pathway abundance table — Pathway abundances (
<outdir>/<sample>_pathabundance.tsv). - HUMAnN pathway coverage table — Pathway coverage scores (
<outdir>/<sample>_pathcoverage.tsv). - Prokka annotations — GFF, GBK, FAA, FFN files (
<outdir>/prokka/). - eggNOG annotation table — COG, KEGG, GO annotations (
<outdir>/eggnog/<sample>.emapper.annotations). - Functional summary — Top pathways, gene family counts, functional category distribution (
<outdir>/functional_summary.txt).
Limits
- HUMAnN 3 requires ChocoPhlAn (approximately 15 GB) and UniRef90 (approximately 20 GB) databases.
- Prokka is designed for prokaryotic genomes; use appropriate
--kingdomfor archaea. - eggNOG database is approximately 45 GB.
- HUMAnN is computationally intensive and may take hours per sample; for large cohorts, consider running on HPC.
- HUMAnN, Prokka, and eggNOG-mapper must be installed and available on
$PATH. - Prokka and eggNOG-mapper operate on contigs/proteins, not raw reads.
- Common failure cases:
- HUMAnN ChocoPhlAn or UniRef databases not downloaded or path misconfigured.
- Prokka failing on non-prokaryotic contigs when
--kingdomis set incorrectly. - eggNOG-mapper database version mismatch with the installed emapper version.
微信扫一扫