applyScaleSet: Apply a ScaleSet

View source: R/applyScaleSet.R

applyScaleSetR Documentation

Apply a ScaleSet

Description

Applies a ScaleSet to a dataframe of events

Usage

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

## Not run: 
getEvents(experimentId, fcsFileId, destination = "myFile.fcs")
events <- flowCore::read.FCS("myFile.fcs")
data <- events@exprs
scaleSet <- getScaleSets(experimentId)[1, ]
applyScaleSet(scaleSet, data)

## End(Not run)

primitybio/cellengine-r-toolkit documentation built on Oct. 19, 2024, 1:17 a.m.