subset_variants {BeviMed} | R Documentation |
Remove variants with no data for pathogenicity
Description
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.
Usage
subset_variants(G, min_ac = 1L, return_variants = FALSE)
Arguments
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 |