A novel method for haplotype clustering and visualization