Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • rondonbio
    Junior Member
    • Feb 2013
    • 1

    retreave UTRs for each gene by rna-seq

    Hi guys. I mapped pair-ends reads from Illumina by TopHat against an annotated genome. I would like to retrieve the UTR sequences from each gene. How to do that?

    To the mapping, I used genome.fasta, reads.fastq, annotation.gff

    thanks a lot
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    If you have the identifiers for the genes then you can use Table Browser (UCSC), BioMart (Ensembl) or other programmatic means to retrieve the UTR sequences.

    See this post for links: http://seqanswers.com/forums/showthr...hlight=biomart

    Comment

    • Richard Finney
      Senior Member
      • Feb 2009
      • 701

      #3
      This is a one-off so PLEASE check your results by hand (i.e. blat them and see if they are right).

      Download genome (hg19 or whatever) files, then concatenate them into one file called "all.fa".
      Get/compile/install samtools.

      Use samtools faidx to index "all.fa"
      Then get this file form UCSC:
      ftp://hgdownload.cse.ucsc.edu/golden...refFlat.txt.gz
      (or whatever genome/build you are interested in).

      Ungzip and rename "refFlat.txt.gz" to refFlat.hg19.feb.2013.txt

      Make a script out of the code below. Edit the SAMT and GENOMEPLACE lines to your situation.
      ______begin code____

      export SAMT=/h1/finneyr/samtools-0.1.18/samtools
      export GENOMEPLACE=/TCGA/nextgensupport/hg19/all.fa

      cat refFlat.hg19.feb.3.2013.txt | awk -v GENO=$GENOMEPLACE \
      '{if ($4=="+") print "$SAMT faidx "GENO" "$3":"$7"-"$5" > "$1"."$2".5p \n$SAMT faidx "GENO" "$3":"$8"-"$6" > "$1"."$2".3p\n";
      else print "$SAMT faidx "GENO" "$3":"$5"-"$7" > "$1"."$2".3p \n$SAMT faidx "GENO" "$3":"$6"-"$8" > "$1"."$2".5p\n"}'
      #note: field numbers:txStart=$5 txEnd=$6 cdsStart=$7 cdsEnd=$8
      # chrom=$3 strand=$4


      ______ end code _____

      Example run ... I call the script "job22" ...
      -bash-3.00$ cat job22
      export SAMT=/h1/finneyr/samtools-0.1.18/samtools
      export GENOMEPLACE=/TCGA/nextgensupport/hg19/all.fa

      cat refFlat.hg19.feb.3.2013.txt | awk -v GENO=$GENOMEPLACE \
      '{if ($4=="+") print "$SAMT faidx "GENO" "$3":"$7"-"$5" > "$1"."$2".5p \n$SAMT faidx "GENO" "$3":"$8"-"$6" > "$1"."$2".3p\n";
      else print "$SAMT faidx "GENO" "$3":"$5"-"$7" > "$1"."$2".3p \n$SAMT faidx "GENO" "$3":"$6"-"$8" > "$1"."$2".5p\n"}'

      -bash-3.00$ ./job22 | head -6
      $SAMT faidx /TCGA/nextgensupport/hg19/all.fa chr15:62929370-62937380 > MGC15885.NR_026897.3p
      $SAMT faidx /TCGA/nextgensupport/hg19/all.fa chr15:62937380-62937380 > MGC15885.NR_026897.5p

      $SAMT faidx /TCGA/nextgensupport/hg19/all.fa chr19:76219-77690 > FAM138F.NR_026820.3p
      $SAMT faidx /TCGA/nextgensupport/hg19/all.fa chr19:77690-77690 > FAM138F.NR_026820.5p

      -bash-3.00$ ./job22 | head -6 | bash
      -bash-3.00$ head MGC15885.NR_026897.3p
      >chr15:62929370-62937380
      GTTCACCTGGTCTTGACCTTCACTTTTATTTTTCTTCTATTTTTTTCTTGGAGCTGACCT
      TTTACATTTCTATTGTATCCATTTTTGTAAACAATCTACTTTCAATCATTTGAATAAGTT
      AATGTATAAAAGAATTCAAAGTCAGAGTTCAGTTTAGAGCCACCTTCTTTCTGAAGCTTG
      TAACAAGAGGAGGAAAATAGCAGGACTGAAAGGTAGACTCCAAGAGGACTGAAATGTATG
      GATGATTTATTCAGCTGTCTTGGCAACCACAGGGGAATAGTGAGATTGCTCGAGAGCTGA
      CACAGCCTTCTTACGGTTCGACAAAAAACGACAGTATCTTCCACATACAGGCCAGGAATT
      CATGTATCTTCCCAGAACCTCTGTTTTTATCTGTGGAAGGGGGGTGCCAAAAAATGCAAA
      ATCCTTTTAGCTTTCCAGCCTATTGATCATATCCAGGGACAAGATATACATGGAAGCGCC
      CTGGAGCACTTCATTGCTGAGTGGTCATCAGGTGATAGCATCTCCTGTTTGTTTCACTGG


      get rid of the "head -6" clause to run the whole thing, you must run it through "bash" as "job22" just generates the script
      Last edited by Richard Finney; 02-07-2013, 10:28 AM.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


        Here are nine questions we think about, in roughly the order they matter, before...
        Yesterday, 07:11 AM
      • SEQadmin2
        From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
        by SEQadmin2


        Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


        The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
        ...
        06-02-2026, 10:05 AM
      • SEQadmin2
        Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
        by SEQadmin2


        With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


        Introduction

        Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
        05-22-2026, 06:42 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-17-2026, 06:09 AM
      0 responses
      20 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      38 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      45 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      49 views
      0 reactions
      Last Post SEQadmin2  
      Working...