Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • m4merg
    Member
    • Jul 2014
    • 21

    Alignment with BWA

    Hello!

    Im using this BWA to align some reads

    Code:
    bwa index -p my_reference my_reference.fasta
    bwa mem -t 4 my_reference input.fastq > output.sam 2
    After what i found that in the position im interesteed in there are some bugs, or something like this. As shown on the picture i've attached in some reads motif TACCCGAGG in mutant reads algned with 3M1D6M with 1 mismatch, but in others as 9M with 1 mismatch. How can i make BWA to align all such reads as 9M?
    Attached Files
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    Perhaps I'm confused, but it looks like there are 3 classes of reads:

    TACTCAAAGG (normal)
    TACCCGAAGG (mutant 1)
    TACCCGAGG (mutant 2)

    The second class of mutant has a deletion in it, so of course it has to be aligned with a deletion somewhere.

    Comment

    • m4merg
      Member
      • Jul 2014
      • 21

      #3
      Originally posted by Brian Bushnell View Post
      Perhaps I'm confused, but it looks like there are 3 classes of reads:

      TACTCAAAGG (normal)
      TACCCGAAGG (mutant 1)
      TACCCGAGG (mutant 2)

      The second class of mutant has a deletion in it, so of course it has to be aligned with a deletion somewhere.
      So is there any way to align (mutant 2) as 6M1D3M with 2 mismatches rather than 3M1D6M with 2 mismatches, or I have to edit Sam file manually after each alignment? Because real mutations are T4C and A6G, but frequant sequance mistake 6delA in mutant reads disturb alignment and pileup consequantly and makes score of real mutations lower in SNP calling.

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        You will have to manually edit the cigar strings. It's possible that if you align to the reverse-complement of the reference, the deletion will be put in the alternate location, though.

        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...