Copy number hidden Markov model for genotyping arrays