| fixSW | R Documentation |
Fix switch errors in haplotypes for a half-sib family.
fixSW(haplotype, ohMax = 0, windowsSize = 100, minLength = 100, cpus = 2)
haplotype |
|
ohMax |
|
windowsSize |
|
minLength |
|
cpus |
|
A haplotype matrix with switch errors corrected.
groupMatSingle and addSwitch
haplotype <- .simulateHalfsib(7, 2500, type = "haplotype")$phased
switches <- list(500,0,0,1200,c(1000,2000),500,1200)
haplotype2 <- addSwitch(haplotype, switches, 0)
gMat <- groupMatSingle(haplotype2, 100, 2, "haplotype")
imageplot(gMat, title = "Before fixing switches")
haplotype3 <- fixSW(haplotype2, 0, 100, 100)
gMat2 <- groupMatSingle(haplotype3, 100, 2, "haplotype")
imageplot(gMat2, title = "After fixing switches")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.