| isHomozygous | R Documentation |
Identifies homozygous genotypes in the marker data. A genotype is homozygous if both alleles are non-missing and equal.
isHomozygous(x, ids = typedMembers(x), count = FALSE)
x |
A |
ids |
A vector of individual ID labels. Defaults to all typed members of
|
count |
A logical. If TRUE, return counts per individual. |
By default, a logical matrix of dimension N x L, where N is
length(ids) and L is the number of markers. If count = TRUE, a numeric
vector of length N giving the number of homozygous genotypes for each
individual.
x = nuclearPed(father = "fa", mother = "mo", children = "ch") |>
addMarker(name = "m1", geno = c(NA, "1/1", "1/2")) |>
addMarker(name = "m2", geno = c(NA, "2/2", "2/2"))
isHomozygous(x)
isHomozygous(x, ids = "mo")
isHomozygous(x, count = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.