getHetMicro: Calaculate Information not in Model

Description Usage Arguments Value Examples

View source: R/Het.R

Description

Calculates HetMicro, the heterogeneity within each group of cells, or its weigthed average (default)

Usage

1
getHetMicro(CountsMatrix, Groups, base = 2)

Arguments

CountsMatrix

Feature x cell sparse counts matrix of class dgCMatrix

Groups

Factor of cell identities

base

base of log

Value

Numeric vector of gene-wise HetMicro

Examples

1
2
3
4
5
Counts <- Matrix::sparseMatrix(i = c(1,1,1,1,2,2,2),
                               j = c(1,2,3,4,1,2,3),
                               x = c(2,2,2,2,3,3,2))
Ident <- factor(c("1", "1", "2", "2"))
getHetMicro(Counts, Ident)

mjcasy/infohet documentation built on May 4, 2021, 1:09 a.m.