Learn R Programming

simpleaffy (version 2.48.0)

get.array.subset.affybatch: Get a subset of arrays from an affybatch object, split by phnotypic data

Description

Looks at a factor in the phenotypic data for an AffyBatch or ExpressionSet object and uses it to select a subset of arrays, as defined by 'members'.

Usage

get.array.subset.affybatch(x, group, members) get.array.subset.exprset(x, group, members)

Arguments

x
An AffyBatch or ExpressionSet object.
group
The name of the pData column to use.
members
The labels within the pData column to match against.

Value

An AffyBatch or ExpressionSet (as appropriate) containing the selected subset of chips.

Details

Subsetting an AffyBatch object by array is achieved using [x,], while the same is achieved for an ExpressionSet by [,x]. Hence the two different functions. In general the generic method get.array.subset should be used - since it sorts this all out automatically.

Examples

Run this code
  ## Not run: 
#     subset1 <- get.array.subset.affybatch(eset.rma,"group","A")
#     subset2 <- get.array.subset.exprset(eset.rma,"group",c("A","P"))
#     subset3 <- get.array.subset(eset.rma,"group","A")
#   ## End(Not run)

Run the code above in your browser using DataLab