invGRanges: Invert a ranged object Select the empty space between ranges...

Description Usage Arguments Value Examples

View source: R/humarray.R

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

1
2
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

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

humarray documentation built on Nov. 20, 2017, 1:05 a.m.