Subset an allele count matrix given a minimum allele count threshold for pathogenicity per individual so that only variants for which data relevant to pathogencity are retained. This is useful to apply before running bevimed
as it reduces the size of the parameter space used in the inference.
1 | subset_variants(G, min_ac = 1L, return_variants = FALSE)
|
G |
Integer matrix of variant counts per individual, one row per individual and one column per variant. |
min_ac |
Integer vector with a length equalling the number of individuals or length |
return_variants |
Logical value determining whether to return an integer vector of indices of retained variants or the subsetted allele count matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.