Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jmartin
    Member
    • Dec 2009
    • 78

    BWA and screening illumina reads for contaminant

    I'm trying to hash out a set of parameters for bwa that I can use to screen illumina 75mer & 100mer reads for contaminant. I'm expecting a large volume of environmental data, and I want to clean the incoming data by filtering out certain organisms.

    I'm worried that the default parameters for bwa may prove too stringent. But I'm not sure which parameters to relax without introducing too many false positives into my results.

    I have a set of data spiked with contaminant to use for testing, but I don't really know where to start. The bwa man page says setting an INT value for '-n' sets the "maximum edit distance", and that seems to set the max number of mismatches allowed. And I can watch results shift as I vary that number, and in most cases it seems to make sense. But that seems at odds with the arguments '-k' & '-l' with are supposed to set the seedlength (which is by default 'inf' which I guess implies the full length of my query), and the max "edit distance" (mismatches?) in the seed (default is 2). But I can vary the '-n' value and allow more than 2 mismatches even though I'm using the default settings for '-k' & '-l' (which should kill the read if there are more than 2 mismatches?)

    Is there any more detailed discussion of parameter suggestions for real world problems? I'm pretty old school, and BLAST had that wonderful oreilly blast book that had a number of examples that gave you a starting point for different tasks, then I could tweak values from there. But I feel kinda lost with BWA. Can anyone suggest another resource beyond the man page & the bwt paper that might help me out?
  • lh3
    Senior Member
    • Feb 2008
    • 686

    #2
    I am not familiar with metagenomics analysis, but probably you would like to try "bwa bwasw" if you think "bwa aln" is too stringent. Bwasw simply gives you high-scoring local hits (kind of like blast/ssaha2) rather than require the full read to be aligned (bwa aln requires this). I do not know if this meets your goal. BTW, be aware that the total length of your database sequence must smaller than 4GB. If you want to align against the nt database, split it first.

    Comment

    • xchen5
      Junior Member
      • Mar 2010
      • 3

      #3
      I have the same question:
      I guess in BWA input, "-l 25 -k 2" means that if there are more than 2 mismatches (or differences from the reference sequence) in the first 25 base (called seed?) of a read, the read will be considered as failed to map.

      Dr. Liheng, is this right?
      Last edited by nilshomer; 04-22-2010, 06:52 PM.

      Comment

      • Auction
        Member
        • Jul 2009
        • 24

        #4
        Originally posted by jmartin View Post
        I'm trying to hash out a set of parameters for bwa that I can use to screen illumina 75mer & 100mer reads for contaminant. I'm expecting a large volume of environmental data, and I want to clean the incoming data by filtering out certain organisms.

        I'm worried that the default parameters for bwa may prove too stringent. But I'm not sure which parameters to relax without introducing too many false positives into my results.

        I have a set of data spiked with contaminant to use for testing, but I don't really know where to start. The bwa man page says setting an INT value for '-n' sets the "maximum edit distance", and that seems to set the max number of mismatches allowed. And I can watch results shift as I vary that number, and in most cases it seems to make sense. But that seems at odds with the arguments '-k' & '-l' with are supposed to set the seedlength (which is by default 'inf' which I guess implies the full length of my query), and the max "edit distance" (mismatches?) in the seed (default is 2). But I can vary the '-n' value and allow more than 2 mismatches even though I'm using the default settings for '-k' & '-l' (which should kill the read if there are more than 2 mismatches?)

        Is there any more detailed discussion of parameter suggestions for real world problems? I'm pretty old school, and BLAST had that wonderful oreilly blast book that had a number of examples that gave you a starting point for different tasks, then I could tweak values from there. But I feel kinda lost with BWA. Can anyone suggest another resource beyond the man page & the bwt paper that might help me out?
        In my recent experiments, I tried both BWA SW (default option) and BLASTN (1e-5) to filter out 454 reads from certain organism. It seems the reported number is very close.

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Pathogen Surveillance with Advanced Genomic Tools
          by seqadmin




          The COVID-19 pandemic highlighted the need for proactive pathogen surveillance systems. As ongoing threats like avian influenza and newly emerging infections continue to pose risks, researchers are working to improve how quickly and accurately pathogens can be identified and tracked. In a recent SEQanswers webinar, two experts discussed how next-generation sequencing (NGS) and machine learning are shaping efforts to monitor viral variation and trace the origins of infectious...
          Yesterday, 11:48 AM
        • seqadmin
          New Genomics Tools and Methods Shared at AGBT 2025
          by seqadmin


          This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

          The Headliner
          The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
          03-03-2025, 01:39 PM
        • seqadmin
          Investigating the Gut Microbiome Through Diet and Spatial Biology
          by seqadmin




          The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
          02-24-2025, 06:31 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 03-20-2025, 05:03 AM
        0 responses
        26 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-19-2025, 07:27 AM
        0 responses
        33 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-18-2025, 12:50 PM
        0 responses
        25 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-03-2025, 01:15 PM
        0 responses
        190 views
        0 reactions
        Last Post seqadmin  
        Working...