Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • yjx1217
    Member
    • Oct 2011
    • 13

    Error when using bwa sampe -r option

    Hello,

    I was trying to use -r option to assign read group information to the sam output of bwa, but it fails every time...Does anybody know why? Thx

    I called bwa sampe command in a perl script like:
    system "/users/jy16/Programs/bwa-0.6.0/bwa sampe ‐r '\@RG\\tID:test1\\tSM:$i\\tLB:$i\\tPL:Illumina' bf1.scaffold_1.fasta $i.scaffold_1.read1.sai $i.scaffold_1.read2.sai ./Maq_reads/$i.scaffold_1.read1.trimmed.fastq ./Maq_reads/$i.scaffold_1.read2.trimmed.fastq >$i.scaffold_1.sam";

    the error message is like this>>

    [bns_restore_core] fail to open file '‐r.ann'. Abort!
    sh: line 1: 18616 Aborted /users/jy16/Programs/bwa-0.6.0/bwa sampe ‐r '@RG\tID:test1\tSM:1\tLB:1\tPL:Illumina' bf1.scaffold_1.fasta 1.scaffold_1.read1.sai 1.scaffold_1.read2.sai ./Maq_reads/1.scaffold_1.read1.trimmed.fastq ./Maq_reads/1.scaffold_1.read2.trimmed.fastq > 1.scaffold_1.sam
    Last edited by yjx1217; 11-20-2011, 01:06 PM.
  • SharonCox
    Junior Member
    • Oct 2012
    • 4

    #2
    I am using bwa 0.6.2 and I am having the same problem....did you fix it?
    The -r option in my version of bwa is no longer present when using the "bwa sampe" command

    Comment

    • yjx1217
      Member
      • Oct 2011
      • 13

      #3
      Originally posted by SharonCox View Post
      I am using bwa 0.6.2 and I am having the same problem....did you fix it?
      The -r option in my version of bwa is no longer present when using the "bwa sampe" command
      Hi Sharon,

      While I did not remember exactly, I thought I used picardtools to get the problem fixed.

      You can check>>


      Hope this helps!

      Best,
      yjx1217

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

        Here are nine questions we think about, in roughly the order they matter, before...
        06-18-2026, 07:11 AM
      • SEQadmin2
        From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
        by SEQadmin2


        Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


        The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
        ...
        06-02-2026, 10:05 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-17-2026, 06:09 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      97 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      117 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      112 views
      0 reactions
      Last Post SEQadmin2  
      Working...