transformTFIDF: Transform/normalize compartment calls using TF-IDF

Description Usage Arguments Value Examples

View source: R/transformTFIDF.R

Description

Transform/normalize compartment calls using TF-IDF

Usage

1
transformTFIDF(obj, scale.factor = 100000)

Arguments

obj

n x p input matrix (n = samples/cells; p = compartments)

scale.factor

Scaling factor for the term-frequency (TF)

Value

A TF-IDF transformed matrix of the same dimensions as the input

Examples

1
2
3
4
5
m <- 1000
n <- 100
mat <- round(matrix(runif(m*n), m, n))
#Input needs to be a tall matrix
tfidf <- transformTFIDF(mat)

JordanVeldboom/compartmap documentation built on July 3, 2020, 6:32 p.m.