vimalinx/bio-agent / .claude/skills/pair-to-bed
pair-to-bed
VerifiedUse when you need to find overlaps between paired-end read intervals (BEDPE or BAM) and genomic features in BED, GFF, or VCF format.
pair-to-bed
Quick Start
- Command:
pairToBed -a pairs.bedpe -b features.bed [options] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/pairToBed - Full reference: See
references/help.md
When To Use This Tool
- Test whether paired-end intervals overlap annotation features.
- Filter BEDPE pairs by logic such as
either,both,xor,neither, ornotboth. - Evaluate span-based overlap using the inner span (
ispan) or outer span (ospan) of a pair. - Work directly from BAM pairs with
-abamwhen you have not materialized BEDPE.
Common Patterns
# 1) Report pairs where either end overlaps a feature
pairToBed \
-a pairs.bedpe \
-b peaks.bed \
-type either
# 2) Keep only pairs where both ends overlap annotation
pairToBed \
-a pairs.bedpe \
-b exons.bed \
-type both
# 3) Test whether the outer span of each pair overlaps a region set
pairToBed \
-a pairs.bedpe \
-b blacklist.bed \
-type ospan
Recommended Workflow
- Decide whether the biology is about pair ends separately (
either,both,xor) or about the fragment span (ispan,ospan). - Use BEDPE if you already have pair geometry extracted; otherwise consider
-abamwith query-grouped BAM input. - Add
-fonly when a minimal fractional overlap is biologically justified. - Apply strand constraints only for end-wise overlap modes where strand meaningfully applies.
Guardrails
-aor-abamplus-bis required.-abamrequires BAM grouped or sorted by query name.ispan,ospan,notispan, andnotospanignore records whose mates are on different chromosomes.-sand-Sdo not apply toispan/ospanmodes.- With BAM input, the default output stays BAM unless you request
-bedpeor-ubam.
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 |