Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shuang
    Senior Member
    • Jul 2011
    • 100

    #1

    counting RNA-seq matches

    I have a data set of RNA-seq. I also have a set of genome wide coding sequences.

    My goal is to count the number of matches of each coding sequence which is queried by RNA-seq. What kind of tools would fit my purpose?
  • chadn737
    Senior Member
    • Jan 2009
    • 392

    #2
    htseq-count

    Comment

    • shuang
      Senior Member
      • Jul 2011
      • 100

      #3
      I was also suggested to use Bowtie. Bowtie basically outputs an alignment report. Then, how to do the counting/statistics part?

      Comment

      • chadn737
        Senior Member
        • Jan 2009
        • 392

        #4
        The program I mentioned above, htseq-count, takes a sam alignment file and a gtf/gff file describing your features and gives you the number of reads aligning to each feature. This is then appropriate for use in various statistical programs such as DESeq and EdgeR.

        Comment

        • arvid
          Senior Member
          • Jul 2011
          • 156

          #5
          I like to use RSEM for mapping (uses Bowtie) and isoform expression estimations, followed by DESeq for the differential expression statistics.

          If you just want raw read counts, map your reads (take some time to find the right software and options here, as this depends on the sequencing technology, sample and reference) and extract the counts from the BAM file with "samtools idxstats".

          Comment

          • steven
            Senior Member
            • Aug 2009
            • 269

            #6
            Originally posted by arvid View Post
            I like to use RSEM for mapping (uses Bowtie) and isoform expression estimations, followed by DESeq for the differential expression statistics.

            If you just want raw read counts, map your reads (take some time to find the right software and options here, as this depends on the sequencing technology, sample and reference) and extract the counts from the BAM file with "samtools idxstats".
            "samtools idxstats file.bam" seems to compute the number of reads per reference sequence -typically chromosomes. To get the number of reads per gene htseq-count is a valid option indeed. I think that BEDtools is another one.
            BTW, I am curious to know if one is much faster than the other one.

            Comment

            • mgogol
              Senior Member
              • Mar 2008
              • 197

              #7
              BEDtools coverageBed with a bed file of genes can be used with a bam file from bowtie...

              Comment

              • elemenTY
                Junior Member
                • Sep 2011
                • 1

                #8
                Beside Simon's python-based HTSeq , If you have experience with R and bioconductor, summarizeOverlaps function in GenomicRanges is easy to use too, following the same pattern defined in HTSeq


                countByOverlaps could also do the trick if you can manage your data and features into the right forms.

                Comment

                • shuang
                  Senior Member
                  • Jul 2011
                  • 100

                  #9
                  I used bowtie for alignment and samtools idxstats for counting. It works!

                  However, bowtie only allows me set a alignment constrain by a number of mismatches. Can I set a constrain by either identity percentage or P-value via bowtie or other tools?

                  Comment

                  • shuang
                    Senior Member
                    • Jul 2011
                    • 100

                    #10
                    My data reads are all bout 100bp. I want to count any alignments which are 90% identified and up. I notice that bowtie only allows max mismatches to be 3. How do I increase mismatch to be 10?

                    Comment

                    • arvid
                      Senior Member
                      • Jul 2011
                      • 156

                      #11
                      Originally posted by shuang View Post
                      My data reads are all bout 100bp. I want to count any alignments which are 90% identified and up. I notice that bowtie only allows max mismatches to be 3. How do I increase mismatch to be 10?
                      With Bowtie, the -n option (0-3) is for the seed only (usually the first 28 bases in the read), if you increase -e (max sum of mismatch quals) more mismatches in the whole alignment are allowed. You could also use the -v option (report end-to-end hits w/ <=v mismatches; ignore qualities) instead of -e if you want to allow a specific number of mismatches.

                      The settings in Bowtie2 (currently in beta5) are simplified and might suit your purposes better...

                      Comment

                      • shuang
                        Senior Member
                        • Jul 2011
                        • 100

                        #12
                        the average read length of my RNA-seq is 83. The reference sequences are coding sequences, including genomic, chloroplast, and mitochondria of the same species and strain.

                        Ideally, I want to set a threshold about 90% identity in finding matches. I set the parameters as -n 2 -l 15 -e 10

                        However, the aligned reads were only about 30% while I expected it to be almost 100%. Where did I do wrong?

                        Comment

                        • arvid
                          Senior Member
                          • Jul 2011
                          • 156

                          #13
                          Originally posted by shuang View Post
                          the average read length of my RNA-seq is 83. The reference sequences are coding sequences, including genomic, chloroplast, and mitochondria of the same species and strain.

                          Ideally, I want to set a threshold about 90% identity in finding matches. I set the parameters as -n 2 -l 15 -e 10

                          However, the aligned reads were only about 30% while I expected it to be almost 100%. Where did I do wrong?
                          Not sure whether you'll see massive improvements, but you should set -e much higher (you set it lower than the default 70), it is in mismatch qualities, not bases. Try something extreme like "-e 9999999" to see whether that gives you more alignments...

                          Comment

                          • shuang
                            Senior Member
                            • Jul 2011
                            • 100

                            #14
                            Thank you. This works!

                            I have one more question about the alignment. How do I set a threshold on P value or the minimum length of alignments. Basically, I don't want alignments which are too short, such as shorted than 50bp.

                            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
                            27 views
                            0 reactions
                            Last Post SEQadmin2  
                            Started by SEQadmin2, 10-14-2026, 05:39 AM
                            0 responses
                            34 views
                            0 reactions
                            Last Post SEQadmin2  
                            Started by SEQadmin2, 10-13-2026, 09:56 AM
                            0 responses
                            31 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...