pairwiseContingTables: Contingency Tables

Description Usage Arguments Value Examples

View source: R/intersections.R

Description

2x2 contingency tables

Usage

1
pairwiseContingTables(lib1, lib2, background = NULL)

Arguments

lib1

A library of gene sets in List, LongDF or Mat format.

lib2

A library of gene sets in List, LongDF or Mat format.

background

The size of the universe of genes under consideration. User may set to a constant. Default is NULL which results in background being set to the size of the union of the unique genes of lib1 and lib2.

Value

A data frame with the following fields:

a

x

b

x

c

x

d

x

background

x

len_set1

x

len_set2

x

...

Examples

1
2
3
4
#load example gene set libraries
data("encode_example","chea_example")
conting_tab = pairwiseContingTables(lib1, lib2,background= 30000)
conting_tab = pairwiseContingTables(lib1, lib2)

MaayanLab/genesetr documentation built on Aug. 14, 2019, 12:20 p.m.