Unconfigured Ad

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

    #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
        Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
        by SEQadmin2



        CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

        Despite this, “CRISPR helped turn genome editing from a specialized technique into
        ...
        07-31-2026, 11:01 AM
      • SEQadmin2
        Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
        by SEQadmin2


        Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

        The systematic characterization of the human proteome has
        ...
        07-20-2026, 11:48 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 12:22 PM
      0 responses
      17 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-11-2026, 10:35 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-06-2026, 07:41 AM
      0 responses
      31 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-03-2026, 10:13 AM
      0 responses
      50 views
      0 reactions
      Last Post SEQadmin2  
      Working...