Learn R Programming

hsphase (version 3.0.0)

groupMatSingle: Grouping a Half-sib Family

Description

Group the genotype or haplotype of a half-sib family into partitions using opposing homozygotes.

Usage

groupMatSingle(haplotype, windowsSize, cpus = 2, input = "haplotype", oh = 0)

Value

A grouping matrix.

Arguments

haplotype

matrix. Haplotypes (two rows per individual) or genotypes (one row per individual) depending on input.

windowsSize

integer. Partition size.

cpus

integer. Number of CPU threads.

input

character. Either "haplotype" or "genotype".

oh

integer. Threshold for opposing homozygotes used for grouping (increase if genotyping errors exist).

See Also

addSwitch and fixSW

Examples

Run this code
haplotype <- .simulateHalfsib(10, 5000, type = "haplotype")$phased
gMat <- groupMatSingle(haplotype, 100, 2, "haplotype")
imageplot(gMat)

Run the code above in your browser using DataLab