This function is a wrapper to switch between alternative factor loading alignment methods that LIGER provides, which is a required step for producing the final integrated result. Two methods are provided (click on options for more details):
method = "quantileNorm": Previously published quantile normalization method. (default)method = "centroidAlign": Newly developed centroid alignment method.
Arguments
- object
A liger or Seurat object with valid factorization result available (i.e.
runIntegrationperformed in advance).- method
Character, method to align factors. Default
"centroidAlign". Optionally"quantileNorm".- ...
Additional arguments passed to selected methods. For
"quantileNorm":quantilesNumber of quantiles to use for quantile normalization. Default
50.referenceCharacter, numeric or logical selection of one dataset, out of all available datasets in
object, to use as a "reference" for quantile normalization. DefaultNULLtries to find an RNA dataset with the largest number of cells; if no RNA dataset available, use the globally largest dataset.minCellsMinimum number of cells to consider a cluster shared across datasets. Default
20.nNeighborsNumber of nearest neighbors for within-dataset knn graph. Default
20.useDimsIndices of factors to use for shared nearest factor determination. Default
NULLuses all factors.centerWhether to center the data when scaling factors. Could be useful for less sparse modalities like methylation data. Default
FALSE.maxSampleMaximum number of cells used for quantile normalization of each cluster and factor. Default
1000.epsThe error bound of the nearest neighbor search. Lower values give more accurate nearest neighbor graphs but take much longer to compute. Default
0.9.refineKNNWhether to increase robustness of cluster assignments using KNN graph. Default
TRUE.clusterNameVariable name that will store the clustering result in metadata of a liger object or a
Seuratobject. Default"quantileNorm_cluster".seedRandom seed to allow reproducible results. Default
1.verboseLogical. Whether to show information of the progress. Default
getOption("ligerVerbose")orTRUEif users have not set.
lambdaRidge regression penalty applied to each dataset. Can be one number that applies to all datasets, or a numeric vector with length equal to the number of datasets. Default
1.useDimsIndices of factors to use considered for the alignment. Default
NULLuses all factors.scaleEmbLogical, whether to scale the factor loading being considered as the embedding. Default
TRUE.centerEmbLogical, whether to center the factor loading being considered as the embedding before scaling it. Default
TRUE.scaleClusterLogical, whether to scale the factor loading being considered as the cluster assignment probability. Default
FALSE.centerClusterLogical, whether to center the factor loading being considered as the cluster assignment probability before scaling it. Default
FALSE.shiftLogical, whether to shift the factor loading being considered as the cluster assignment probability after centered scaling. Default
FALSE.diagnosisLogical, whether to return cell metadata variables with diagnostic information. Default
FALSE.