Description Usage Arguments Value Examples
View source: R/compare_genelist.R
Calculate adjusted p-values for hypergeometric test of gene lists or jaccard index
1 2 3 4 5 6 7 | compare_lists(
bin_mat,
marker_mat,
n = 30000,
metric = "hyper",
output_high = TRUE
)
|
bin_mat |
binarized single-cell expression matrix, feed in by_cluster mat, if desired |
marker_mat |
matrix or dataframe of candidate genes for each cluster |
n |
number of genes in the genome |
metric |
adjusted p-value for hypergeometric test, or jaccard index |
output_high |
if true (by default to fit with rest of package), -log10 transform p-value |
matrix of numeric values, clusters from expr_mat as row names, cell types from marker_mat as column names
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | pbmc_mm <- matrixize_markers(pbmc_markers)
pbmc_avg <- average_clusters(
pbmc_matrix_small,
pbmc_meta,
cluster_col = "classified"
)
pbmc_avgb <- binarize_expr(pbmc_avg)
compare_lists(
pbmc_avgb,
pbmc_mm,
metric = "spearman"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.