Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • insular
    Junior Member
    • Jun 2013
    • 1

    #1

    [bwa] generating paired end sam file from sai files

    Hi all,

    I was aligning paired end reads in two fastq files: read_1.fq and read_2.fq generated from the grinder simulation program and kept the alignments in read_1.sai and read_2.sai files. Then I tried to combine them into one bam file by:

    bwa sampe ../../CP000948.fna read_1.sai read_2.sai read_1.fq read_2.fq >read_12.sam

    It will be a success when read_1.fq and read_2.fq are all properly paired (every read in 1 has a mate in 2) but it will report following error when I artificially remove one read from 1 (making one pair missing an end):

    [bwa_sai2sam_pe_core] convert to sequence coordinate...
    [fread] Unexpected end of file

    My purpose of doing this is the fq files generated from grinder behave this way. Although their paper don't touch on this, I guess its one of the possible error mechansims they try to simulate. But this is causing trouble in the downstream bwa pipeline. Just wonder if this is a normal bwa sampe behavior and is there any mature tools out there for taking care of this. It is probably better than I manually write a more error-prone script to fix it myself.

    Thanks a lot!
  • krobison
    Senior Member
    • Nov 2007
    • 734

    #2
    Yes, the convention is that your files must have properly paired reads & bwa is assuming your file is corrupted if that is not the case.

    There is a good need for a tool to fix this, though actually implementing it isn't trivial (in particular, what assumptions & memory requirements would such a tool have?).

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-22-2026, 11:13 AM
    0 responses
    54 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    40 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    46 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    46 views
    0 reactions
    Last Post SEQadmin2  
    Working...