Agent SkillsRunchuan-BU/BioClaw › metagenomics

metagenomics

GitHub

用于宏基因组工作流分析,包含宿主耗竭、物种分类、功能谱及耐药性分析。

container/skills/metagenomics/SKILL.md Runchuan-BU/BioClaw

Trigger Scenarios

需要宏基因组数据分析 生成物种丰度表 进行功能通路分析

Install

npx skills add Runchuan-BU/BioClaw --skill metagenomics -g -y
More Options

Non-standard path

npx skills add https://github.com/Runchuan-BU/BioClaw/tree/main/container/skills/metagenomics -g -y

Use without installing

npx skills use Runchuan-BU/BioClaw@metagenomics

指定 Agent (Claude Code)

npx skills add Runchuan-BU/BioClaw --skill metagenomics -a claude-code -g -y

安装 repo 全部 skill

npx skills add Runchuan-BU/BioClaw --all -g -y

预览 repo 内 skill

npx skills add Runchuan-BU/BioClaw --list

SKILL.md

Frontmatter
{
    "name": "metagenomics",
    "tool_type": "mixed",
    "description": "Shotgun metagenomics workflow with host-depletion-aware QC, taxonomic profiling, functional profiling, AMR follow-up, and reproducible community output tables.",
    "primary_tool": "Kraken2"
}

Metagenomics

Version Compatibility

Reference examples assume:

  • fastp 0.23+
  • kraken2 2.1+
  • bracken 2.8+
  • metaphlan 4+
  • humann 3.9+

Verify the environment first:

  • CLI: kraken2 --version, bracken -v, metaphlan --version, humann --version

Overview

Use this skill for shotgun metagenomics when the user needs:

  • QC and host depletion review
  • taxonomic abundance tables
  • functional pathway profiles
  • AMR or strain-level follow-up

When To Use This Skill

  • the data are shotgun metagenomics rather than amplicon sequencing
  • the user wants species or genus abundances, function, or resistance summaries
  • multiple samples need cohort-level comparison

Quick Route

  • host-associated samples: perform host depletion before interpretation
  • taxonomy only: kraken2 + bracken is a common pragmatic route
  • function only or plus taxonomy: add humann
  • strain claims require more evidence than top-level taxonomy calls

Progressive Disclosure

Expected Inputs

  • paired or single-end metagenomic FASTQ
  • sample metadata
  • taxonomy and optional function databases

Expected Outputs

  • results/taxonomy/bracken_species.tsv
  • results/taxonomy/bracken_genus.tsv
  • results/function/pathabundance.tsv
  • results/amr/amr_summary.tsv
  • qc/read_processing_summary.tsv

Starter Pattern

fastp \
  -i sample_R1.fastq.gz \
  -I sample_R2.fastq.gz \
  -o qc/sample.clean.R1.fastq.gz \
  -O qc/sample.clean.R2.fastq.gz \
  --html qc/sample.fastp.html \
  --json qc/sample.fastp.json

kraken2 \
  --db $KRAKEN_DB \
  --paired qc/sample.clean.R1.fastq.gz qc/sample.clean.R2.fastq.gz \
  --report results/taxonomy/sample.kraken.report \
  --output results/taxonomy/sample.kraken.out \
  --confidence 0.1

Workflow

1. Run read QC and optional host depletion

At minimum, inspect read quality, adapter content, and retained reads. For host-associated samples, remove host reads before community interpretation.

2. Profile taxonomy

Use a k-mer or marker-based profiler. Document the database and version because abundance results depend strongly on the reference.

3. Refine abundance tables

Convert raw classification to species or genus abundance tables suitable for cohort comparison.

4. Add function or AMR when requested

Run pathway or AMR profiling only after confirming taxonomic QC and read retention are reasonable.

5. Export cohort-ready outputs

Save per-sample tables and merged matrices with clear metadata joins.

Output Artifacts

results/
├── taxonomy/
│   ├── sample.kraken.report
│   ├── bracken_species.tsv
│   └── bracken_genus.tsv
├── function/
│   └── pathabundance.tsv
└── amr/
    └── amr_summary.tsv
qc/
├── read_processing_summary.tsv
└── sample.fastp.html

Quality Review

  • retained reads after QC should be reported explicitly
  • host-associated samples with large host contamination need a clear host depletion statement
  • avoid over-interpreting taxa with extremely low abundance
  • abundance comparisons should state whether values are relative abundance, counts, or normalized function estimates

Anti-Patterns

  • comparing outputs from different databases as if they were directly interchangeable
  • making strain-level claims from genus-level evidence
  • ignoring host contamination in human-associated or plant-associated samples
  • mixing taxonomy-only and pathway outputs without clarifying what each table means

Related Skills

  • Microbiome Amplicon
  • Pathogen Epidemiological Genomics
  • Phylogenetics

Optional Supplements

  • scikit-bio

Version History

  • a79b8c4 Current 2026-07-25 11:44

Same Skill Collection

.claude/skills/add-figure/SKILL.md
.claude/skills/add-gmail/SKILL.md
.claude/skills/add-omics-runtime-pack/SKILL.md
.claude/skills/add-telegram-swarm/SKILL.md
.claude/skills/add-telegram/SKILL.md
.claude/skills/add-voice-transcription/SKILL.md
.claude/skills/convert-to-docker/SKILL.md
.claude/skills/customize/SKILL.md
.claude/skills/debug/SKILL.md
.claude/skills/setup/SKILL.md
.claude/skills/x-integration/SKILL.md
container/skills/agent-browser/SKILL.md
container/skills/atac-seq/SKILL.md
container/skills/bio-tools/SKILL.md
container/skills/blast-search/SKILL.md
container/skills/cell-annotation/SKILL.md
container/skills/chip-seq/SKILL.md
container/skills/differential-expression/SKILL.md
container/skills/proteomics/SKILL.md
container/skills/pubmed-search/SKILL.md
container/skills/query-alphafold/SKILL.md
container/skills/query-clinvar/SKILL.md
container/skills/query-ensembl/SKILL.md
container/skills/query-geo/SKILL.md
container/skills/query-interpro/SKILL.md
container/skills/query-kegg/SKILL.md
container/skills/query-opentarget/SKILL.md
container/skills/query-pdb/SKILL.md
container/skills/query-reactome/SKILL.md
container/skills/query-stringdb/SKILL.md
container/skills/query-uniprot/SKILL.md
container/skills/report-template/SKILL.md
container/skills/scrna-preprocessing-clustering/SKILL.md
container/skills/sds-gel-review/SKILL.md
container/skills/sec-report/SKILL.md
container/skills/sequence-analysis/SKILL.md
container/skills/skills-hub/SKILL.md
container/skills/structural-biology/SKILL.md

Metadata

Files
0
Version
a79b8c4
Hash
e66eda8c
Indexed
2026-07-25 11:44

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 00:18
浙ICP备14020137号-1 $mapa de visitantes$