Skip to content

vimalinx/bio-agent / .claude/skills/fuse-segments

fuse-segments

Unverified

Use when you need to merge simple tabular start/end segments into non-overlapping intervals inside EDirect-style pipelines.

fuse-segments

Quick Start

  • Command: printf '10\t20\tx\n18\t25\ty\n40\t35\tz\n' | PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH /home/vimalinx/miniforge3/envs/bio/bin/fuse-segments
  • Local executable: /home/vimalinx/miniforge3/envs/bio/bin/fuse-segments
  • Full reference: See references/help.md for complete documentation

When To Use This Tool

  • Normalize start / end pairs where coordinates may be reversed.
  • Merge overlapping or directly adjacent segments into larger blocks.
  • Compute merged interval length as a final third column for downstream reporting.

Common Patterns

# 1) Fuse simple segments from a tab-delimited stream
printf '10\t20\tx\n18\t25\ty\n40\t35\tz\n' | \
  PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH \
  /home/vimalinx/miniforge3/envs/bio/bin/fuse-segments
10  25  16
35  40  6
# 2) Use as a cleanup step after generating interval tables elsewhere
upstream_command | \
  PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH \
  /home/vimalinx/miniforge3/envs/bio/bin/fuse-segments \
  > fused_segments.tsv

Recommended Workflow

  1. Prepare a table whose first two columns are integer segment bounds.
  2. Put the EDirect bin directory on PATH so sort-table can be resolved.
  3. Pipe the segment table through fuse-segments and capture the merged output.
  4. Confirm that reversed coordinates were normalized and that adjacent segments were intentionally collapsed.

Guardrails

  • This wrapper requires sibling EDirect helpers, especially sort-table; absolute-path invocation alone is not enough in a shell without the bio env on PATH.
  • It prefilters with grep '^[1-9]', so leading whitespace, zero, and non-digit first columns are silently ignored.
  • Only the first two columns matter after filtering; any third column is ignored.
  • Empty or filtered-away input can still emit the bogus sentinel row 0\t0\t1, so do not treat any output as automatically valid.
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 318kUpdated Claude CodeCodexUnverifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 117kUpdated Claude CodeCodexUnverifiedInstall