calc_fisher: Perform Fisher's exact test

View source: R/calc_fisher.R

calc_fisherR Documentation

Perform Fisher's exact test

Description

Use one-tailed Fisher's exact test to calcualte overlap enrichment between proteomic data and other datasets (e.g. InWeb, gene lists, etc.)

Usage

calc_fisher(df, listDf, intersectDf, bait = NULL)

Arguments

df

data.frame containing proteomic data, with gene and significant columns

listDf

data.frame containing data to overlap, with listName, gene and significant columns

intersectDf

data.frame contaning listName and intersectN columnsl intersectN = vector of boolean variables indicating if total population should be intersect of the two datasets

bait

name of bait protein

Value

list of data.frame and list. Data.frame contains list_name, overlap_count, dfOnly_count, listOnly_count, neither_count, population_count, pvalue. List of lists (for each listName) contains genes names corresponding to each group (overlap_genes, dfOnly_genes, listOnly_genes, neither_genes, population_genes).


lagelab/Genoppi documentation built on Oct. 13, 2022, 2:36 p.m.