Function rust_htslib::htslib::bcf_hdr_merge [] [src]

pub unsafe extern "C" fn bcf_hdr_merge(
    dst: *mut bcf_hdr_t,
    src: *const bcf_hdr_t
) -> *mut bcf_hdr_t

bcf_hdr_merge() - copy header lines from src to dst, see also bcf_translate() @param dst: the destination header to be merged into, NULL on the first pass @param src: the source header

Notes:

  • use as: bcf_hdr_t *dst = NULL; for (i=0; i<nsrc; i++) dst = bcf_hdr_merge(dst,src[i]);

  • bcf_hdr_merge() replaces bcf_hdr_combine() which had a problem when combining multiple BCF headers. The current bcf_hdr_combine() does not have this problem, but became slow when used for many files.