Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

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

  • #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


    • #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


      • #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


        • #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


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

            Comment


            • #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


              • #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


                • #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


                  • #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


                    • #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

                      • seqadmin
                        Understanding Genetic Influence on Infectious Disease
                        by seqadmin




                        During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

                        Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
                        09-09-2024, 10:59 AM
                      • seqadmin
                        Addressing Off-Target Effects in CRISPR Technologies
                        by seqadmin






                        The first FDA-approved CRISPR-based therapy marked the transition of therapeutic gene editing from a dream to reality1. CRISPR technologies have streamlined gene editing, and CRISPR screens have become an important approach for identifying genes involved in disease processes2. This technique introduces targeted mutations across numerous genes, enabling large-scale identification of gene functions, interactions, and pathways3. Identifying the full range...
                        08-27-2024, 04:44 AM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by seqadmin, Today, 06:25 AM
                      0 responses
                      13 views
                      0 likes
                      Last Post seqadmin  
                      Started by seqadmin, Yesterday, 01:02 PM
                      0 responses
                      12 views
                      0 likes
                      Last Post seqadmin  
                      Started by seqadmin, 09-18-2024, 06:39 AM
                      0 responses
                      14 views
                      0 likes
                      Last Post seqadmin  
                      Started by seqadmin, 09-11-2024, 02:44 PM
                      0 responses
                      14 views
                      0 likes
                      Last Post seqadmin  
                      Working...
                      X