Learn R Programming

plateCore (version 1.30.0)

Subset: Subset

Description

Select a subset of events in a flowPlate. If a flowPlate and filter are supplied, then this function calls the Subset function from flowCore. Additionally, the plateCore version of Subset also makes it easy to filter individual flowFrames and keep the flowPlate structure.

Usage

"Subset"(x, subset, select=NULL,...)

Arguments

x
A flowPlate
subset
A filter object
select
An optional vector of either sample names or Well.IDs.
...
optional arguments

Value

Returns a flowPlate

Examples

Run this code
library(plateCore)
data(plateCore)

# Create a flowPlate from the sample data in plateCore
fp <- flowPlate(pbmcPlate,wellAnnotation,plateName="P1")

## Create a rectangle filter
rectGate <- rectangleGate("FSC-H"=c(300,700),"SSC-H"=c(50,400))

## Apply the filter only to sample A01. The other flowFrames
## are not filtered.
fp <- Subset(fp,rectGate,'A01')

Run the code above in your browser using DataLab