SampleBaseHaplotype {HaploSim} | R Documentation |
Simulate a base population haplotype
Description
Simulates a base population haplotype.
Usage
SampleBaseHaplotype(genDist,nDec,nLoc,pSnp = seq(0,1,length.out = nLoc))
Arguments
genDist |
Map size of the simulated genome in Morgan. |
nDec |
Number of decimals until which marker positions are rounded. Partially specifies marker density on the chromosome. |
nLoc |
Maximal number of snp loci on genome, default is number of available positions on genome. |
pSnp |
Optional,if specified the snp positions. Default:
uniform distribution of loci over the whole genome. Consequence will
be that loci have allele frequency equal to one. If NULL, positions
will be randomly sampled for each haplotype and allele frequencies
will be close to 0, depending on |
Details
Generally called by function SampleHaplotypes
.
Value
An object of class haplotype
.
See Also
SampleHaplotypes
,
SampleBaseHaplotype
Examples
hList <- sapply(1:10,function(x)SampleBaseHaplotype(genDist = 1,nDec
= 2,nLoc = 50))
[Package HaploSim version 1.8.4.2 Index]