metagenome-taxonomic-profiling
Profile microbial community composition from shotgun metagenomic reads using Kraken2/Bracken or MetaPhlAn 4.
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- metagenome-taxonomic-profiling
- description
- Profile microbial community composition from shotgun metagenomic reads using Kraken2/Bracken or MetaPhlAn 4.
02 资源文件 9
- 参考文档agents/claude.yaml330 B
- 参考文档agents/openai.yaml331 B
- 参考文档agents/README.md322 B
- 资产文件assets/.gitkeep—
- 参考文档config.yaml303 B
- 参考文档references/kraken2-bracken-metaphlan.md3.4 KB
- 参考文档references/README.md68 B
- 脚本scripts/batch_run.sh4.6 KB
- 脚本scripts/run.sh6.0 KB
03 SKILL.md 正文
Skill: metagenome-taxonomic-profiling
Use When
- The user wants to determine which organisms are present in a metagenomic sample.
- The user needs taxonomic abundance estimates at species, genus, or phylum level.
- The user wants to compare Kraken2 vs MetaPhlAn profiling approaches.
- The user needs Bracken re-estimation for more accurate species-level abundance from Kraken2 output.
Inputs
- Required:
- Host-depleted FASTQ file(s) (
.fastq,.fq,.fastq.gz,.fq.gz).
- Host-depleted FASTQ file(s) (
- Optional:
--profiler STR— Profiler to use:kraken2ormetaphlan(default:kraken2).--db PATH— Kraken2 or MetaPhlAn database path.--bracken-db PATH— Bracken database path (for Bracken re-estimation).--bracken-len N— Read length for Bracken (e.g., 100, 150, 250).--level CHAR— Taxonomic level for Bracken:S(species),G(genus),P(phylum), etc. (default:S).--threads N— Number of threads (default: 4).--outdir DIR— Output directory (default:taxonomic_profiling_results).--confidence FLOAT— Kraken2 confidence threshold (default:0.0).
Workflow
- If Kraken2: run
kraken2with--reportto generate a Kraken-style taxonomic report. - If Bracken: run
brackenon the Kraken2 report for abundance re-estimation at the specified taxonomic level. - If MetaPhlAn: run
metaphlanwith--input_type fastqto produce a merged abundance table. - Parse reports: extract top N taxa, relative abundances, and compute diversity metrics (Shannon, Simpson).
- Report: classification rate, top taxa, total species detected, alpha diversity estimates.
Output Contract
- Kraken2 report — Standard Kraken2 taxonomic report (
<outdir>/<sample>_kraken2_report.txt). - Bracken abundance table — Re-estimated abundances at the specified level (
<outdir>/<sample>_bracken.txt), if Bracken is used. - MetaPhlAn profile — Relative abundance table (
<outdir>/<sample>_metaphlan_profile.txt), if MetaPhlAn is used. - Classification rate — Percentage of reads assigned to a taxon.
- Top taxa summary — Top 20 taxa by relative abundance.
- Diversity metrics — Shannon and Simpson alpha diversity indices.
Limits
- Kraken2 standard database is approximately 70 GB and requires sufficient RAM to load into memory.
- MetaPhlAn 4 uses marker genes; it has a smaller database and higher species-level precision but may miss novel taxa without markers.
- Bracken requires a pre-built Bracken database matching the Kraken2 database and the read length used in sequencing.
- Kraken2 and MetaPhlAn must be installed and available on
$PATH. - Classification rates vary significantly by database completeness and sample type.
- For low-biomass samples, consider using a higher Kraken2 confidence threshold to reduce false positives.
- Common failure cases:
- Kraken2 database too large to fit in available RAM, causing out-of-memory crash.
- Bracken database read length not matching actual sequencing read length.
- MetaPhlAn marker database version incompatible with the installed MetaPhlAn 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).