Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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

  • #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


    • #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

      • seqadmin
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        05-06-2024, 07:48 AM
      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 05-14-2024, 07:03 AM
      0 responses
      15 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-10-2024, 06:35 AM
      0 responses
      37 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-09-2024, 02:46 PM
      0 responses
      47 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-07-2024, 06:57 AM
      0 responses
      39 views
      0 likes
      Last Post seqadmin  
      Working...
      X