parse_haplotypes