Applies a ScaleSet to a dataframe of events

applyScaleSet(scaleset, data, clampQ = FALSE)

Arguments

scaleset

ScaleSet. Accepts a ScaleSet or scaleSet$scales.

data

Events data from an FcsFile, i.e. events@expr

clampQ

If true, values will be clamped to fall within the scale's minimum and maximum. Applies clamping to all scales in a ScaleSet

Examples

if (FALSE) { # \dontrun{
getEvents(experimentId, fcsFileId, destination = "myFile.fcs")
events <- flowCore::read.FCS("myFile.fcs")
data <- events@exprs
scaleSet <- getScaleSets(experimentId)[1, ]
applyScaleSet(scaleSet, data)
} # }