Documentation Index
Fetch the complete documentation index at: https://mintlify.com/satijalab/seurat-wrappers/llms.txt
Use this file to discover all available pages before exploring further.
RunPaCMAP() runs the PaCMAP algorithm on a Seurat object, producing a low-dimensional embedding suitable for visualization. PaCMAP uses three types of cell pairs (neighbors, mid-near, and further pairs) to preserve both local and global structure.
Syntax
Parameters
A Seurat object.
Name of the existing reduction to use as input when
dims is specified.Dimensions from
reduction to use as input. Specify either dims or features, not both.Gene features to use as direct input. Specify either
dims or features, not both.Layer to pull feature values from when
features is specified.Number of PaCMAP output dimensions.
Number of neighbors for the kNN graph. Defaults to 10 for datasets smaller than 10,000 cells; scales with log10(n) for larger datasets.
Ratio of mid-near pairs to neighbors.
Ratio of further pairs to neighbors.
Distance metric for neighbor computation. Passed to PaCMAP’s
distance parameter.Learning rate for the AdaGrad optimizer.
Number of optimization iterations.
Whether to apply PCA preprocessing before constructing the kNN graph.
Initialization method for the embedding. One of
"pca" or "random".Name for the resulting DimReduc object.
Prefix for PaCMAP embedding column names.
Random seed for reproducibility.
Returns
A Seurat object with a new DimReduc object stored underreduction.name containing the PaCMAP embedding.
PaCMAP requires Python with the
pacmap package installed and reticulate configured.