Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • htetre
    Member
    • Jul 2013
    • 28

    #1

    HISAT2 _spliced_sites with a gff3 file

    Hello,

    I am trying to extract_splice_sites using the python script provided by HISAT2 to use in the downstream alignment in HISAT2. However the reference genome that I am using, the most recent version, has a gff3 file with the gene annotation. I am unable to extract spliced sites with this gff file. Does anyone know a way to extract splice sites from a gff3 that can be used with the Hisat2 program? I have a gtf file but it was built on an older version of the genome assembly so I would prefer to use the newest (gff3).

    Thank you for any help you can provide
  • Macspider
    Member
    • Feb 2016
    • 36

    #2
    Hi, I know how.
    First, quoting the hisat2-align manual you will read that:

    --ss <path>
    Note this option should be used with the following --exon option. Provide a list of splice sites (in the HISAT2's own format) as follows (four columns).

    chromosome name <tab> zero-offset based genomic position of the flanking base on the left side of an intron <tab> zero-offset based genomic position of the flanking base on the right <tab> strand

    Use hisat2_extract_splice_sites.py (in the HISAT2 package) to extract splice sites from a GTF file.
    Since GFF / GTF files are usually prone to mis-formatting errors given that for a long time there has been no unification of the format and hardly there is one actually today (sigh) it's better if you homebrew your file. That said, you can do that with awk.

    Commands

    Exons:
    Code:
    awk '{if ($3=="exon") {print $1"\t"$4-1"\t"$5-1}}' genes.gtf > exonsFile.table
    Splice Sites:
    Code:
    awk '{if ($3=="intron") {print $1"\t"$4-2"\t"$5}}' genes.gtf > ssFile.table

    Comment

    • Haledm
      Junior Member
      • May 2018
      • 2

      #3
      Originally posted by Macspider View Post
      Hi, I know how.
      First, quoting the hisat2-align manual you will read that:



      Since GFF / GTF files are usually prone to mis-formatting errors given that for a long time there has been no unification of the format and hardly there is one actually today (sigh) it's better if you homebrew your file. That said, you can do that with awk.

      Commands

      Exons:
      Code:
      awk '{if ($3=="exon") {print $1"\t"$4-1"\t"$5-1}}' genes.gtf > exonsFile.table
      Splice Sites:
      Code:
      awk '{if ($3=="intron") {print $1"\t"$4-2"\t"$5}}' genes.gtf > ssFile.table
      Hi! This has been immensely helpful, as I'm addressing the same issue as OP. But do you have a similar recommendation on how to generate the SS table if the reference annotations do not contain explicit intron coordinates? I'm working from a .gff3 file that only contains exon coordinates. I know the information I need is technically in that file, but I don't have the command line know-how to easily get that information using awk.

      Thanks!

      Comment

      Latest Articles

      Collapse

      • kinpict.com
        Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
        by kinpict.com
        The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
        Today, 06:37 PM
      • SEQadmin2
        16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
        by SEQadmin2





        NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
        10-30-2026, 06:46 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 11-12-2026, 07:59 AM
      0 responses
      27 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 11-05-2026, 09:25 AM
      0 responses
      35 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 11-03-2026, 11:54 AM
      2 responses
      56 views
      0 reactions
      Last Post kinpict.com  
      Started by SEQadmin2, 10-28-2026, 09:57 AM
      0 responses
      175 views
      0 reactions
      Last Post SEQadmin2  
      Working...