Code for polysomy and CNV analyses using SNP array data