Learn R Programming

humarray (version 1.0.0)

invGRanges: Invert a ranged object Select the empty space between ranges for the whole genome, for instance you may want to overlap with everything NOT in a set of ranges.

Description

Invert a ranged object Select the empty space between ranges for the whole genome, for instance you may want to overlap with everything NOT in a set of ranges.

Usage

invGRanges(X, inclusive = FALSE, build = NULL, pad.missing.autosomes = TRUE)

Arguments

X
a ranged object, GRanges, RangedData or ChipInfo
inclusive
logical, TRUE if the ends of ranges should be in the inverted object
build
character, "hg18" or "hg19" (or 36/37) to show which reference to retrieve. The default when build is NULL is to use the build from the current ChipInfo annotation
pad.missing.autosomes
logical, whether to add entire chromosomes to the inverted range object when they are not contained within X

Value

a ranged object of the same type as X, but with the inverse set of human genomic ranges selected

Examples

Run this code

X <- rranges()
invGRanges(X,inclusive=TRUE)
invGRanges(X)
invGRanges(X,pad.missing.autosomes=FALSE)

Run the code above in your browser using DataLab