genoset-subset: Subset a GenoSet

Description Usage Arguments Examples

Description

Subset a GenoSet

Usage

1
2
3
4
5
6
## S4 method for signature 'GenoSet,ANY'
x[i, j, k, ..., withDimnames = TRUE,
  drop = FALSE]

## S4 replacement method for signature 'GenoSet,ANY,ANY,ANY'
x[i, j, k] <- value

Arguments

x

GenoSet

i

character, GRanges, logical, integer

j

character, logical, integer

k

character or integer

...

additional subsetting args

withDimnames

scalar logical, put dimnames on returned assay?

drop

logical drop levels of space factor?

value

incoming data for assay "k", rows "i" and cols "j"

Examples

1
2
3
4
5
  data(genoset,package="genoset")
  genoset.ds[1:5,2:3]  # first five probes and samples 2 and 3
  genoset.ds[ , "K"]  # Sample called K
  gr = GRanges(ranges=IRanges(start=seq(from=15e6,by=1e6,length=7),width=1,names=letters[8:14]),seqnames=rep("chr17",7))
  genoset.ds[ gr, "K" ]  # sample K and probes overlapping those in rd, which overlap specifed ranges on chr17

genoset documentation built on Nov. 17, 2017, 9:22 a.m.