From: Peter Johansson <trojkan@gm...> - 2013-03-13 23:54:30
I'm wondering about the hash in bam_header_t and how to initialize it. I
was trying to use the function 'bam_get_tid' (defined in 'bam.h'). That
function requires that the hash has been initialize, but the obvious
function to do so, 'bam_init_header_hash', is only defined in several
source files and not in a header file I can include. Is there any reason
'bam_init_header_hash' has not been included in the API? Is there any
plan to include it in the API?
A workaround at the moment seems to call 'bam_parse_region', which as a
side effect inits the hash (even documented as a side effect).