Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ocs
    Member
    • May 2011
    • 27

    #1

    Inner distance value for TopHat / Proper mapping with RNA-Seq PE data

    Dear forum,

    I have been using RNA-seq for some time now and have a rather basic question:

    When doing paired-end data, I have to provide TopHat with the inner distance of the mate pairs/paired ends (parameter: -r). But when I align them to a reference (which is obviously DNA) and my RNA-seq data is cDNA (so introns left out), then there should be a bias regarding the inner distance. The question came up when I tested the best value for the -r option by setting different (meaningful) values and checking them with samtools flagstat. On one value the statistics told me that there were around 30% properly mapped (seems bad) and the other value had 70% (rather good). When I assume that there are also introns in the DNA that are left out, which value fits better and is it even useful to give this parameter? Ok, TopHat forces me to do so ;-) and actually it cares about splice junctions. But the procedure is not clear to me and if this properly mapped statistic is a useful one in this context.

    I'm happy about any advice!

    Best,
    Oliver
  • kopi-o
    Senior Member
    • Feb 2008
    • 319

    #2
    FWIW, I don't really think the "properly paired" statistic is meaningful in this context, because of the intron issue that you discuss. I assume the mate inner distance is used in a meaningful way inside TopHat, but I don't care much about the percent properly paired I get from e.g. samtools flagstat. After all, a lot of the transcriptome is spliced.

    Comment

    • rnaseek
      Member
      • Nov 2011
      • 22

      #3
      kopl-o's suggestion to check the percentage of proper pairs will help you find whether your analysis is ok. It does help to use the fragment size distribution from the library prep and use it to compute the mean inner distance. In the library prep that we used (and for one sample), we found that having a small distance (20-100) gave fewer properly paired reads. And the percentage reached close 90% for longer distances (>100).

      Comment

      • ozs2006
        Member
        • May 2010
        • 21

        #4
        related question

        Hello all,

        I understood that in tophat 1.3.3 there is no need to assign the inner distance.
        I used data from recent published paper, where all reads in the repository were marked as properly paired (flags 99 or 147).
        However, when I re-aligned them using tophat 1.3.3 they mapped to the same positions (hg19) but don't marked as properly paired (they got the flags 129 or 65).
        My question is: why I don't get the exact flags?

        For example:
        The paper's alignment:
        HWUSI-EAS371_0021:3:28:19038:18734#0/ 147 chrM 16261 255 60M = 16162 -159 CCCCTCACCCACTAGGATATCAACAAACCTACCCACCCTTAACAGTACATAGCACATAAA EEEE?EAEEEFFFGGGGGGBGGFGGECEEC<CEE@GGGGGGGGGGGGGGGGGGGGGGGGG NM:i:2 XS:A:+

        My re-alignment (using tophat 1.3.3):
        HWUSI-EAS371_0021:3:28:19038:18734#0 129 chrM 16261 255 60M = 16162 -159 CCCCTCACCCACTAGGATATCAACAAACCTACCCACCCTTAACAGTACATAGCACATAAA EEEE?EAEEEFFFGGGGGGBGGFGGECEEC<CEE@GGGGGGGGGGGGGGGGGGGGGGGGG NM:i:2 NH:i:1

        Thanks in advance,
        Oz Solomon
        Last edited by ozs2006; 11-27-2011, 07:37 AM. Reason: mistake

        Comment

        • rnaseek
          Member
          • Nov 2011
          • 22

          #5
          Interesting, I believe many things could potentially cause this. I am bit unclear on how you did the "re-alignment". Did you use the whole data again to align or only the read satisfying (99 or 147)? If later, did you make sure to include the paired end sequence as well. I think the flags 83, 99, 147, and 163 will give the all properly paired reads (twice actually.)

          Comment

          • ozs2006
            Member
            • May 2010
            • 21

            #6
            Thanks for the quick reply
            As you noted, it is very strange, because all the publicly available reads are flagged as 99 and 147, and I used all of them.
            Last edited by ozs2006; 11-27-2011, 10:44 AM. Reason: spelling

            Comment

            • ozs2006
              Member
              • May 2010
              • 21

              #7
              I created the fastq files from the sam files of the publication (using awk) and then ran tophat.

              1. awk:

              awk '{if($2==99) print "@" $1 "\n" $10 "\n" "+\n" $11}' > sample_1.fq
              awk '{if($2==147) print "@" $1 "\n" $10 "\n" "+\n" $11}' > sample_2.fq

              2. Tophat's command I used:

              /tophat-1.3.3.Linux_x86_64/tophat -p 8 --min-anchor-length 15 --splice-mismatches 0 --keep-tmp --GTF /data/pipeline_in/Genomes/Human_GRCh37/Homo_sapiens.GRCh37.64.gtf /data/pipeline_in/Genomes/Human_GRCh37/Index/hg19 sample_1.fq sample_2.fq
              Last edited by ozs2006; 11-27-2011, 11:12 AM. Reason: changes

              Comment

              Latest Articles

              Collapse

              • 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
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-22-2026, 11:13 AM
              0 responses
              38 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 10:48 AM
              0 responses
              28 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              41 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              45 views
              0 reactions
              Last Post SEQadmin2  
              Working...