quickMarkers: Gets top N markers for each cluster

Description Usage Arguments Details Value

View source: R/quickMarkers.R


Uses tf-idf ordering to get the top N markers of each cluster. For each cluster, either the top N or all genes passing the hypergeometric test with an FDR of 0.01 are returned.


quickMarkers(toc, clusters, N = 10, expressCut = 0)



Table of counts. Must be a sparse matrix.


Vector of length ncol(toc) giving cluster membership.


Number of marker genes to return per cluster.


Value above which a gene is considered expressed.


Term Frequency - Inverse Document Frequency is used in natural language processing to identify terms specific to documents. This function uses the same idea to order genes within a group by how predictive of that group they are. The main advantage of this is that it is extremely fast and gives reasonable results.

To do this, gene expression is binarised in each cell so each cell is either considered to express or not each gene. That is, we replace the counts with toc > zeroCut. The frequency with which a gene is expressed within the target group is compared to the global frequency to calculate the tf-idf score. We also calculate a multiple hypothesis corrected p-value based on a hypergeometric test, but this is extremely permissive.


data.frame with top N markers (or all that pass the hypergeometric test) and their statistics for each cluster.

constantAmateur/SoupX documentation built on July 23, 2018, 9:20 a.m.