haplo.fix {poolHelper} | R Documentation |
Create invariable sites
Description
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.
Usage
haplo.fix(haplotypes, nHap)
Arguments
haplotypes |
a list of haplotypes obtained from the simulations done
with |
nHap |
an integer representing the total number of haplotypes simulated. |
Value
a list of haplotypes identical to haplotypes
, but without empty
loci.
[Package poolHelper version 1.1.0 Index]