Overloads subset operator for gNode. Allows subsetting of gNode via index or snode.id (as a key). Also, allows for data.table style queries on gNode GRanges and corresponding metadata.

# S3 method for gNode
[(obj, i = NULL, with = TRUE, ...)

Arguments

obj

This is the gNode object to be subset

i

integer, logical, or expression in gNode metadata used to subset gNodes

Value

A new gNode that contains only the given id's

Author

Joe DeRose