If you want to test for differential enrichment within your usersets, you can restrict the universe to only regions that are covered in at least one of your sets. This function helps you build just such a restricted universe

buildRestrictedUniverse(userSets)

Arguments

userSets

The userSets you will pass to the enrichment calculation.

Value

A restricted universe

Examples

data("sample_input", package="LOLA") # load userSets restrictedUniverse = buildRestrictedUniverse(userSets)