Agent skill

bio-genome-intervals-gtf-gff-handling

Parse, query, and convert GTF and GFF3 annotation files. Extract gene, transcript, and exon coordinates using gffread, gtfparse, and gffutils. Use when extracting specific features from gene annotations or converting between annotation formats.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill gtf-gff-handling --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 4
SKILL.md size: 9 KB
Bundled scripts: yes
Path: skills/bioskills/gtf-gff-handling/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## Version Compatibility Reference examples tested with: bedtools 2.31+, pandas 2.2+ Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures - CLI: `<tool> --version` then `<tool> --help` to confirm flags If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. # GTF/GFF Handling **"Parse gene annotations from GTF/GFF"** → Read gene models, extract features by type (gene, exon, CDS), and query attributes from annotation files. - Python: `gffutils.create_db('file.gtf')` (gffutils), `pyranges.read_gtf()` (pyranges) - CLI: `awk` on tab-delimited GTF fields GTF and GFF3 are standard gene annotation formats. Both use 1-based coordinates. ## Format Comparison | Feature | GTF | GFF3 | |---------|-----|------| | Coordinate system | 1-based, inclusive | 1-based, inclusive | | Hierarchy | Implicit (gene_id, transcript_id) | Explicit (Parent attribute) | | Attribute format | key "value"; | key=value; | | Comments | # | # | | Fasta sequences | Not standard | ##FASTA directive | ## GTF Forma

What's inside
Steps it walks through
  1. Version Compatibility
  2. Format Comparison
  3. GTF Format
  4. GFF3 Format
  5. Parse GTF with gtfparse (Python)
  6. Installation
  7. Basic Parsing
  8. Extract Gene Coordinates
  9. Get Exons for Gene
  10. Parse GFF with gffutils (Python)
  11. Create Database
  12. Query Features
  13. Get Introns
  14. Convert Formats with gffread (CLI)
Ships with 3 files
  • examples/gffread_convert.sh
  • examples/parse_gtf.py
  • usage-guide.md
Commands it runs
pip install gtfparse
pip install gffutils
conda install -c bioconda gffread
gffread annotation.gtf -o annotation.gff3
gffread annotation.gff3 -T -o annotation.gtf
Extract transcript sequences
gffread -w transcripts.fa -g genome.fa annotation.gtf
Extract CDS sequences
gffread -x cds.fa -g genome.fa annotation.gtf
Extract protein sequences
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-genome-intervals-gtf-gff-handling skill do?

Parse, query, and convert GTF and GFF3 annotation files. Extract gene, transcript, and exon coordinates using gffread, gtfparse, and gffutils. Use when extracting specific features from gene annotations or converting between annotation formats.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill gtf-gff-handling --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going