subset_variants {BeviMed} | R Documentation |
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.
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 |
Numeric vector of length the same as |
return_variants |
Logical value determining whether to return an integer vector of indices of retained variants or the subsetted allele count matrix |