Subset-methods: Subset

Description Usage Arguments Value Author(s) Examples

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

1
2
## S4 method for signature 'flowPlate,ANY'
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

Author(s)

Errol Strain

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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')

plateCore documentation built on May 6, 2019, 2:41 a.m.