enumAtoms: Enumerates atoms resulting from all the possible...

Description Usage Arguments Value Author(s) References Examples

View source: R/enumAtoms.R

Description

Function inputs a list of sets or a binary matrix representing gene membership in sets and outputs a list of atoms resulting from all the possible intersections and set differences of existing sets.

Usage

1
enumAtoms(S, rows.sets = FALSE)

Arguments

S

List of sets or a binary matrix representing gene membership in sets.

rows.sets

If TRUE and S is a matrix, then the rows of S represent the sets and the columns represent the sets. If FALSE and S is a matrix, then the rows of S represent the genes and the columns represent the sets.

Value

List of atoms created by taking all possible intersections and set differences of existing sets.

Author(s)

Jeffrey T. Leek

References

Boca S.M., H. Corrada Bravo, B. Caffo, J.T. Leek, and G. Parmigiani (2010): A decision-theory approach to interpretable set analysis for high-dimensional data, JHU Biostat Working Paper 211, http://www.bepress.com/jhubiostat/paper211/

Examples

1
2
3
4
5
6
set1 <- 1:50
set2 <- 31:130
set3 <- 131:180
set4 <- 161:260
sets <- list(set1, set2, set3, set4)
atoms.list <- enumAtoms(sets)

leekgroup/Set documentation built on May 20, 2019, 11:30 p.m.