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 from the sample data in plateCore
fp <- flowPlate(pbmcPlate,wellAnnotation,plateName="P1")
# Create a set of negative control gates and then apply them
fp <- setControlGates(fp,gateType="Negative.Control")
# There should now be a Negative.Control.Gate column in wellAnnotation
head(wellAnnotation(fp))
Run the code above in your browser using DataLab