Description Usage Arguments Details Value Note Author(s) References See Also Examples
This function will perform a normalization of flow cytometry data based on warping functions computed on high-density region landmarks for individual flow channels.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
x |
A |
... |
Further arguments that are passed on to
|
stains |
A character vector of flow parameters in |
grouping |
A character indicating one of the phenotypic
variables in the |
monwrd |
Logical. Compute strictly monotone warping
functions. This gets directly passed on to
|
subsample |
Numeric. Reduce the number of events in each |
peakNr |
Numeric scalar. Force a fixed number of peaks to use for the normalization. |
clipRange |
Only use peaks within a clipped data
range. Essentially, the number indicates the percent of clipping on
both sides of the data range, e.g. |
nbreaks |
The number of spline sections used to approximate the data. Higher values produce more accurate results, however this comes with the cost of increaseqd computing times. For most data, the default setting is good enough. |
fres |
A named list of |
bwFac |
Numeric of lenght 1 used to set the bandwidth factor by
|
warpFuns |
Logical indcating whether to return the normalized
|
target |
Character vector specifying the target sample to which other samples in the |
chunksize |
an |
Normalization is achived by first identifying high-density regions
(landmarks) for each flowFrame
in the flowSet
for a single channel and subsequently by
computing warping functions for each flowFrame
that best align
these landmarks. This is based on the algorithm implemented in the
landmarkreg
function in the fda
package. An intermediate step classifies the high-density regions, see
landmarkMatrix
for details.
Please note that this normalization is on a channel-by-channel basis. Multiple channels are normalized in a loop.
The normalized flowSet
if warpFuns
is FALSE
,
otherwise a list of warping functions. Additional inforamtion is
attached as the warping
attribute to the flowSet
in form
of a list.
We currently use a patched fda version.
Florian Hahne
J.O. Ramsay and B.W. Silverman: Applied Functional Data Analysis, Springer 2002
1 2 3 4 5 6 7 8 9 10 11 12 | library(flowCore)
data(ITN)
dat <- transform(ITN, "CD4"=asinh(CD4), "CD3"=asinh(CD3), "CD8"=asinh(CD8))
lg <- lymphGate(dat, channels=c("CD3", "SSC"), preselection="CD4",scale=1.5)
dat <- Subset(dat, lg)
datr <- warpSet(dat, "CD8", grouping="GroupID", monwrd=TRUE)
if(require(flowViz)){
d1 <- densityplot(~CD8, dat, main="original", filter=curv1Filter("CD8"))
d2 <- densityplot(~CD8, datr, main="normalized", filter=curv1Filter("CD8"))
plot(d1, split=c(1,1,2,1))
plot(d2, split=c(2,1,2,1), newpage=FALSE)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.