do_lsi | R Documentation |
Get a LSI matrix (cell-by-LSI) from TF-IDF matrix from single cell profiles
do_lsi(mat, dims = 30)
mat |
(sparse matrix) A saparse matrix of TF-IDF matrix (LSI) used for SVD |
dims |
number of LSIs to calculate (default:30) |
a sparse matrix of LSI
SE_pbmc5k <- example_data(name="pbmc5k_SE.rda") peak_by_cell_mat <- SummarizedExperiment::assay(SE_pbmc5k) #### Downsample to speed up example #### peak_by_cell_mat <- peak_by_cell_mat[seq_len(500), seq_len(100)] tfidf_mat <- tfidf(bmat=peak_by_cell_mat) lsi_mat <- do_lsi(mat=tfidf_mat, dims=30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.