examples/example1.R

library('flowUtils')
library('gatingMLData')

#######################################################################
# Read an FCS file and a Gating-ML file, and apply a gate on the data #
#######################################################################
flowEnv <- new.env()
gateFile <- system.file("extdata/Gml2/Gating-MLFiles", 
  "gates1.xml", package="gatingMLData")
read.gatingML(gateFile, flowEnv)
ls(flowEnv)

fcsFile <- system.file("extdata/Gml2/FCSFiles", "data1.fcs", package="gatingMLData")
fcs <- read.FCS(fcsFile, transformation="linearize-with-PnG-scaling")
result = filter(fcs, flowEnv$Polygon1)
summary(result)

Try the flowUtils package in your browser

Any scripts or data that you put into this service are public.

flowUtils documentation built on Nov. 8, 2020, 6:29 p.m.