getBetaScore: Get binary (aka beta) score

View source: R/markerGenesAndMapping.r

getBetaScoreR Documentation

Get binary (aka beta) score

Description

Returns a beta score which indicates the binaryness of a gene across clusters. High scores (near 1) indicate that a gene is either on or off in nearly all cells of every cluster. Scores near 0 indicate a cells is non-binary (e.g., not expressed, ubiquitous, or randomly expressed). This value is used for gene filtering prior to defining clustering.

Usage

getBetaScore(propExpr, returnScore = TRUE, spec.exp = 2)

Arguments

propExpr

a matrix of proportions of cells (rows) in a given cluster (columns) with CPM/FPKM > 1 (or 0, HCT uses 1)

returnScore

if TRUE returns the score, if FALSE returns the ranks

spec.exp

scaling factor (recommended to leave as default)

Value

returns a numeric vector of beta score (or ranks)


AllenInstitute/mfishtools documentation built on July 5, 2023, 4:20 p.m.