Entering edit mode
2.5 years ago
sbilobram
▴
20
Recently some of our BAMs have come through with duplicate SQ tags in the headers. This caused some of the downstream tools to fail. We now want a tool to check that the BAMs' headers conform to SAM/BAM Format specs. The Picard/GATK ValidateSamFile fails on these BAMs but gives an useful error message. The samtools quickcheck does not find this malformation.
IS THERE A TOOL THAT WILL CHECK THAT A BAM HEADER IS VALID?
samtools quickcheck does not SEARCH this malformation.
what's wrong with ValidateSamFile ?
even samtools will display a warning:
yeah this is great but we want to capture any/all mal formed Headers. If I didn't know this header had duplicate SQ tags I wouldnt not have known to search for '/^@SQ/
what do you mean with
just detect the error and dump the header with samtools view -H (?)
We want a tool that would detect any error in the BAM header not just duplicated SQ tags
ValidateSamFile crashes with an error. The error is helpful but the tool does stop running which we dont really want.
I'm sorry but sounds like "the car has no wheels, it's broken, but we want it to drive"