Unconfigured Ad

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

    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

                      • SEQadmin2
                        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                        by SEQadmin2



                        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                        ...
                        07-09-2026, 11:10 AM
                      • SEQadmin2
                        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                        by SEQadmin2



                        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                        07-08-2026, 05:17 AM
                      • GATTACAT
                        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                        by GATTACAT
                        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                        07-01-2026, 11:43 AM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by SEQadmin2, 07-13-2026, 10:26 AM
                      0 responses
                      24 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 07-09-2026, 10:04 AM
                      0 responses
                      34 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 07-08-2026, 10:08 AM
                      0 responses
                      21 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 07-07-2026, 11:05 AM
                      0 responses
                      34 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...