Inference of trait associations with SNP haplotypes and other