quantileNorm | R Documentation |
This process builds a shared factor neighborhood graph to jointly cluster cells, then quantile normalizes corresponding clusters.
The first step, building the shared factor neighborhood graph, is performed
in SNF(), and produces a graph representation where edge weights between
cells (across all datasets) correspond to their similarity in the shared
factor neighborhood space. An important parameter here is nNeighbors
,
the number of neighbors used to build the shared factor space.
Next we perform quantile alignment for each dataset, factor, and cluster (by stretching/compressing datasets' quantiles to better match those of the reference dataset).
quantileNorm(object, ...)
## S3 method for class 'liger'
quantileNorm(
object,
quantiles = 50,
reference = NULL,
minCells = 20,
nNeighbors = 20,
useDims = NULL,
center = FALSE,
maxSample = 1000,
eps = 0.9,
refineKNN = TRUE,
clusterName = "quantileNorm_cluster",
seed = 1,
verbose = getOption("ligerVerbose", TRUE),
...
)
## S3 method for class 'Seurat'
quantileNorm(
object,
reduction = "inmf",
quantiles = 50,
reference = NULL,
minCells = 20,
nNeighbors = 20,
useDims = NULL,
center = FALSE,
maxSample = 1000,
eps = 0.9,
refineKNN = TRUE,
clusterName = "quantileNorm_cluster",
seed = 1,
verbose = getOption("ligerVerbose", TRUE),
...
)
object |
A liger or Seurat object with valid factorization
result available (i.e. |
... |
Arguments passed to other S3 methods of this function. |
quantiles |
Number of quantiles to use for quantile normalization.
Default |
reference |
Character, numeric or logical selection of one dataset, out
of all available datasets in |
minCells |
Minimum number of cells to consider a cluster shared across
datasets. Default |
nNeighbors |
Number of nearest neighbors for within-dataset knn graph.
Default |
useDims |
Indices of factors to use for shared nearest factor
determination. Default |
center |
Whether to center the data when scaling factors. Could be
useful for less sparse modalities like methylation data. Default
|
maxSample |
Maximum number of cells used for quantile normalization of
each cluster and factor. Default |
eps |
The error bound of the nearest neighbor search. Lower values give
more accurate nearest neighbor graphs but take much longer to compute.
Default |
refineKNN |
whether to increase robustness of cluster assignments using
KNN graph. Default |
clusterName |
Variable name that will store the clustering result
in metadata of a liger object or a |
seed |
Random seed to allow reproducible results. Default |
verbose |
Logical. Whether to show information of the progress. Default
|
reduction |
Name of the reduction where LIGER integration result is
stored. Default |
Updated input object
liger method
Update the H.norm
slot for the alignment cell factor
loading, ready for running graph based community detection
clustering or dimensionality reduction for visualization.
Update the cellMata
slot with a cluster assignment basing
on cell factor loading
Seurat method
Update the reductions
slot with a new DimReduc
object containing the aligned cell factor loading.
Update the metadata with a cluster assignment basing on cell factor loading
pbmc <- quantileNorm(pbmcPlot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.