Entering edit mode
5.6 years ago
marcus.hooker
•
0
None of my BAM files have a correct sample ID in their header, they all literally say "sample_ID"
I didn't catch this until after SNP calling. How can I get the BAM headers to have the name of the sample that they are? I have over 2,000 BAM files.
See as inspiration:
Bam Header Edit
Bam header editing
Some script including GNU parallel will probably help.
Yikes ...............
Did the original file names have this information? You could perhaps
samtools reheader
the files in that case.