pulling from samtools/hts-specs