Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fuad193
    Member
    • Feb 2012
    • 17

    #1

    cat fastq from different lanes ?!

    Can I cat fastq files from different lanes and then aligned them ?

    Example: I have 4 fastq for one sample two forward from lane 1 and two reverese from lane 2.

    Can I do the following ?
    cat forward_lane_1.fq forward_lane_2.fq >forward.fq
    cat reverse_lane_1.fq reverse_lane_2.fq >reverse.fq
    bwa sampe ref.fa aln_sa1.sai aln_sa2.sai forward.fq reverse.fq > aln-pe.sam

    OR should I align each lane and merge sam like this:

    bwa sampe ref.fa aln_sa1.sai aln_sa2.sai forward_lane_1.fq reverse_lane_1.fq > aln-pe_1.sam
    bwa sampe ref.fa aln_sa1.sai aln_sa2.sai forward_lane_2.fq reverse_lane_2.fq > aln-pe_2.sam
    samtools merge aln-pe_1.bam aln-pe_2.bam >merged.bam
  • peromhc
    Senior Member
    • Sep 2009
    • 108

    #2
    Yes, cat the together! The 2nd should be fine, too BTW, should yield equivalent results.

    Comment

    • swbarnes2
      Senior Member
      • May 2008
      • 910

      #3
      Yeah, either way is fine; merging the fastqs or merging the .bams

      Comment

      • fuad193
        Member
        • Feb 2012
        • 17

        #4
        Thanks for help

        Comment

        • Heisman
          Senior Member
          • Dec 2010
          • 534

          #5
          One caveat is if one of the lanes is of considerably bad quality to the point you may not want to use the data, it would be better to align each separately with different read groups and then merge. But realistically I don't think many people frequently throw away full lanes of data.

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