Last data update: 2014.03.03

R: Methods for Function %on% in Package 'flowCore'
%on%R Documentation

Methods for Function %on% in Package ‘flowCore’

Description

This operator is used to construct a transformFilter that first applies a transformList to the data before applying the filter operation. You may also apply the operator to a flowFrame or flowSet to obtain transformed values specified in the list.

Author(s)

B. Ellis

Examples

samp <- read.FCS(system.file("extdata","0877408774.B08", package="flowCore"))
plot(transform("FSC-H"=log, "SSC-H"=log) %on% samp)


rectangle <- rectangleGate(filterId="rectangleGateI","FSC-H"=c(4.5, 5.5))
sampFiltered <- filter(samp, rectangle %on% transform("FSC-H"=log, "SSC-H"=log))
res <- Subset(samp, sampFiltered)

plot(transform("FSC-H"=log, "SSC-H"=log) %on% res)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(flowCore)
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/flowCore/filter-on-methods.Rd_%03d_medium.png", width=480, height=480)
> ### Name: %on%
> ### Title: Methods for Function %on% in Package 'flowCore'
> ### Aliases: filter-on-methods %on%-methods %on%
> ###   %on%,filter,transformList-method %on%,filter,transform-method
> ###   %on%,filter,parameterTransform-method
> ###   %on%,parameterTransform,flowFrame-method
> ###   %on%,transform,flowFrame-method %on%,transformList,flowFrame-method
> ###   %on%,transformList,flowSet-method %on%,ANY,flowSet-method
> ### Keywords: methods
> 
> ### ** Examples
> 
> samp <- read.FCS(system.file("extdata","0877408774.B08", package="flowCore"))
> plot(transform("FSC-H"=log, "SSC-H"=log) %on% samp)
For plotting, please attach the 'flowViz' package.
   i.e., 'library(flowViz)'
> 
> 
> rectangle <- rectangleGate(filterId="rectangleGateI","FSC-H"=c(4.5, 5.5))
> sampFiltered <- filter(samp, rectangle %on% transform("FSC-H"=log, "SSC-H"=log))
> res <- Subset(samp, sampFiltered)
> 
> plot(transform("FSC-H"=log, "SSC-H"=log) %on% res)
For plotting, please attach the 'flowViz' package.
   i.e., 'library(flowViz)'
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>