vimalinx/bio-agent / .claude/skills/shift-bed
shift-bed
UnverifiedUse when you need to shift genomic intervals in BED/GFF/VCF files by a specified number of base pairs, either uniformly or strand-specifically.
shift-bed
Quick Start
- Command:
shiftBed -i <bed/gff/vcf> -g <genome> -s <int> - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/shiftBed - Full reference: See
references/help.md
When To Use This Tool
- Translate intervals left or right along the genome by a fixed distance.
- Shift plus- and minus-strand features by different amounts with
-pand-m. - Express shifts as a fraction of feature length with
-pct. - Create offset control regions or adjust reported interval centers while preserving interval width.
Common Patterns
# 1) Shift every interval 100 bp
shiftBed \
-i peaks.bed \
-g genome.sizes \
-s 100
# 2) Shift plus and minus strands in opposite directions
shiftBed \
-i transcripts.bed \
-g genome.sizes \
-p 500 \
-m -500
# 3) Shift by 10% of each feature length
shiftBed \
-i intervals.bed \
-g genome.sizes \
-s 0.10 \
-pct
Recommended Workflow
- Prepare a genome file (or FASTA
.fai) so bedtools can clamp shifted features to chromosome bounds. - Decide whether the shift is uniform with
-sor strand-specific with-pand-m. - Decide whether values are absolute base pairs or fractions of feature length via
-pct. - Inspect the output for boundary clipping at chromosome starts and ends before using it in downstream analysis.
Guardrails
-iand-gare both required.- Use either
-salone or-ptogether with-m; those modes are mutually exclusive. - With
-pct, values like0.10mean 10% of feature length, not 0.10 bp. - Starts are clipped to 0 and ends are clipped to chromosome length when a shift would move a feature out of bounds.
- Prefer
-hfor help; GNU-style--helpand--versionemit wrapper errors before usage text.
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: 192k | 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: 192k | 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: 192k | Updated | Claude CodeCodex | Verified | Install |