Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Extract gene sequences from gff3 file and reference fasta

    Hi,

    I have a gff3 file and I want to extract the gene sequences (not including introns). Several genes have many isoforms, but I want only the gene sequence (i.e. all the exons spliced). Anyone know of a tool that does this? I tried gffread from the tophat package but I could not get only the gene sequence.

    Sample of my gff3 file:
    Code:
    ##gff-version 3
    ###
    scis2053        noncoding       gene    27485   28677   .       -       .       ID=scign013105;Name=scign013105
    scis2053        noncoding       mRNA    27485   28677   5921    -       .       ID=scitn013105.1;Parent=scign013105;Name=scitn013105.1
    scis2053        noncoding       exon    27485   28677   .       -       .       Parent=scitn013105.1
    ###
    scis673 noncoding       gene    85677   115116  .       +       .       ID=scign002358;Name=scign002358
    scis673 noncoding       mRNA    113016  115116  6254    +       .       ID=scitn002358.1;Parent=scign002358;Name=scitn002358.1
    scis673 noncoding       exon    113016  113049  .       +       .       Parent=scitn002358.1
    scis673 noncoding       exon    113444  114538  .       +       .       Parent=scitn002358.1
    scis673 noncoding       exon    114973  115116  .       +       .       Parent=scitn002358.1
    scis673 noncoding       mRNA    85677   115099  3835    +       .       ID=scitn002358.2;Parent=scign002358;Name=scitn002358.2
    scis673 noncoding       exon    85677   85697   .       +       .       Parent=scitn002358.2
    scis673 noncoding       exon    113896  114538  .       +       .       Parent=scitn002358.2
    scis673 noncoding       exon    114973  115099  .       +       .       Parent=scitn002358.2

  • #2
    Hi,

    You can use the BEDtools suite with getfasta (http://bedtools.readthedocs.org/en/l.../getfasta.html). You need your gff3 file and the fasta file of your genome (reference).
    Usage: bedtools getfasta [OPTIONS] -fi <input FASTA> -bed <BED/GFF/VCF> -fo <output FASTA>

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Advancing Precision Medicine for Rare Diseases in Children
      by seqadmin




      Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
      12-16-2024, 07:57 AM
    • seqadmin
      Recent Advances in Sequencing Technologies
      by seqadmin



      Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

      Long-Read Sequencing
      Long-read sequencing has seen remarkable advancements,...
      12-02-2024, 01:49 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 12-17-2024, 10:28 AM
    0 responses
    39 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-13-2024, 08:24 AM
    0 responses
    52 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-12-2024, 07:41 AM
    0 responses
    38 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 12-11-2024, 07:45 AM
    0 responses
    46 views
    0 likes
    Last Post seqadmin  
    Working...
    X