Aggregates genotypes within annotation categories.
Aggregator(
anno,
geno,
drop_empty = TRUE,
indicator = FALSE,
method = "none",
weights = DEFAULT_WEIGHTS
)
(n x 3) Numeric matrix without weighting, (n x 1) numeric matrix with weighting.
(snps x 1) annotation vector with values in c(0, 1, 2).
(n x snps) genotype matrix.
Drop empty columns? Default: TRUE.
Convert raw counts to indicators? Default: FALSE.
Method for aggregating across categories: "none", "max", "sum". Default: "none".
Annotation category weights.