venn_fisher_test: Fisher exact test for 2-way Venn

View source: R/venn_fisher_test.R

venn_fisher_testR Documentation

Fisher exact test for 2-way Venn

Description

Fisher exact test for enrichment of overlap in 2-way Venn.

Usage

venn_fisher_test(mat.sig, directional = TRUE)

Arguments

mat.sig

Numeric matrix with two columns whose elements are 1, -1, or 0 for significantly up, down, or insignificant genes (rows) in a test (column) if directional=TRUE. If directional=FALSE, we only consider significant and non significant genes, so elements are 0 or 1.

directional

Logical; are we considering whether significant genes are up or down? Otherwise, we only consider if genes are significant or not.

Value

Data frame with statistics from Fisher exact test.


jdreyf/jdcbioinfo documentation built on Feb. 12, 2025, 4:30 p.m.