I disagree. There is flowcell and lane information in every read ID.
@A00152:398:H32M5DSX2:1:1101:1136:1016 1:N:0:CTAATAACCG+CGATGCGGTT
NTGATAAAGGGAATATCTTCCCCTACAAGCTAGAAAGAAGCATTCTGTGAAACTTGTTTGTGATGTGTGTACTCAACTAACAGAGTTGAACCTTTCTTTTTACAGAGCAGTTTTGAAACACTCTTTTTGTAGAATCTGCGAGGGGATATTT
The read came from flowcell H32M5DSX2 and within Lane 1.
Our sequencing service provider concatenated all eight lanes for each sample before sending the data to us. I wish bwa mem had some special values to specify that it should automatically extract the flowcell and lane from every read in the FASTQ file from the 3rd and 4th position.
Actually, after QC I have aligned them using BWA-MEM. now I am to call variants using GATK haplotype caller, but before that I am to re calibrate the base quality scores using GATK BQSR. when I try to perform that task, I get an error "ERROR: ReadGroup information in the BAM header is not present". I need the read group information to resolve this issue I think. If you can tell me how to obtain read group information for this purpose it will be really helpful.
I see. So that is a different issue than the one you posted as original question.
Take a look at this thread for solutions using picard to add the read group information to your BAM files: GATK, SAM file doesn't have any read groups defined in the header
Thanks, for the help. I was wondering if including the read group information in the bwa-mem step would fix this? If, Yes, then how to find out the read group information.
It would. But you can also add that information to the existing bam files. Ask people who you are analyzing the data for to get the relevant bits you need to include in the groups. If no real info is available you could use some dummy fields as indicated in the thread above.
Thanks a lot for your replies.