Description Usage Arguments Value Examples
View source: R/plda_functions.R
The main function that runs penalized LDA.
1 2 |
x |
Input matrix. A matrix of positive integers where rows represents cells (documents) and column represents genes (words). |
k |
Number of topics. |
lambda |
Shrinkage parameter. |
warm.start.seed |
Seed of LDA estimation used as pLDA warm start. pLDA uses parameters estimated from LDA as a warm start to boost speed. |
verbose |
Default FALSE. Print progress. |
warm.start.lda |
Default NULL. LDA object for warm start. |
warm.start.log.beta |
Default NULL. log beta matrix for warm start. |
pdata |
Default NULL. Table of phenotypic data. |
plda() returns a list of the penalized LDA output. logProbW is the log of topic by gene matrix beta. gamma is the cell by topic matrix of topic frequencies for each cell. genes are gene names extracted from the column name of input count matrix.
1 2 3 4 | ## Not run:
plda(x=cell_by_gene_expr_matrix, k=10, lambda=5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.