Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • biofreak
    Member
    • Jun 2011
    • 44

    #1

    Read quality in SAM files from tophat

    I just noticed that the read quality field in the SAM file (output from tophat pipeline) is zero 75% of the times.. I read that 0 means poor quality read.
    Does this mean the data is bad? Should I filter all reads with quality score 0 from the SAM file? because I am not sure if the results on differential expression analysis are reliable anymore.
    thanks.
  • kwatts59
    Member
    • Apr 2011
    • 46

    #2
    Can you provide a piece of your sam file for us to look at?

    Comment

    • biofreak
      Member
      • Jun 2011
      • 44

      #3
      The fifth column which indicates quality is zero most of the times.

      HWUSI-EAS598:17:FC-RNAseq:8:95:12261:1462 16 chr1 171130 0 36M * 0 0 GACATTAAGTTATTCTTCAACCTTCGTTTGTGTGTG AHHHHHGGDGGDEGGGGGBGGGGDBGAHEGHHHDHD NM:i:0 NH:i:14 CC:Z:= CP:i:422067
      HWUSI-EAS598:17:FC-RNAseq:8:45:16542:13964 16 chr1 179698 0 36M * 0 0 TTGTCCTGCTGGGTTTCTTGCTTTGGTCCAATCTTC ;HIIIIIIIHIIIIIIIHIIIIIHIIIIIIIIGIII NM:i:0 NH:i:6 CC:Z:= CP:i:617466
      HWUSI-EAS598:17:FC-RNAseq:8:47:19786:10094 0 chr1 188055 0 36M * 0 0 CGAGGATGCATTGACCTATGATGATGTACATGTGAA IIIIIIIIIIIIIIIIIIIIFHIIGFHIIIHIHII6 NM:i:2 NH:i:15 CC:Z:= CP:i:432104
      HWUSI-EAS598:17:FC-RNAseq:8:21:3206:4808 16 chr1 188066 0 36M * 0 0 TGACCTATGATGATGTACATGTGAACTTCACTCGAG 4CAEE<EEG>EEFEBE5=;>7DCF@CEDFEFE>CGG NM:i:0 NH:i:15 CC:Z:= CP:i:392265
      HWUSI-EAS598:17:FC-RNAseq:8:27:9023:4090 16 chr1 188066 0 36M * 0 0 TGACCTATGATGATGTACATGTGAACTTCACTCGAG <IFEIFIIIIGIIEIIIHIIGIIHIIIIIHIDIHII NM:i:0 NH:i:15 CC:Z:= CP:i:392265
      HWUSI-EAS598:17:FC-RNAseq:8:75:1211:20901 16 chr1 188066 0 36M * 0 0 TGACCTATGATGATGTACATGTGAACTTCACTCGAG ###################??:9=>5.==6?8BBCC NM:i:0 NH:i:15 CC:Z:= CP:i:392265
      HWUSI-EAS598:17:FC-RNAseq:8:66:7143:12901 16 chr1 188071 0 36M * 0 0 TATGATGATGTACATGTGAACTTCACTCGAGAAGAA 5EDDEE:>EEEBBDBBEEDEEE?DD>DDDB?GG=G= NM:i:0 NH:i:17 CC:Z:= CP:i:392270
      HWUSI-EAS598:17:FC-RNAseq:8:49:13479:17135 0 chr1 188073 0 36M * 0 0 TGATGATGTACATGTGAACTTCACTCGAGAAGAATG IIIIIIIIIIIIIIHIIIIIIIIIIIIIIIHIIGI< NM:i:0 NH:i:17 CC:Z:= CP:i:392272
      HWUSI-EAS598:17:FC-RNAseq:8:55:13510:18188 0 chr1 188073 0 36M * 0 0 TGATGATGTACATGTGAACTTCACTCGAGAAGAATG HHHHDHHHFHGGGGFHGDHHHHHHFGGDGFEGGGG9 NM:i:0 NH:i:17 CC:Z:= CP:i:392272
      HWUSI-EAS598:17:FC-RNAseq:8:116:9033:18901 16 chr1 188073 0 36M * 0 0 TGATGATGTACATGTGAACTTCACTCGAGAAGAATG ?IIHIIIIIIIIIIIIIIIIIIIGIIIIIIIIEIII NM:i:0 NH:i:17 CC:Z:= CP:i:392272
      HWUSI-EAS598:17:FC-RNAseq:8:67:15838:6920 16 chr1 188076 0 36M * 0 0 TGATGTACATGTGAACGTCACTCGAGAAGAATGGGC ############################??6??2(6 NM:i:1 NH:i:17 CC:Z:= CP:i:392275
      HWUSI-EAS598:17:FC-RNAseq:8:41:12593:14024 16 chr1 188077 0 36M * 0 0 GATGTACATGTGAACTTCACTCGAGAAGAATGGGCG <HHHHHHHHHHGHHHHGDEGEHHHHHBDDEB:;@9B NM:i:1 NH:i:17 CC:Z:= CP:i:392276
      HWUSI-EAS598:17:FC-RNAseq:8:76:6547:18104 16 chr1 188077 0 36M * 0 0 GATGTACATGTGAACTTCACTCGAGAAGAATGGGCG BGGGDDFEEFD?GEGGDD?E@GDEEGHHHHGHHHHH NM:i:1 NH:i:17 CC:Z:= CP:i:392276

      Comment

      • kmcarr
        Senior Member
        • May 2008
        • 1181

        #4
        Originally posted by biofreak View Post
        I just noticed that the read quality field in the SAM file (output from tophat pipeline) is zero 75% of the times.. I read that 0 means poor quality read.
        Does this mean the data is bad? Should I filter all reads with quality score 0 from the SAM file? because I am not sure if the results on differential expression analysis are reliable anymore.
        thanks.
        Column 5 is not read quality it is mapping quality, a measure of the likelihood that the mapping position is correct. It would be the responsibility of the mapping algorithm to calculate and report this value. Bowtie, the aligner underlying Tophat does not calculate mapping qualities according to its author (see post #2 in this thread). Some things have changed since that post was written. Have a look at the Bowtie manual, particularly the sections describing the options '-M' and '--mapq' for uses of the mapping quality field.

        Comment

        • biofreak
          Member
          • Jun 2011
          • 44

          #5
          kmcarr,
          Thanks for the clarification.
          I want to filter out all those with map quality =0.
          I use readGappedAlignments function which takes BAM file and discards the MAPQ field altogether. So this has to be done before readGappedAlignments function.
          I could just load .SAM file , filter it myself and convert it into .BAM. But I was hoping if it can be done in more elegant way.
          I was also looking at srFilter function in ShortRead package. but could not figure out.

          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
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          19 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Working...