setCheck: Get the overlap between a list of genes and a list of gene...

Description Usage Arguments Value Examples

View source: R/customSets.R

Description

Get the overlap between a list of genes and a list of gene sets

Usage

1
setCheck(genes, sets, IDtype = "SYMBOL", dropRows = T)

Arguments

genes

list or vector of strings, each is a gene identifier

sets

list of vectors (gene sets) with EntrezIDs as gene identifiers

IDtype

type of ID that is used in the input parameter 'genes' (anything used in mapIds, e.g. "ENTREZID" or "SYMBOL")

dropRows

boolean, indicating whether rows without any matches should be filtered out

Value

a vector of strings. Each string is present in at least x sets, where x is minOverlap

Examples

1
2
3
4
5
IDs1 <- setRead("up", path=myPath1)
IDs2 <- setRead("up", path=myPath2)
set1 <- setMake("mySet", IDs1, "Homo sapiens")
set2 <- setMake("mySet", IDs2, "Homo sapiens")
setSave(list(set1, set2), myFolder)

Solatar/setR documentation built on Dec. 5, 2020, 10:50 p.m.