vimalinx/bio-agent / .claude/skills/extract-exons-py
extract-exons-py
VerifiedUse when extracting exon coordinates from GTF annotation files for HISAT2 index building or transcriptome analysis.
extract-exons-py
Quick Start
- Command:
extract_exons.py [gtf_file] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/extract_exons.py - Full reference: See references/help.md
When To Use This Tool
- Extract nonredundant exon intervals from a GTF annotation.
- Prepare exon lists for HISAT2 index building or transcriptome-aware downstream tooling.
- Collapse transcript-specific exon redundancy into a unique coordinate set.
Common Patterns
# 1) Extract exons from a GTF file
extract_exons.py genes.gtf > exons.tsv
# 2) Stream a GTF through stdin
zcat genes.gtf.gz | extract_exons.py - > exons.tsv
# 3) Inspect the first zero-based exon intervals
extract_exons.py genes.gtf | sed -n '1,20p'
Recommended Workflow
- Obtain a valid GTF annotation file for your reference genome
- Run
extract_exons.py gtf_fileto extract exon coordinates (use-for stdin) - Add
-vflag to print statistics to stderr for validation - Use output as input for downstream HISAT2 index building workflows
Guardrails
- Input must be a valid GTF file or
-for stdin - Verify GTF format compatibility before processing large files
- Review stderr output when using verbose mode to validate extraction statistics
- Output coordinates are zero-based (
left-1,right-1) and include strand as the fourth column. - Adjacent exons separated by 5 bp or less are merged before output, so the result is not a raw exon-by-exon dump from the source GTF.
--helpworks, but--versionis not implemented and exits with an argparse error.
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 |