I have noticed an issue with my BAM file headers, where the @RG line is either mal-formed or is missing entirely. I think I can sed the files that are mal-formed, and add the sample names necessary to complete my further analyses in GATK. But is there a way to add an entire line to the headers?
Ahh, I think that's what I am looing for. Thanks!