bohuyeshan-apb/openagent-labforge-bio/abundance-estimation
Claude Code and agent skill by bohuyeshan-apb/openagent-labforge-bio
- community
Checking that the SKILL.md file is still in the repository.
Species abundance estimation using Bracken with Kraken2 output. Redistributes reads from higher taxonomic levels to species for more accurate estimates. Use when accurate species-level abundances are needed from Kraken2 classification output.
Install
npx vskill@latest install bohuyeshan-apb/openagent-labforge-bio/abundance-estimationSKILL.md
The same SKILL.md was published earlier as tywei08/bioskills-plugin/abundance-estimation.
Version Compatibility
Reference examples tested with: Bracken 2.9+, Kraken2 2.1+, MetaPhlAn 4.1+, pandas 2.2+
Before using code patterns, verify installed versions match. If versions differ:
- Python:
pip show <package>thenhelp(module.function)to check signatures - CLI:
<tool> --versionthen<tool> --helpto confirm flags
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Abundance Estimation with Bracken
"Get species-level abundances from my Kraken2 results" → Redistribute reads assigned to higher taxonomic levels down to species using Bracken's Bayesian re-estimation for more accurate abundance profiles.
- CLI:
bracken -d db -i kraken2.report -o bracken.output -r 150 -l S
Basic Abundance Estimation
Full Workflow with Kraken2
Different Taxonomic Levels
Build Bracken Database
Output Format
Filter Low-Abundance Taxa
Combine Multiple Samples
Parse Bracken Output in Python
Convert to Relative Abundance
Create Abundance Matrix
Goal: Merge per-sample Bracken outputs into a single species-by-sample abundance matrix for downstream statistical analysis.
Approach: Load each Bracken output, extract species names and read counts, iteratively outer-merge on species name, and fill missing values with zero.
Key Parameters
| Parameter | Description | |
|---|---|---|
| -d | Kraken2 database path | |
| -i | Input Kraken2 report | |
| -o | Output abundance file | |
| -w | Output updated report (optional) | |
| -r | Read length used | |
| -l | Taxonomic level | |
| -t | Minimum read threshold |
Taxonomic Levels
| Level | Code | Description | |
|---|---|---|---|
| Kingdom | K | Bacteria, Archaea | |
| Phylum | P | Major divisions | |
| Class | C | Class level | |
| Order | O | Order level | |
| Family | F | Family level | |
| Genus | G | Genus level | |
| Species | S | Species level |
Read Length Options
Pre-built databases typically include: 50, 75, 100, 150, 200, 250, 300 bp
Choose the length closest to your actual read length.
Related Skills
- kraken-classification - Generate Kraken2 report
- metaphlan-profiling - Alternative profiling method
- metagenome-visualization - Visualize abundances
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingresources/bioSkills/metagenomics/abundance-estimation/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bohuyeshan-apb/openagent-labforge-bio/abundance-estimation)