| find.errors {qtl} | R Documentation |
Compares the observed genotypes to the most likely sequence of
underlying genotypes given the observed marker data (calculated in
argmax.geno), to identify genotypes likely to be in
error.
find.errors(cross, chr, error.prob=0.01,
map.function=c("haldane","kosambi","c-f"),msg=TRUE)
cross |
An object of class cross. See
read.cross for details. |
chr |
A vector specifying for which chromosomes the calculations should be performed. |
error.prob |
Assumed genotyping error rate used in the calculation of the penetrance Pr(observed genotype | true genotype). |
map.function |
Indicates whether to use the Haldane, Kosambi or Carter-Falconer map function when converting genetic distances into recombination fractions. |
msg |
If TRUE, print a message if there are no apparent errors. |
The most likely sequence of underlying genotypes is calculated in
argmax.geno. This function simply pulls out those
genotypes where the observed genotype differs from that appearing in
the argmax.geno results.
A matrix with 5 columns, whose rows correspond to the genotypes that are possibly in error. The five columns give the chromosome number, individual number, marker name, observed genotype and most likely genotype.
Karl W Broman, kbroman@jhsph.edu
http://biosun01.biostat.jhsph.edu/~kbroman/software/qtl.html
data(fake.f2) output <- find.errors(fake.f2)