createCompensation.Rd
Creates a new compensation.
createCompensation(experimentId, name, spillMatrix, channels = NULL)
The ID of the experiment of a byName
expression.
Name of the compensation matrix.
The spillover matrix. This can either be a 1-dimensional
vector of size length(channels) ^ 2
, or a
matrix
.
The channel names. Not required if spillMatrix
is a
matrix
with dimnames set.
if (FALSE) { # \dontrun{
createCompensation(
experimentId,
name="Comp 1",
channels=c("Ax488-A", "PE-A"),
spillMatrix=c(1, 0,
0, 1)
)
# same as:
createCompensation(
experimentId,
name="Comp 1",
spillMatrix=matrix(
c(1, 0,
0, 1),
nrow=2,
ncol=2,
byrow=TRUE,
dimnames=list(c("Ax488-A", "PE-A"), c("Ax488-A", "PE-A"))
)
)
} # }