pku-embl/metagenomics-skills/bowtie2
Claude Code and agent skill by pku-embl/metagenomics-skills
- community
Checking that the SKILL.md file is still in the repository.
Gapped short-read alignment to contigs/genomes for coverage used in binning and abundance. Use when indexing assemblies, mapping cleaned PE reads, choosing sensitivity presets, QC of BAM rates, or preparing depths for MetaBAT2/CoverM/BASALT. Alternatives: strobealign, bwa-mem2. Always pair with samtools.
Install
npx vskill@latest install pku-embl/metagenomics-skills/bowtie2SKILL.md
Bowtie 2
Upstream: BenLangmead/bowtie2
Citation
Langmead, B. & Salzberg, S. L. Fast gapped-read alignment with Bowtie 2. Nat. Methods 9, 357–359 (2012). https://doi.org/10.1038/nmeth.1923
Analytical thinking
Mapping is the bridge from assembly → binning. Coverage profiles (not raw reads) drive MetaBAT2/MaxBin2/CONCOCT/SemiBin2 and inform BASALT. Index once per assembly; map every sample that should contribute coverage.
Use the same cleaned PE reads that fed assembly (or the declared coverage set from study-design). Mixing host-contaminated and dehosted libraries silently biases bins.
Presets trade sensitivity vs speed: --sensitive / --very-sensitive for catalogue work; --very-sensitive-local allows soft-clipping useful on fragmented metagenome contigs. Do not treat higher sensitivity as “more true species”.
Prerequisites
| Requirement | Minimum | Recommended | |
|---|---|---|---|
| Contigs | FASTA from assembly | Filtered min-length if huge | |
| Reads | Clean PE FASTQ | From kneaddata | |
| Tools | bowtie2 + samtools | Same env | |
| Threads | 8 | 16–32 | |
| Disk | BAM ≈ 1–2× read set | Keep sorted BAM + .bai |
How to run
Build one index per immutable assembly, then map each manifest-defined read pair into a separate output directory.
For multi-sample binning, build the depth table from an explicit, ordered BAM manifest; do not rely on an unreviewed wildcard or mix references/mappers.
Key parameters
| Option | Guidance | |
|---|---|---|
-x | Index prefix from bowtie2-build | |
-1/-2 | PE mates; keep order from KneadData --reorder | |
-U | SE only when truly single-end | |
-p | Threads (aligner); samtools sort uses -@ | |
--very-sensitive-local | Soft-clip friendly on short contigs | |
--no-unal | Smaller SAM/BAM; lose unmapped diagnostics |
Output & QC
| Artifact | Use | |
|---|---|---|
${id}.bam + .bai | CoverM, binners, inStrain | |
depth.txt | MetaBAT2 -a | |
| stderr overall alignment rate | Library/assembly sanity |
Inspect paired/primary mapping, insert-size behavior, reference names, and depth rather than applying a universal mapping-rate cutoff. Preserve Bowtie2/Samtools versions, reference/read checksums, sensitivity and alignment-policy flags, commands, logs, BAM checksum, and QC tables. Failed streams can leave partial BAMs; only expose downstream after these checks pass.
Decision tree
Troubleshooting
| Symptom | Action | |
|---|---|---|
| ~0% mapped | Contigs/reads mismatch; wrong sample IDs | |
| PE sync errors | Re-KneadData with --reorder | |
bowtie2-build RAM blowup | Split huge contig sets or raise node RAM | |
| Unsorted BAM breaks MetaBAT | Always samtools sort + index |
Related skills
samtools · strobealign · bwa-mem2 · coverm · metabat2 · basalt · study-design
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bowtie2/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. 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/pku-embl/metagenomics-skills/bowtie2)