View source: R/transformTFIDF.R
hdf5TFIDF | R Documentation |
Transform/normalize compartment calls using TF-IDF on HDF5-backed objects
hdf5TFIDF(h5, scale.factor = 1e+05, return.dense = FALSE, return.se = FALSE)
h5 |
SummarizedExperiment object, DelayedMatrix, or a normal matrix |
scale.factor |
Scaling factor for the term-frequency (TF) |
return.dense |
Whether to return a dense, in memory matrix |
return.se |
Whether to return the TF-IDF matrix as a new assay in the SummarizedExperiment |
A TF-IDF transformed matrix of the same dimensions as the input
m <- 1000
n <- 100
mat <- round(matrix(runif(m*n), m, n))
#Input needs to be a tall matrix
tfidf <- hdf5TFIDF(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.