fixClones {ASMap} | R Documentation |
Consensus genotypes for clonal genotype groups
Description
Consensus genotypes for clonal genotype groups of an R/qtl object.
Usage
fixClones(object, gc, id = "Genotype", consensus = TRUE)
Arguments
object |
An qtl |
gc |
A data frame of genotype clone infomation usually from a call to
|
id |
Character string defining the column of |
consensus |
A logical value. If |
Details
This function provides a very efficient way of dealing with genotype clones in a genetic marker set. This function can be used at any stage of the map construction process as it retains linkage group and marker position information.
The gc
argument needs to be a data frame of clone
information and is easily obtained from a call to genClones
. If
this function is not used then the data frame must contain at least three
columns with the first two columns named "G1"
and "G2"
containing the pairs of genotypes that are clones and a "group"
column that indicates the clonal group the pairs of genotypes belongs to.
If consensus = TRUE
then the function will intelligently collapse
the alleles for each marker to form a consensus genotype. Specifically, the allele
value will remain unchanged when there are observed allele values
across all genotypes in the clone group. For cases where there are
missing alleles for some but not all of the
genotypes, the consensus genotype will be given the common allele value
from the genotypes that contained observed allele values. If there is
more than one unique allele value across the genotypes for any marker
then it is set to missing.
Value
The cross object is returned with identical class structure as the imputted cross object.
Author(s)
Julian Taylor
References
Taylor, J., Butler, D. (2017) R Package ASMap: Efficient Genetic Linkage Map Construction and Diagnosis. Journal of Statistical Software, 79(6), 1–29.
See Also
comparegeno
and genClones
Examples
data(mapDH, package = "ASMap")
gc <- genClones(mapDH)
mapDHf <- fixClones(mapDH, gc$cgd, consensus = TRUE)