single_c_hyper: Calculate C-hyper

single_c_hyperR Documentation

Calculate C-hyper

Description

single_c_hyper returns the C-score for a single pair of lineages using the hypergeometric approach. Setting na.rm = T assumes that missing values are true negatives.

Usage

single_c_hyper(input1, input2, na.rm = F)

Arguments

input1

numeric vector

input2

numeric vector

na.rm

boolean

Value

length-one numeric

Examples

vector1 <- rep (0,1000)
vector2 <- rep (0,1000)
vector1[c(1:5,15:20,24,31:35,47:50,75)] <- 1
vector2[c(6:9,12,19:23,28:31,78:80)] <- 1
single_c_hyper (vector1, vector2)


samyeaman/dgconstraint documentation built on July 25, 2022, 4:36 a.m.