Title: | Non-parametric Flow Cytometry Data Gating |
---|---|
Description: | Identifies cell populations in Flow Cytometry data using non-parametric clustering and segmented-regression-based change point detection. Note: R 2.11.0 or newer is required. |
Authors: | Nima Aghaeepour |
Maintainer: | Nima Aghaeepour <[email protected]> |
License: | Artistic-2.0 |
Version: | 1.67.0 |
Built: | 2024-11-13 06:15:09 UTC |
Source: | https://github.com/bioc/flowMeans |
Non-parametric Flow Cytometry Data Gating
Package: | flowMeans |
Type: | Package |
Version: | 1.0 |
Date: | 2010-03-02 |
License: | Artistic-2.0 or newer |
LazyLoad: | yes |
Nima Aghaeepour <[email protected]>
library(flowMeans) data(x) res <- flowMeans(x, c("FL1.H", "FL2.H", "FL3.H", "FL4.H"), MaxN=10) plot(x[,c(3,4)], res, c("FL1.H", "FL2.H"))
library(flowMeans) data(x) res <- flowMeans(x, c("FL1.H", "FL2.H", "FL3.H", "FL4.H"), MaxN=10) plot(x[,c(3,4)], res, c("FL1.H", "FL2.H"))
Fits a two-component piecewise linear regression to the minimum distance between merged clusters vs the number of clusters for a list of merged cluster solutions.
changepointDetection(vect, OrthagonalResiduals = FALSE, PlotFlag = FALSE)
changepointDetection(vect, OrthagonalResiduals = FALSE, PlotFlag = FALSE)
vect |
A vector of minimum distances between clusters chosen to be merged at each iteration. |
OrthagonalResiduals |
Boolean value, indicates if the residuals must be transformed to orthagonal distance or not. |
PlotFlag |
Boolean value, indicating if the regression lines must be visualized. |
MinIndex |
Index of the merging step that produced the final results. |
l1 |
First regression line used for finding the changepoint for stopping the merging process. |
l2 |
Second regression line used for finding the changepoint for stopping the merging process. |
Nima Aghaeepour
library(flowMeans) data(x) res <- flowMeans(x, c("FL1.H", "FL2.H", "FL3.H", "FL4.H"), MaxN=10) ft<-changepointDetection(res@Mins) plot(res@Mins) abline(ft$l1) abline(ft$l2)
library(flowMeans) data(x) res <- flowMeans(x, c("FL1.H", "FL2.H", "FL3.H", "FL4.H"), MaxN=10) ft<-changepointDetection(res@Mins) plot(res@Mins) abline(ft$l1) abline(ft$l2)
Finds a good fit to the data using k-means clustering algorithm. Then merges the adjacent dense spherical clusters to find non-spherical clusters.
flowMeans(x, varNames=NULL, MaxN = NA, NumC = NA, iter.max = 50, nstart = 10, Mahalanobis = TRUE, Standardize = TRUE, Update = "Mahalanobis", OrthagonalResiduals=TRUE, MaxCovN=NA, MaxKernN=NA, addNoise=TRUE)
flowMeans(x, varNames=NULL, MaxN = NA, NumC = NA, iter.max = 50, nstart = 10, Mahalanobis = TRUE, Standardize = TRUE, Update = "Mahalanobis", OrthagonalResiduals=TRUE, MaxCovN=NA, MaxKernN=NA, addNoise=TRUE)
x |
A matrix, data frame of observations, or object of class |
varNames |
A character vector specifying the variables (columns) to be included in clustering. When it is left unspecified, all the variables will be used. |
MaxN |
Maximum number of clusters. If set to NA (default) the value will be estimated automatically. |
NumC |
Number of clusters. If set to NA (default) the value will be estimated automatically. |
iter.max |
The maximum number of iterations allowed. |
nstart |
The number of random sets used for initialization. |
Mahalanobis |
Boolean value. If TRUE (default) mahalanobis distance will be used. Otherwised, euclidean distance will be used. |
Standardize |
Boolean value. If TRUE (default) the data will be transformed to the [0,1] interval. |
Update |
String value. If set to "Mahalanobis" the distance function will be updated at each merging iteration with recalculating mahalanobis distances. If set to "Mean" the distance matrix will be updated after each merging step with averaging. If set to "None" the distance matrix will not be updated. |
MaxCovN |
Maximum number of points, used for calculating the covariance. If set to NA (default), all the points will be used.) |
MaxKernN |
Maximum number of points, used for counting the modes using kernel density estimation. If set to NA (default), all the points will be used.) |
addNoise |
Boolean value. Determines if uniform noise must be added to the data to prevent singularity issues or not. |
OrthagonalResiduals |
Boolean value, indicates if the residuals must be transformed to orthagonal distance or not. |
If Mahalanobis distance is not used (i.e., Mahalanobis=FALSE) then the Update value cannot be set to Mahalanobis (i.e., Update="Mahalanobis")
Label |
A vector of integers indicating the cluster to which each point is allocated. |
Labels |
A list of vectors of integers indicating the cluster to which each point is allocated at each merging iteration. |
Mats |
A list of distance matrixes between clusters at every merging iteration. |
MaxN |
Maximum number of clusters |
Mins |
A vector of integers indicating the distance between the two clusters chosen to be merged at every iteration. |
MinIndex |
Index of the merging step that produced the final results. |
Line1 |
First regression line used for finding the changepoint for stopping the merging process. |
Line2 |
Second regression line used for finding the changepoint for stopping the merging process. |
Nima Aghaeepour
library(flowMeans) data(x) res <- flowMeans(x, c("FL1.H", "FL2.H", "FL3.H", "FL4.H"), MaxN=10) plot(x[,c(3,4)], res, c("FL1.H", "FL2.H"))
library(flowMeans) data(x) res <- flowMeans(x, c("FL1.H", "FL2.H", "FL3.H", "FL4.H"), MaxN=10) plot(x[,c(3,4)], res, c("FL1.H", "FL2.H"))
This method generates scatterplot revealing the cluster assignment.
## S4 method for signature 'ANY,Populations' plot(x, y, varNames=NULL, ...) ## S4 method for signature 'flowFrame,Populations' plot(x, y, varNames=NULL, ...)
## S4 method for signature 'ANY,Populations' plot(x, y, varNames=NULL, ...) ## S4 method for signature 'flowFrame,Populations' plot(x, y, varNames=NULL, ...)
x |
A matrix, data frame of observations, or object of class |
y |
Object returned from |
varNames |
A character vector specifying the variables (columns) to be included in the plot. When it is left unspecified, all the variables will be used. |
... |
Extra parameters that will be passed to the generic plot function |
Nima Aghaeepour <[email protected]>
library(flowMeans) data(x) plot(data.frame(x))
library(flowMeans) data(x) plot(data.frame(x))
This method lists out the slots contained in a Populations
object.
## S4 method for signature 'Populations' show(object)
## S4 method for signature 'Populations' show(object)
object |
Object returned from |
Nima Aghaeepour <[email protected]>
This method prints out various characteristics of the populations found by flowMeans.
## S4 method for signature 'Populations' summary(object,...)
## S4 method for signature 'Populations' summary(object,...)
object |
Object returned from |
... |
Object returned from |
This method prints out various characteristics of the populations found by flowMeans.
Nima Aghaeepour <[email protected]>
A flow cytometry sample produced for diagnosis of the Graft versus Host Disease (GvHD)
data(x)
data(x)
A matrix describing expression values of 6 markers and 14936 cells. Each column represents a marker and each row represents a cell.
R.R. Brinkman, M. Gasparetto, S.J.J. Lee, A.J. Ribickas, J. Perkins, W. Janssen, R. Smiley, and C. Smith. High-content flow cytometry and temporal data analysis for defining a cellular signature of graft- versus-host disease. Biology of Blood and Marrow Transplantation, 13(6):691?700, 2007.
data(x) ## maybe str(x) ; plot(x) ...
data(x) ## maybe str(x) ; plot(x) ...