View source: R/filter_variants.R
Implements common strategies to filter variants of an allele frequency
matrix, including complete_variants
, which exclude variants with missing
genotype, and informative_variants
, which excludes variants were allgroups
are reference or alternative homozygous and keeping only informative sites.
These functions return a boolean
vector of the subset and can also be used
with filter_variants
to return the subsetted allele count or frequency
matrix.
1 2 3 4 5 | filter_variants(x, fn, cols = NULL)
complete_variants(x, cols = NULL)
informative_variants(x, cols = NULL)
|
x |
A allele count or frequency matrix to be filtered. |
cols |
A vector indicating the subset of columns considered. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.