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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.8 KB |
| references/help.md | markdown | 1.6 KB |
SKILL.md
View on GitHub---
name: bed-to-bam
description: Use when converting BED/GFF/VCF feature records to BAM format for visualization or downstream analysis.
disable-model-invocation: true
user-invocable: true
---
# 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
```bash
# 1) Convert BED to BAM
bedToBam \
-i peaks.bed \
-g genome.txt > peaks.bam
```
```bash
# 2) Set a custom mapping quality
bedToBam \
-i peaks.bed \
-g genome.txt \
-mapq 60 > peaks.mapq60.bam
```
```bash
# 3) Preserve BED12 blocks in CIGAR strings
bedToBam \
-i transcripts.bed12 \
-g genome.txt \
-bed12 > transcripts.bam
```
## Recommended Workflow
1. Build a correct genome file matching the interval coordinate system.
2. Confirm BED inputs are at least BED4 if you expect robust BAM conversion.
3. Add `-bed12` only for true BED12 input where block-aware CIGAR is desired.
4. Validate the BAM with `samtools view` or a genome browser before relying on it downstream.
## Guardrails
- `-i` and `-g` are required.
- BED input should be BED4 or higher because the BAM record needs a name field.
- `-bed12` assumes 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 `-h` for help; GNU-style `--help` / `--version` calls 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: 198k | 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: 194k | 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: 194k | 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: 194k | Updated | Claude CodeCodex | Verified | Install |