Skip to contents

Perform matrix factorization of the KS test results, see the matrix factorization method at LDA.

Usage

MatrixFactorization(domain_cellytpe, num_topics = NULL)

Arguments

domain_cellytpe

A data frame. The result of function ksTest.

num_topics

A integer or a vector of integer. The number of topics. To find the best number of topics if NULL. Or to find the best number of topics by the given range if a vector of integer. Or provide your own number if a integer.

Value

A list with two data frame. The "domain_topic" is a data frame, row is topic and col is domain. The "celltype_topic" is a data frame, row is celltype and col is topic.