selectVariants | R Documentation |
Auxiliary function to invert minor alleles and to select those variants/loci exceeding a minimal cutoff value.
selectVariants(m, phased = FALSE, invertMinorAllele = TRUE, minVariants = 0)
m |
A (sparse) input matrix. The input matrix is assumed to be oriented to contain the data for one individual per column. |
phased |
Boolean flag to indicate if the input matrix is phased. Default is |
invertMinorAllele |
Boolean flag to indicate if the minor allele should be inverted. Default is |
minVariants |
Cutoff value for minimal number of variants for keeping a locus. Default is |
The processed matrix with pruned variants/loci.
require(locStra) m <- matrix(sample(0:1,100,replace=TRUE),ncol=10) print(selectVariants(m))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.