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

      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM
      • SEQadmin2
        New Genomics Technologies Take Aim at Long-Standing Limits
        by SEQadmin2


        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
        ...
        09-28-2026, 10:25 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 11:13 AM
      0 responses
      14 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 10:48 AM
      0 responses
      13 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      42 views
      0 reactions
      Last Post SEQadmin2  
      Working...