vimalinx/bio-agent / .claude/skills/print-missing-subranges
print-missing-subranges
UnverifiedUse when reporting gaps in an ordered list of ascending integer positions, identifiers, or coordinates by printing the missing ranges between observed values.
print-missing-subranges
Quick Start
- Command:
print-missing-subranges [file ...] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/print-missing-subranges - I/O shape: reads ordered integers from stdin or files and writes missing ranges such as
3-4
When To Use This Tool
- Find numeric gaps in a sorted one-column list of positions or identifiers.
- Report missing spans between observed values before downstream range filling or QC.
- Keep the logic in a tiny shell pipeline instead of writing custom
awkeach time. - Handle simple integer streams, not BED / GFF interval files.
Common Patterns
# 1) Detect gaps from stdin
printf '1\n2\n5\n8\n' | print-missing-subranges
# 2) Detect gaps from a file
print-missing-subranges ordered_positions.txt
# 3) Use after extracting and sorting numeric identifiers
xtract -pattern DocumentSummary -element Id |
sort -n |
print-missing-subranges
Recommended Workflow
- Reduce the input to one ascending integer per line.
- Sort numerically before calling the wrapper if the source stream is not already ordered.
- Interpret each emitted
start-endrow as a missing inclusive block. - Stop here if you only need gap reporting; use a separate tool if you need interval reconstruction or filling.
Guardrails
- The wrapper assumes ordered ascending integers; unsorted input or duplicates will give misleading ranges.
- There is no real help or version interface, and flags such as
--helpare treated as filenames. - The first expected value is implicitly
1, so an input starting at5will report1-4as missing. - The tool only reports gaps between observed values; it does not infer a terminal upper bound after the last line.
- This is a one-column integer gap finder, not a generic genomic interval subtraction tool.
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 |