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
        16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
        by SEQadmin2




        NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
        Today, 06:46 AM
      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 10-28-2026, 09:57 AM
      0 responses
      22 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-28-2026, 09:51 AM
      0 responses
      14 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 11:13 AM
      0 responses
      67 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      47 views
      0 reactions
      Last Post SEQadmin2  
      Working...