| name | extract-splice-sites-py |
| description | Use when extracting splice junction sites from GTF annotation files for HISAT2 genome indexing or RNA-seq alignment workflows. |
| disable-model-invocation | true |
| user-invocable | true |
extract-splice-sites-py
Quick Start
- Command:
extract_splice_sites.py [gtf_file]
- Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/extract_splice_sites.py
- Full reference: See
references/help.md
When To Use This Tool
- Extract unique splice junction coordinates from a GTF annotation.
- Prepare splice-site lists for HISAT2 index building and splice-aware alignment workflows.
- Summarize transcript exon structures into one junction set per genome annotation.
Common Patterns
extract_splice_sites.py genes.gtf > splice_sites.tsv
zcat genes.gtf.gz | extract_splice_sites.py - > splice_sites.tsv
extract_splice_sites.py -v genes.gtf > splice_sites.tsv
Recommended Workflow
- Prepare a valid GTF annotation file for your reference genome.
- Run
extract_splice_sites.py [gtf_file] to extract splice sites (use - to read from stdin).
- Add
-v flag if you want statistics printed to stderr.
- Use output as input for HISAT2 index building.
Guardrails
- Input must be a GTF file; other formats are not supported.
- Use
- as the gtf_file argument when piping via stdin.
- No
--version flag available; check installation via bioconda/hisat2 package.
- Output coordinates are zero-based donor/acceptor boundaries (
left-1, right-1) plus strand.
- Exons separated by 5 bp or less are merged before junction extraction, so tiny gaps do not become splice sites.
- With
-v, the script prints transcript/exon/intron summary statistics to stderr while still writing splice sites to stdout.