Learn R Programming

plateCore (version 1.30.0)

flowPlate: Create a flowPlate

Description

Constructor for a flowPlate object. sampleNames for the flowSet should match the Well.Id column of wellAnnotation. Well.Ids must be unique to sampleNames, which is usually ensured by using the 3 character designations for wells (e.g. "A01","A02",...,"H12").

Usage

flowPlate(data,wellAnnotation,plateName,...)

Arguments

data
flowSet object to be made into a flowPlate
wellAnnotation
data.frame describing the layout and contents of the flowPlate
plateName
Name of the flowPate, should be unique within the set flowPlates under consideration
...
optional arguments

Value

Returns a flowPate object.

Examples

Run this code
library(plateCore)
data(plateCore)

## Get the lymphocytes
rectGate <- rectangleGate("FSC-H"=c(300,700),"SSC-H"=c(50,400))
pbmcPlate <- Subset(pbmcPlate, rectGate)

## Create a flowPlate object from the platePBMC and the wellAnnotation
fp <- flowPlate(pbmcPlate,wellAnnotation,plateName="P1")

## Subset the flowPlate, creating another flowPlate
fpSmall <- fp["A01"]

## Extract a flowFrame from a flowPlate
ff <-fp[["A01"]]

## Retrieve sample names from flowPlate
sampNames <- sampleNames(fp)

## Retrieve the annotatedDataFrame describing the flowPlate
adf <- phenoData(fp)

Run the code above in your browser using DataLab