This function applies a correction for the situations where scrm::scrm()
does not produce a single polymorphic site for a given locus. In this
situation, two artificial sites are created at that locus. All individuals
are assumed to be homozygous for the reference allele at those sites.
haplo.fix(haplotypes, nHap)a list of haplotypes identical to haplotypes, but without empty
loci.
a list of haplotypes obtained from the simulations done
with scrm::scrm(). Each entry of the list is a matrix that corresponds to
a given locus. At each matrix, each column is a different site and each row
is a different haplotype.
an integer representing the total number of haplotypes simulated.