Use when extracting splice junctions from GTF annotation files for HISAT2 splice-aware alignment.
hisat2_extract_splice_sites.py [gtf_file]/home/vimalinx/miniforge3/envs/bio/bin/hisat2_extract_splice_sites.pyhisat2_extract_splice_sites.py when you need known splice junctions from a GTF for splice-aware HISAT2 workflows.hisat2-build --ss or by aligners via --known-splicesite-infile.-, so it fits compressed or piped annotation workflows.# Extract splice junctions from a GTF file
hisat2_extract_splice_sites.py annotation.gtf > splicesites.txt
# Print progress/statistics to stderr
hisat2_extract_splice_sites.py -v annotation.gtf > splicesites.txt
# Stream a compressed GTF via stdin
gzip -cd annotation.gtf.gz | hisat2_extract_splice_sites.py - > splicesites.txt
# Reuse the result during HISAT2 index building
hisat2-build-s genome.fa genome --ss splicesites.txt
hisat2_extract_splice_sites.py annotation.gtf > splice_sites.txt--ss option-v flag if you want diagnostic statistics printed to stderr-v only when you want progress/statistics reported to stderr--version; use -h/--help for availability checks