vimalinx/bio-agent / .claude/skills/bed-to-bam
bed-to-bam
VerifiedUse when converting BED/GFF/VCF feature records to BAM format for visualization or downstream analysis.
bed-to-bam
Quick Start
- Command:
bedToBam -i intervals.bed -g genome.txt [options] > output.bam - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/bedToBam - Full reference: See
references/help.md
When To Use This Tool
- Convert interval-like features into BAM for browser display or BAM-based tooling.
- Emit BAM records with a chosen mapping quality.
- Preserve BED12 block structure as BAM CIGAR operations.
- Produce compressed or uncompressed BAM output for downstream integration.
Common Patterns
# 1) Convert BED to BAM
bedToBam \
-i peaks.bed \
-g genome.txt > peaks.bam
# 2) Set a custom mapping quality
bedToBam \
-i peaks.bed \
-g genome.txt \
-mapq 60 > peaks.mapq60.bam
# 3) Preserve BED12 blocks in CIGAR strings
bedToBam \
-i transcripts.bed12 \
-g genome.txt \
-bed12 > transcripts.bam
Recommended Workflow
- Build a correct genome file matching the interval coordinate system.
- Confirm BED inputs are at least BED4 if you expect robust BAM conversion.
- Add
-bed12only for true BED12 input where block-aware CIGAR is desired. - Validate the BAM with
samtools viewor a genome browser before relying on it downstream.
Guardrails
-iand-gare required.- BED input should be BED4 or higher because the BAM record needs a name field.
-bed12assumes BED12 semantics; using it on non-BED12 input gives misleading BAM structure.- Default mapping quality is
255, which is a placeholder-like value rather than an empirical alignment score. - Prefer
-hfor help; GNU-style--help/--versioncalls on these wrappers are noisy.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |