overlap_coefficient: overlap coefficient

View source: R/combine_enrichments.R

overlap_coefficientR Documentation

overlap coefficient

Description

calculates the similarity using the "overlap" coefficient, which is

Usage

overlap_coefficient(n1, n2)

Arguments

n1

group 1 of objects

n2

group 2 of objects

Details

length(intersect(n1, n2)) / length(union(n1, n2))

Value

double


MoseleyBioinformaticsLab/categoryCompare2 documentation built on Nov. 18, 2024, 3:13 p.m.