transformTFIDF {compartmap} | R Documentation

## Transform/normalize compartment calls using TF-IDF

### Description

Transform/normalize compartment calls using TF-IDF

### Usage

    transformTFIDF(obj, scale.factor = 1e+05)

### 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

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

[Package compartmap version 1.10.0 Index]