Learn R Programming

plateCore (version 1.30.0)

fpbind: Merge multiple flowPlates into a single virtual flowPlate

Description

A function to combine multiple flowPlates into a single flowPlate object. The plateName identifiers for the flowPlates must be unique within the set to be bound, otherwise the bind will fail.

Usage

fpbind(p1, p2, ...)

Arguments

p1
First flowPlate
p2
Second flowPlate
...
Additional flowPlates

Value

Returns a flowPlate

Examples

Run this code
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 object from the platePBMC and the wellAnnotation
fp1 <- flowPlate(pbmcPlate,wellAnnotation,plateName="P1")
fp2 <- flowPlate(pbmcPlate,wellAnnotation,plateName="P2")

# Combine the plates.
virtPlate <- fpbind(fp1,fp2)

Run the code above in your browser using DataLab