Hi there,
I have a bam file which was created by merging the two bam files – each a different run of same sample. Somehow while adding the read group information I added the wrong sample name to it.
Now I want to replace the Sample Name to correct sample name. I know I can use picard tool 'AddOrReplaceReadGroup' or samtools but it changes all the read group info. What I want is replacing new SM info only
What I have is:
@RG ID:A PL:ILLUMINA LB:250BP SM:X
@RG ID:B PL:ILLUMINA LB:250BP SM:X
What I want is:
@RG ID:A PL:ILLUMINA PU:NA LB:250BP SM:Y
@RG ID:B PL:ILLUMINA PU:NA LB:250BP SM:Y
Let me know if this can be done easily without going back to the original bam files and merging them again after changing the SM info in each
Thanks
I have a bam file which was created by merging the two bam files – each a different run of same sample. Somehow while adding the read group information I added the wrong sample name to it.
Now I want to replace the Sample Name to correct sample name. I know I can use picard tool 'AddOrReplaceReadGroup' or samtools but it changes all the read group info. What I want is replacing new SM info only
What I have is:
@RG ID:A PL:ILLUMINA LB:250BP SM:X
@RG ID:B PL:ILLUMINA LB:250BP SM:X
What I want is:
@RG ID:A PL:ILLUMINA PU:NA LB:250BP SM:Y
@RG ID:B PL:ILLUMINA PU:NA LB:250BP SM:Y
Let me know if this can be done easily without going back to the original bam files and merging them again after changing the SM info in each
Thanks

Comment