Implementing unequal sample size for snp function