Hi,

I have around 20 BAM files and each of them have proper bam header including RG ID, Sample, Library, Platform unit, Description and Platform. I was reading the GATK manual and just realized that the only accepted names for platforms are 454, LS454, Illumina, Solid, ABI_Solid, and CG.  But I wanted to be quiet specific when I was converting SAM to BAM and used "Solid5500XL" as the platform name.

I know there are AddorReplaceReadgroups and ReplaceSamHeader coomand in Picard which I can use to edit the BAM header. But it will take some time as I have many large files. Is there an easy way to do so without rewriting the BAM files.

Thanks in advance
I think you can do this with [samtools][1], first extract the header into a text file, then correct the value and then change the BAM header. Something like this:

```
for BAM in *.bam
do
     samtools view -H $BAM > header.sam
     sed "s/Solid5500XL/Solid/" header.sam > header_corrected.sam
     samtools reheader header_corrected.sam $BAM
done
```

I haven't tested it but I think it must work for you. Please let me know if that works (who knows, maybe some day I'll need it).

 [1]: http://samtools.sourceforge.net/