metagenome-functional-profiling
Functional annotation of metagenomic data using HUMAnN 3 for pathway abundance, Prokka for gene prediction, and eggNOG-mapper for ortholog assignment.
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- metagenome-functional-profiling
- description
- Functional annotation of metagenomic data using HUMAnN 3 for pathway abundance, Prokka for gene prediction, and eggNOG-mapper for ortholog assignment.
02 资源文件 9
- 参考文档agents/claude.yaml357 B
- 参考文档agents/openai.yaml358 B
- 参考文档agents/README.md322 B
- 资产文件assets/.gitkeep—
- 参考文档config.yaml347 B
- 参考文档references/humann-prokka-eggnog.md4.6 KB
- 参考文档references/README.md68 B
- 脚本scripts/batch_run.sh4.6 KB
- 脚本scripts/run.sh8.5 KB
03 SKILL.md 正文
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.
04 同仓库更多 Skills
structured-intelligence-skill-creator
Create or update repository skills that conform to local templates, provider metadata requirements, registry rules, and validation workflows.
stat-survival-analysis
Estimate and compare survival functions using Kaplan-Meier curves and log-rank test, with optional Cox proportional hazards regression.
stat-pca
Perform PCA on a numeric data matrix to reduce dimensionality, visualize sample structure, and identify top contributing features.
stat-pairwise-correlation
Compute pairwise correlations and significance tests across all numeric variables, and produce a correlation heatmap.
stat-nonlinear-embedding
Embed high-dimensional data into 2D using t-SNE or UMAP for exploratory visualization of sample or cell relationships.
stat-logistic-regression
Fit a logistic regression model for binary outcomes, report odds ratios and model performance (AUC-ROC, confusion matrix).