Aggregator {AllelicSeries}R Documentation

Aggregator

Description

Aggregates genotypes within annotation categories.

Usage

Aggregator(
  anno,
  geno,
  drop_empty = TRUE,
  indicator = FALSE,
  method = "none",
  weights = DEFAULT_WEIGHTS
)

Arguments

anno

(snps x 1) annotation vector with values in c(0, 1, 2).

geno

(n x snps) genotype matrix.

drop_empty

Drop empty columns? Default: TRUE.

indicator

Convert raw counts to indicators? Default: FALSE.

method

Method for aggregating across categories: "none", "max", "sum". Default: "none".

weights

Annotation category weights.

Value

(n x 3) Numeric matrix without weighting, (n x 1) numeric matrix with weighting.


[Package AllelicSeries version 0.0.4.1 Index]