Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • bwa mem report only matches

    Trivial question? - when aligning raw reads from a large file to a small reference sequence and 99.99..% of reads are non matches, with Flag 4, is there a flag to set to report only matches. Thanks, John

  • #2
    Have a look at:
    https://www.biostars.org/p/56246/

    Comment


    • #3
      Thanks for the suggestion. Unfortunately it does not solve the problem of producing a 40Gb .sam file when only 1Mb of it is useful. It seems to make my computer heavier.

      Comment


      • #4
        Have you tried piping bwa mem output into samtools? Something like:

        Code:
        bwa mem [your options] | samtools view -SF 4 - > output.sam

        Comment


        • #5
          Also, BBMap has an "outm" flag, which will retain only mapped reads, but keep pairs together (if either one was mapped). For example:

          bbmap.sh ref=reference.fa in1=r1.fq in2=r2.fq outm=mapped.sam

          Comment


          • #6
            Many thanks for both the samtools and BBMap suggestions. I had not heard of BBMap, but was extremely impressed at its speed and the way outm worked.

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Recent Advances in Sequencing Analysis Tools
              by seqadmin


              The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
              Yesterday, 07:48 AM
            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin




              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
              04-22-2024, 07:01 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 06:57 AM
            0 responses
            9 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, Yesterday, 07:17 AM
            0 responses
            14 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-02-2024, 08:06 AM
            0 responses
            19 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-30-2024, 12:17 PM
            0 responses
            24 views
            0 likes
            Last Post seqadmin  
            Working...
            X