Skip to content

vimalinx/bio-agent / .claude/skills/pair-to-bed

pair-to-bed

Verified

Use 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, or notboth.
  • Evaluate span-based overlap using the inner span (ispan) or outer span (ospan) of a pair.
  • Work directly from BAM pairs with -abam when 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

  1. Decide whether the biology is about pair ends separately (either, both, xor) or about the fragment span (ispan, ospan).
  2. Use BEDPE if you already have pair geometry extracted; otherwise consider -abam with query-grouped BAM input.
  3. Add -f only when a minimal fractional overlap is biologically justified.
  4. Apply strand constraints only for end-wise overlap modes where strand meaningfully applies.

Guardrails

  • -a or -abam plus -b is required.
  • -abam requires BAM grouped or sorted by query name.
  • ispan, ospan, notispan, and notospan ignore records whose mates are on different chromosomes.
  • -s and -S do not apply to ispan / ospan modes.
  • With BAM input, the default output stays BAM unless you request -bedpe or -ubam.
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: 196kUpdated Claude CodeCodexVerifiedInstall
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: 193kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 193kUpdated Claude CodeCodexVerifiedInstall
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: 193kUpdated Claude CodeCodexVerifiedInstall