difference_score: Difference score

Description Usage Arguments Details Value Examples

View source: R/stats.R

Description

Difference score

Usage

1

Arguments

mat

The similarity matrix.

cl

Cluster labels.

Details

This function measures the different between the similarity values for the terms that belong to the same clusters and in different clusters. The difference score is the Kolmogorov-Smirnov statistic between the two distributions.

Value

A numeric scalar.

Examples

1
2
3
4
mat = readRDS(system.file("extdata", "random_GO_BP_sim_mat.rds", 
    package = "simplifyEnrichment"))
cl = binary_cut(mat)
difference_score(mat, cl)

simplifyEnrichment documentation built on Nov. 8, 2020, 5:07 p.m.