View source: R/makeHaplotypes.R
SampleBaseHaplotype | R Documentation |
Simulates a base population haplotype.
SampleBaseHaplotype(genDist,nDec,nLoc,pSnp = seq(0,1,length.out = nLoc))
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 nLoc / (genDist*10^{nDec}). |
Generally called by function SampleHaplotypes
.
An object of class haplotype
.
SampleHaplotypes
,
SampleBaseHaplotype
hList <- sapply(1:10,function(x)SampleBaseHaplotype(genDist = 1,nDec = 2,nLoc = 50))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.