vimalinx/bio-agent / .claude/skills/bgzip
bgzip
UnverifiedUse when you need to compress or decompress files using BGZF (Blocked GNU Zip Format), create BGZF indexes for random access, or prepare bioinformatics files for tabix indexing.
bgzip
Block compression utility from htslib that creates BGZF-compressed files suitable for random access and indexing.
Quick Start
- Command:
bgzip [OPTIONS] [FILE] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/bgzip - Version: 1.22.1
- Full reference: See references/help.md for complete options and usage
When To Use This Tool
- Compress tabular genomics files into BGZF rather than ordinary gzip.
- Prepare files for random access and indexing in the HTS ecosystem.
- Reindex or integrity-check an existing BGZF file.
- Use it before
tabixor other tools that require BGZF-aware random access.
Common Patterns
# 1) Compress and create a BGZF index
bgzip -i variants.vcf
# 2) Write compressed output while preserving the original file
bgzip -c variants.vcf > variants.vcf.gz
# 3) Reindex an existing BGZF file
bgzip -r variants.vcf.gz
# 4) Test file integrity
bgzip -t variants.vcf.gz
Recommended Workflow
- Use BGZF, not generic gzip, for files that must support random access.
- Create or refresh
.gziindexes when the compressed file changes. - Test integrity before feeding compressed files into downstream indexing or querying steps.
- Keep compression and indexing steps explicit in pipelines.
Guardrails
- BGZF is gzip-compatible for decompression but not interchangeable with ordinary gzip for random-access workflows.
-icreates a.gziduring compression;-rrebuilds the index later.-cwrites to stdout and keeps the input file unchanged.- Threading with
-@is useful for bigger files, but remember that downstream tools still need the final.gzior tabix index.
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 |