compare_lists: Calculate adjusted p-values for hypergeometric test of gene...

Description Usage Arguments Value Examples

View source: R/compare_genelist.R

Description

Calculate adjusted p-values for hypergeometric test of gene lists or jaccard index

Usage

1
2
3
4
5
6
7
compare_lists(
  bin_mat,
  marker_mat,
  n = 30000,
  metric = "hyper",
  output_high = TRUE
)

Arguments

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

Value

matrix of numeric values, clusters from expr_mat as row names, cell types from marker_mat as column names

Examples

 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"
)

NCBI-Hackathons/RClusterCT documentation built on July 20, 2021, 3:15 p.m.