Being the early adopter, I tried using the -r option in bwa sampe from the latest version of bwa. If I understand correctly, this option will add the specified @RG tag to the SAM output file.
Has anyone else tried this? How does it work? I tried adding the following option and get an error
bwa sampe -P -a 1000 -r '@RG\tID:what\tCN:where\tDS:why\tDT:when\tPL:ILLUMINA\tPU:how\tSM:who' -f f1.sam human_g1k_v37.fasta f1_1.sai f1_2.sai f1.fq f2.fq
The error I get is
[bam_header_read] invalid BAM binary header (this is not a BAM file).
Has anyone else tried this? How does it work? I tried adding the following option and get an error
bwa sampe -P -a 1000 -r '@RG\tID:what\tCN:where\tDS:why\tDT:when\tPL:ILLUMINA\tPU:how\tSM:who' -f f1.sam human_g1k_v37.fasta f1_1.sai f1_2.sai f1.fq f2.fq
The error I get is
[bam_header_read] invalid BAM binary header (this is not a BAM file).
Comment