powered by
Group the genotype or haplotype of a half-sib family into partitions using opposing homozygotes.
groupMatSingle(haplotype, windowsSize, cpus = 2, input = "haplotype", oh = 0)
A grouping matrix.
matrix. Haplotypes (two rows per individual) or genotypes (one row per individual) depending on input.
matrix
input
integer. Partition size.
integer
integer. Number of CPU threads.
character. Either "haplotype" or "genotype".
character
"haplotype"
"genotype"
integer. Threshold for opposing homozygotes used for grouping (increase if genotyping errors exist).
addSwitch and fixSW
addSwitch
fixSW
haplotype <- .simulateHalfsib(10, 5000, type = "haplotype")$phased gMat <- groupMatSingle(haplotype, 100, 2, "haplotype") imageplot(gMat)
Run the code above in your browser using DataLab