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
        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
      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Yesterday, 10:49 AM
      0 responses
      17 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-25-2024, 11:49 AM
      0 responses
      24 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-24-2024, 08:47 AM
      0 responses
      20 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      62 views
      0 likes
      Last Post seqadmin  
      Working...
      X