Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Guigra
    Member
    • Apr 2013
    • 17

    How working with sam format and blast?

    Hi,

    I'm trying to work with the BWA, but I'm having a problem.
    After doing the alignment with BWA, I need to pass the generated file to fasta format, so I can make a blast.
    But when I do this, apparently the fasta file generated comter seems only the reads. Lose alignment. Anyone know what's happening?
    I use te samtools to pass the file in sam format for bam format, and after I use the blast2fastx to convert the alignment in bam format to fasta format.
    I don't know if have some influence, but I'm work with the paired-end alignment.
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Converting from SAM or BAM to fasta will result in information loss, unless the converter happens to store all of the alignment information in the description line (and then blast keeps it).

    After using bwa your reads are aligned, why are you then blasting things? If you describe what you're really trying to do we might be able to tell you a more efficient way.

    Comment

    • Guigra
      Member
      • Apr 2013
      • 17

      #3
      I did the alignment using BWA, with a reference genome and my reads. Then I had to make a blast alignment I generated to verify that the generated alignment contained some sequence of chloroplast DNA.

      Comment

      • jimmybee
        Senior Member
        • Sep 2010
        • 119

        #4
        Originally posted by Guigra View Post
        I did the alignment using BWA, with a reference genome and my reads. Then I had to make a blast alignment I generated to verify that the generated alignment contained some sequence of chloroplast DNA.
        How about doing it the other way around? Filter your reads using BLAST against a chloroplast DNA database, and then use the remaining reads with BWA to map against the genome

        Unless you want to identify chloroplast insertions in the nuclear genome?

        Comment

        • Guigra
          Member
          • Apr 2013
          • 17

          #5
          Actually I'm trying to check if material extraction for sequencing was done correctly without leftover remnants of chloroplast DNA.
          Your tip solved my problem, thank you! You know how to make this filter in the BWA or bowtie, or some other program? If you know tell me how can I do?

          Comment

          • jimmybee
            Senior Member
            • Sep 2010
            • 119

            #6
            Originally posted by Guigra View Post
            Actually I'm trying to check if material extraction for sequencing was done correctly without leftover remnants of chloroplast DNA.
            Your tip solved my problem, thank you! You know how to make this filter in the BWA or bowtie, or some other program? If you know tell me how can I do?
            Well you could align reads to the chloroplast genome of your choice, then extract unmapped reads (something like samtools view -F 4....you'll have to double check the flags) and use that to input into BWA for your actual alignment.

            Comment

            • Guigra
              Member
              • Apr 2013
              • 17

              #7
              Originally posted by jimmybee View Post
              Well you could align reads to the chloroplast genome of your choice, then extract unmapped reads (something like samtools view -F 4....you'll have to double check the flags) and use that to input into BWA for your actual alignment.
              Thanks for the help! I will use your tip.

              Comment

              • chadn737
                Senior Member
                • Jan 2009
                • 392

                #8
                Or just included the chloroplast genome in the reference with the nuclear genome and do the entire alignment in one go.

                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...
                  03-24-2025, 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

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by seqadmin, 03-20-2025, 05:03 AM
                0 responses
                41 views
                0 reactions
                Last Post seqadmin  
                Started by seqadmin, 03-19-2025, 07:27 AM
                0 responses
                51 views
                0 reactions
                Last Post seqadmin  
                Started by seqadmin, 03-18-2025, 12:50 PM
                0 responses
                38 views
                0 reactions
                Last Post seqadmin  
                Started by seqadmin, 03-03-2025, 01:15 PM
                0 responses
                193 views
                0 reactions
                Last Post seqadmin  
                Working...