ngs-amplicon-microbiome — Claude skill: amplicon microbiome
A skill for marker-gene microbiome analysis from amplicon FASTQs: 16S, 18S, ITS, COI. Runs nf-core/ampliseq, QIIME2 and DADA2 workflows.
npx skills add openai/plugins --skill ngs-amplicon-microbiome -a codexWhat ngs-amplicon-microbiome does
The skill takes amplicon FASTQs and carries them toward an ASV table, taxonomy, diversity or plots. It first confirms the inputs: marker region, primer sequences and orientation, paired-end or single-end reads, whether reads should be merged, taxonomy database and version, and sample metadata. Without that context it will not present a run as analysis-ready.
For reproducible end-to-end runs it prefers nf-core/ampliseq. QIIME2 or DADA2 directly — when you want notebook-level control or an existing lab protocol requires it. Before a real run it verifies primer trimming and truncation choices against read-quality profiles instead of picking lengths up front. Mixing taxonomy database versions without recording them makes runs hard to compare, so the skill keeps them explicit.
The local FASTQ package takes a sample sheet, validates read paths and structure, runs seqkit stats and FastQC/MultiQC when available, and writes amplicon_analysis_status.json. With FASTQs alone that is a read-QC and readiness bundle, not a finished analysis. A backend run needs primers, metadata and taxonomy resources; the direct DADA2 path checks for Rscript and the dada2 R package before executing. When downstream tables are labelled synthetic or carry samples missing from the real sample sheet, the run is marked review-only and beta diversity is blocked unless --allow-synthetic-diversity is passed explicitly.
What it helps with
- run a 16S or ITS amplicon analysis from FASTQs
- check read readiness before choosing primers and a denoiser
- build an ASV table and taxonomy through QIIME2 or DADA2
- compute alpha diversity and Bray-Curtis PCoA
- track which taxonomy database versions a run used
Example prompts for the agent
- Run the amplicon microbiome preflight:
python plugins/ngs-analysis/scripts/ngs_preflight.py --pipeline amplicon_microbiome --emit-install-plan - Run the local package on
amplicon_samples.tsvand show me the read readiness status - Start the QIIME2 backend with my primers and the silva-138 classifier, metadata in
sample_metadata.tsv
How to install ngs-amplicon-microbiome
1Skills CLI (Vercel)
npx skills add openai/plugins --skill ngs-amplicon-microbiome -a codex2Manually: put the files in place
.agents/skills/ngs-amplicon-microbiome/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add openai/plugins --skill ngs-amplicon-microbiome -a claude-code2Manually: put the files in place
~/.claude/skills/ngs-amplicon-microbiome/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/ngs-amplicon-microbiome/
Manually: put the files in place
.cursor/skills/ngs-amplicon-microbiome/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install openai/plugins ngs-amplicon-microbiome2Manually: put the files in place
.github/skills/ngs-amplicon-microbiome/SKILL.mdPlatform CLI
gemini skills install https://github.com/openai/plugins --path plugins/ngs-analysis/skills/ngs-amplicon-microbiomeManually: put the files in place
.devin/skills/ngs-amplicon-microbiome/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: Codex skills: how to install, where they live, how to call them
Questions about ngs-amplicon-microbiome
How do I install ngs-amplicon-microbiome in Claude?
Run npx skills add openai/plugins --skill ngs-amplicon-microbiome, then npx skills add openai/plugins --skill ngs-amplicon-microbiome -a codex. The skill file lands at .agents/skills/ngs-amplicon-microbiome/SKILL.md.
What does ngs-amplicon-microbiome do?
It handles marker-gene analysis from amplicon FASTQs: confirms inputs, runs nf-core/ampliseq, QIIME2 or DADA2, and writes ASV, taxonomy and diversity tables.
What do I need for a full analysis rather than QC only?
Primer sequences and orientation, a taxonomy database with its version, and sample metadata. With FASTQs alone the skill produces a read-QC and readiness bundle.
Source text
SKILL.md · MIT
--- name: ngs-amplicon-microbiome description: Kick off public 16S, 18S, ITS, COI, or other marker-gene amplicon microbiome workflows using nf-core/ampliseq, QIIME2, DADA2, and Cutadapt. --- # Amplicon Microbiome Use this skill for marker-gene microbiome analysis from amplicon FASTQs. ## Essential Inputs Confirm: - marker region: 16S, 18S, ITS, COI, or custom - primer sequences and orientation - paired-end or single-end reads - whether reads should be merged - taxonomy database and version - sample metadata - endpoint: ASV table, taxonomy, diversity, differential abundance, or plots ## Public Defaults Prefer `nf-core/ampliseq` for reproducible end-to-end runs. Use QIIME2 or DADA2 directly when the user wants notebook-level control or an existing lab protocol requires it. ## Preflight ```bash python plugins/ngs-analysis/scripts/ngs_preflight.py --pipeline amplicon_microbiome --emit-install-plan ``` ## Local Execution Package For FASTQ intake/QC before primer, ASV, and taxonomy decisions, use: ```bash python plugins/ngs-analysis/scripts/run_fastq_assay_package.py \ --lane amplicon_microbiome \ --sample-sheet amplicon_samples.tsv \ --execute ``` This validates read paths and structure, runs seqkit stats and FastQC/MultiQC when available, and writes `amplicon_analysis_status.json`. The runner now also emits `methods/amplicon_methods.json` plus a concrete backend handoff bundle under `workflow/` so primer, denoiser, truncation, normalization, and taxonomy choices are machine-readable even before a full backend is run. If the user asks for a full amplicon analysis rather than QC/readiness, do not treat FASTQs alone as sufficient. Require primer sequences, primer orientation, taxonomy database plus version, and sample metadata before presenting the run as analysis-ready. Without that context, run the local execution package and describe the result as a read-QC/readiness bundle only. For backend ASV/taxonomy/diversity execution when primers, metadata, and taxonomy resources are available, use: ```bash python plugins/ngs-analysis/scripts/run_amplicon_microbiome.py \ --sample-sheet amplicon_samples.tsv \ --backend qiime2 \ --primer-forward GTGYCAGCMGCCGCGGTAA \ --primer-reverse GGACTACNVGGGTWTCTAAT \ --taxonomy-classifier silva-138-classifier.qza \ --metadata sample_metadata.tsv \ --execute ``` Use `--backend dada2` for a direct R/Bioconductor ASV path. The plugin includes `workflows/amplicon_microbiome/run_dada2_backend.R`; the runner checks for `Rscript` and the `dada2` R package before execution, then writes normalized ASV, representative-sequence, read-retention, and optional taxonomy tables under `tables/`. For nf-core execution, use `plugins/ngs-analysis/scripts/run_nfcore_pipeline.py --pipeline ampliseq`. The direct backend runner also emits `resources/resource_plan.json`, `resource_manifest.tsv`, `resource_env.sh`, and `resource_readiness.md`. The resource check is advisory by default when a QIIME classifier is supplied directly; add `--bundle-root silva_138_amplicon=<path>`, `--include-optional-resources`, and `--require-resource-plan` when missing registered taxonomy databases should block readiness. The backend runner writes native normalized tables when QIIME2/DADA2/nf-core outputs are present: - `tables/asv_table.tsv` - `tables/representative_sequences.fasta` for direct DADA2 runs - `tables/taxonomy.tsv` - `tables/read_retention.tsv` - `tables/amplicon_backend_summary.json` - `tables/alpha_diversity.tsv`, `tables/bray_curtis_distance.tsv`, and `tables/top_taxa_or_features.tsv` when a normalized ASV/feature table is available QIIME2 BIOM-only feature-table exports are recorded as requiring conversion, with a `biom convert` command in the backend summary. Do not claim diversity or taxonomy interpretation unless these normalized tables or equivalent supplied inputs exist. ## Kickoff Pattern nf-core preflight run: ```bash nextflow run nf-core/ampliseq \ -profile test,docker \ --outdir results/ampliseq_test ``` Before a real run, verify primer trimming and truncation choices from read-quality profiles. ## Visualization Outputs The local FASTQ package always writes `visualizations/index.html` and `visualizations/visualization_manifest.json`. With only FASTQs, this is a read-QC/readiness bundle. If an ASV/feature table is available, pass it to the runner with `--asv-table` to generate alpha diversity, Bray-Curtis PCoA, and rarefaction artifacts. If a feature taxonomy table is available, pass `--taxonomy-table` to generate taxa barplots. When downstream tables are labeled synthetic or contain sample columns that are not present in the real sample sheet, the runner marks the run review-only and blocks beta-diversity/PCoA unless `--allow-synthetic-diversity` is set explicitly. The run also emits `qc_verdict.json` and, for amplicon runs, `qc_interpretation.json` with machine-readable reason codes, a readiness verdict, and follow-on command templates for generating ASV/taxonomy tables and re-rendering plugin-native plots. Backend runs additionally write `tables/amplicon_backend_summary.json` so exported ASV, taxonomy, read-retention, and BIOM-conversion status are auditable. When a normalized ASV/feature table is available, the backend runner also writes `tables/amplicon_diversity_summary.json`, `visualizations/amplicon_backend_dashboard.html`, and SVG plots for sample depth, Shannon diversity, and top taxa/features. If the ASV table is absent, these outputs remain explicitly unavailable rather than inferred from FASTQ QC. ## Guardrails - Do not choose truncation lengths before looking at quality distributions. - Do not mix taxonomy database versions without recording them. - Preserve negative controls and extraction blanks in metadata.
© OpenAI · MIT · openai/plugins