Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgibson
    Junior Member
    • Jun 2011
    • 4

    #1

    TopHat/Bowtie - number of reads aligned

    Sorry if this is a really obvious question, but I am new to the analysis of sequencing data. (Also sorry if this is posted in the wrong forum.) We are aligning an Illumina paired-end RNA Seq run to the hg19 human genome. I want to know how many of the reads aligned to the genome and I am not sure I am looking in the right place. For each lane, there are 5 files in the logs directory that I think might be helpful:

    bowtie.left_kept_reads.fixmap.log
    # reads processed: 51079805
    # reads with at least one reported alignment: 29895367 (58.53%)
    # reads that failed to align: 21144050 (41.39%)
    # reads with alignments suppressed due to -m: 40388 (0.08%)
    Reported 38111199 alignments to 1 output stream(s)

    bowtie.left_kept_reads_seg1.fixmap.log
    # reads processed: 21144050
    # reads with at least one reported alignment: 4892206 (23.14%)
    # reads that failed to align: 16209674 (76.66%)
    # reads with alignments suppressed due to -m: 42170 (0.20%)
    Reported 8921307 alignments to 1 output stream(s)

    bowtie.left_kept_reads_seg2.fixmap.log
    # reads processed: 21144050
    # reads with at least one reported alignment: 5032085 (23.80%)
    # reads that failed to align: 16048266 (75.90%)
    # reads with alignments suppressed due to -m: 63699 (0.30%)
    Reported 9308464 alignments to 1 output stream(s)

    bowtie.left_kept_reads_seg3.fixmap.log
    # reads processed: 21144050
    # reads with at least one reported alignment: 4938783 (23.36%)
    # reads that failed to align: 16146855 (76.37%)
    # reads with alignments suppressed due to -m: 58412 (0.28%)
    Reported 9092214 alignments to 1 output stream(s)

    bowtie.left_kept_reads_seg4.fixmap.log
    # reads processed: 21144050
    # reads with at least one reported alignment: 3500454 (16.56%)
    # reads that failed to align: 17621660 (83.34%)
    # reads with alignments suppressed due to -m: 21936 (0.10%)
    Reported 5527529 alignments to 1 output stream(s)

    (There are the duplicate files for the right kept reads, which I know should be dealt with in the same way...)

    Obviously the first file is the initial alignment. The next 4 seem to be mapping the reads that were unmapped during the first pass (given the reads processed in each is the same as the reads unmapped in the first file). From the run data, I am also assuming that these originally unmapped reads are mapped to junctions?

    58% alignment isn't very good, but if I add the reads aligned in the 4 seg files, the total alignment is 94% - is this actually correct to do though?

    I also want to know how many of the reads map to junction sites - am I correct in thinking the 4 seg files are mapping reads to junctions? This seems like a really high number map to junction sites if this is the case (35%). If not, is there somewhere else I can find this data.

    Thanks for any help/advice you all can give me!
  • pbluescript
    Senior Member
    • Nov 2009
    • 224

    #2
    A simple way to get the data you want and a bit more would be to use bamtools or Picard. bamtools has the stats command and Picard has several different commands for extracting various metrics from your bam/sam files.

    Comment

    • townway
      Member
      • May 2009
      • 41

      #3
      how can I calculate the number of reads mapped to junctions by bamtools or picard?

      a simple way I can think about is to counts the splitted reads, but I am not sure it is right way.

      Thank you

      Originally posted by pbluescript View Post
      A simple way to get the data you want and a bit more would be to use bamtools or Picard. bamtools has the stats command and Picard has several different commands for extracting various metrics from your bam/sam files.

      Comment

      • pbluescript
        Senior Member
        • Nov 2009
        • 224

        #4
        Originally posted by townway View Post
        how can I calculate the number of reads mapped to junctions by bamtools or picard?

        a simple way I can think about is to counts the splitted reads, but I am not sure it is right way.

        Thank you
        You can use the Bamtools filter option to get all reads with an "N" in the cigar string. This indicates a split read.

        Comment

        • townway
          Member
          • May 2009
          • 41

          #5
          would you mind which version of bamtools you used?
          the current one does not have cigar filter
          Thank you

          General Filters:
          -alignmentFlag <int> keep reads with this *exact*
          alignment flag (for more detailed queries,
          see below)
          -insertSize <int> keep reads with insert size
          that mathces pattern
          -mapQuality <[0-255]> keep reads with map quality
          that matches pattern
          -name <string> keep reads with name that
          matches pattern
          -queryBases <string> keep reads with motif that
          mathces pattern
          -tag <TAG:VALUE> keep reads with this
          key=>value pair

          Originally posted by pbluescript View Post
          You can use the Bamtools filter option to get all reads with an "N" in the cigar string. This indicates a split read.

          Comment

          • pbluescript
            Senior Member
            • Nov 2009
            • 224

            #6
            The current version of Bamtools does have the filter by cigar string option.
            You can read a manual here:

            Get the current version here:


            Your bamtools command will be something like:

            Code:
            bamtools filter -in reads.bam -out split_reads.bam -script cigarN.script
            Your cigarN.script should look like this:
            Code:
            {
                    "cigar" : "*N*"
            }

            Comment

            • vbiaudet
              Member
              • Apr 2011
              • 14

              #7
              unmapped reads with TopHat and mismatch

              We work also with RNASeq in Plant genome Arabidopsis and for us the majority of unmapped reads are not due to intron junctions but are due to errors at the end of sequences (we got read of 100b and the ten or twenty last bases contain mismatch). We know that the parameters for bowtie are very strict, no more 3 mismatch are authorized by bowtie. So are you sure that the majority of unmapped reads were due to exon/inrton junctions?

              bye, VB

              Originally posted by mgibson View Post
              Sorry if this is a really obvious question, but I am new to the analysis of sequencing data. (Also sorry if this is posted in the wrong forum.) We are aligning an Illumina paired-end RNA Seq run to the hg19 human genome. I want to know how many of the reads aligned to the genome and I am not sure I am looking in the right place. For each lane, there are 5 files in the logs directory that I think might be helpful:

              bowtie.left_kept_reads.fixmap.log
              # reads processed: 51079805
              # reads with at least one reported alignment: 29895367 (58.53%)
              # reads that failed to align: 21144050 (41.39%)
              # reads with alignments suppressed due to -m: 40388 (0.08%)
              Reported 38111199 alignments to 1 output stream(s)

              bowtie.left_kept_reads_seg1.fixmap.log
              # reads processed: 21144050
              # reads with at least one reported alignment: 4892206 (23.14%)
              # reads that failed to align: 16209674 (76.66%)
              # reads with alignments suppressed due to -m: 42170 (0.20%)
              Reported 8921307 alignments to 1 output stream(s)

              bowtie.left_kept_reads_seg2.fixmap.log
              # reads processed: 21144050
              # reads with at least one reported alignment: 5032085 (23.80%)
              # reads that failed to align: 16048266 (75.90%)
              # reads with alignments suppressed due to -m: 63699 (0.30%)
              Reported 9308464 alignments to 1 output stream(s)

              bowtie.left_kept_reads_seg3.fixmap.log
              # reads processed: 21144050
              # reads with at least one reported alignment: 4938783 (23.36%)
              # reads that failed to align: 16146855 (76.37%)
              # reads with alignments suppressed due to -m: 58412 (0.28%)
              Reported 9092214 alignments to 1 output stream(s)

              bowtie.left_kept_reads_seg4.fixmap.log
              # reads processed: 21144050
              # reads with at least one reported alignment: 3500454 (16.56%)
              # reads that failed to align: 17621660 (83.34%)
              # reads with alignments suppressed due to -m: 21936 (0.10%)
              Reported 5527529 alignments to 1 output stream(s)

              (There are the duplicate files for the right kept reads, which I know should be dealt with in the same way...)

              Obviously the first file is the initial alignment. The next 4 seem to be mapping the reads that were unmapped during the first pass (given the reads processed in each is the same as the reads unmapped in the first file). From the run data, I am also assuming that these originally unmapped reads are mapped to junctions?

              58% alignment isn't very good, but if I add the reads aligned in the 4 seg files, the total alignment is 94% - is this actually correct to do though?

              I also want to know how many of the reads map to junction sites - am I correct in thinking the 4 seg files are mapping reads to junctions? This seems like a really high number map to junction sites if this is the case (35%). If not, is there somewhere else I can find this data.

              Thanks for any help/advice you all can give me!

              Comment

              • rahulvarma
                Junior Member
                • Aug 2011
                • 9

                #8
                hi...

                I am done with eukaryotic de novo assembly of transcriptome( illuma platform) 30mn paired-end reads.now I would ike to chk the accuracy .so desided to map against reads using bowtie.when I use mapping qulaity 100 (--mapq 100).getting following results

                reads processed:47mn
                reads with atleast one reported alignment:4mn(9%)
                reads with failed to align:21%
                reads with alignments suppressed due to -m:69%
                reported:4mn

                same time when I don't use --mapq 100 I get follwing values.

                reads processed:47mn
                reads with atleast one reported alignment:37mn(78%)
                reads with failed to align:21%
                reads with alignments suppressed due to -m:69%
                reported:37mn

                bit confused abt setting the mapping quality for mapping RNA-seq reads aginst transcriptome assembely.can anyone suggest me ? thanks in advance!

                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-15-2026, 10:52 AM
                0 responses
                20 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-14-2026, 05:39 AM
                0 responses
                26 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-13-2026, 09:56 AM
                0 responses
                22 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-09-2026, 11:14 AM
                0 responses
                28 views
                0 reactions
                Last Post SEQadmin2  
                Working...