powered by
expectedNumAlleles(n, theta, ploidy)
ploidy
num.alleles
var.num.alleles
expectedNumAlleles(20, 1, 2) # double the samples expectedNumAlleles(40, 1, 2) # for a haploid locus expectedNumAlleles(40, 1, 1) # double theta expectedNumAlleles(40, 2, 1)
Run the code above in your browser using DataLab