LGtrim | R Documentation |
Trim a linkage group based on genotype frequencies
LGtrim(geno, LODmat, thresh)
geno |
matrix of haplotype dosages (markers x samples) |
LODmat |
matrix of LOD scores for the markers |
thresh |
numeric vector of thresholds for clusterings |
This function should only be run on a single linkage group (to form the linkage groups, use LG
. If thresh
is a numeric vector with multiple LOD thresholds, the function returns a plot showing the impact of the threshold on genotype frequencies. If thresh
is a single value, the function returns a vector of the marker names that are retained. The rownames of geno
and LODmat
must match.
Either a ggplot2 object or a vector of marker names (see Details)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.