Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hugh_hang
    Member
    • Jan 2013
    • 28

    #1

    fastq to bam

    Hi!
    Can anyone tell me is it possible to convert a .fastq file to a .bam file? How to convert or which tool can I use?
    Thanks in advance.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Yes it is possible to convert a fastq file to BAM but only after you use a suitable alignment tool to align it to a reference.

    Comment

    • JackieBadger
      Senior Member
      • Mar 2009
      • 385

      #3
      Fastq is raw data (input)...BAM is an alignment file (output)

      One is generated from the other using mapping/ de novo assembly software...One can not simply convert

      Comment

      • hugh_hang
        Member
        • Jan 2013
        • 28

        #4
        Originally posted by JackieBadger View Post
        Fastq is raw data (input)...BAM is an alignment file (output)

        One is generated from the other using mapping/ de novo assembly software...One can not simply convert
        thank you, could you tell me how to align or map fastq? what tool will you recommend?

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #5
          Originally posted by hugh_hang View Post
          thank you, could you tell me how to align or map fastq? what tool will you recommend?
          See the link I had included in my response in post #2.

          Comment

          • bishwo
            Junior Member
            • Jan 2012
            • 8

            #6
            Use FastqToSam from picard tools. Then convert sam to bam using SamFormatConverter.

            Comment

            • maubp
              Peter (Biopython etc)
              • Jul 2009
              • 1544

              #7
              Originally posted by JackieBadger View Post
              Fastq is raw data (input)...BAM is an alignment file (output)

              One is generated from the other using mapping/ de novo assembly software...One can not simply convert
              Well, you can store unmapped reads in SAM/BAM, so a simple conversion at that level is possible although not what is usually meant (aligning):
              I think it is time to retire the FASTQ file format in favour of storing unaligned reads in SAM/BAM format . I will try to explain, as thi...

              Comment

              • madhavi
                Member
                • Jan 2015
                • 14

                #8
                Hi i am new to NGS analysis. I have read and tried many answers regarding converting fastq to sam through picard tools, But it dnt work out? is there any other way to do that?thank u.

                Comment

                • hugh_hang
                  Member
                  • Jan 2013
                  • 28

                  #9
                  Originally posted by madhavi View Post
                  Hi i am new to NGS analysis. I have read and tried many answers regarding converting fastq to sam through picard tools, But it dnt work out? is there any other way to do that?thank u.
                  I am afraid I don't know more than you do. I just followed them and get something undesirable.

                  Comment

                  • maubp
                    Peter (Biopython etc)
                    • Jul 2009
                    • 1544

                    #10
                    You probable need to use a read mapping tool like BWA or Bowtie2 to align the raw FASTQ reads to a genome giving you aligned reads in SAM/BAM format.

                    This is not simply "converting" from FASTQ to SAM/BAM. The tools look at each FASTQ read and search the genome looking to find where it matches best in order to "align" the read to the genome.

                    (I am basically repeating what GenoMax said in his first reply at the start of this thread.)

                    Comment

                    • kaps
                      Member
                      • Jan 2015
                      • 71

                      #11
                      Originally posted by bishwo View Post
                      Use FastqToSam from picard tools. Then convert sam to bam using SamFormatConverter.
                      Hello I seen a script on this link https://code.google.com/p/fasta-to-fastq/ that converts fasta to fastq either as standalone or unix workflow.

                      How can use I it either as standalone or unix?
                      Last edited by kaps; 05-22-2015, 12:54 AM. Reason: error posting

                      Comment

                      Latest Articles

                      Collapse

                      • kinpict.com
                        Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                        by kinpict.com
                        The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
                        Today, 06:37 PM
                      • SEQadmin2
                        16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                        by SEQadmin2





                        NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
                        10-30-2026, 06:46 AM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by SEQadmin2, 11-12-2026, 07:59 AM
                      0 responses
                      27 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 11-05-2026, 09:25 AM
                      0 responses
                      35 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 11-03-2026, 11:54 AM
                      2 responses
                      56 views
                      0 reactions
                      Last Post kinpict.com  
                      Started by SEQadmin2, 10-28-2026, 09:57 AM
                      0 responses
                      175 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...