difference_score: Difference score

View source: R/stats.R

difference_scoreR Documentation

Difference score

Description

Difference score

Usage

difference_score(mat, cl)

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

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

jokergoo/simplifyGO documentation built on Sept. 18, 2024, 9:45 p.m.