RunPalantirDiffusionMap: (Deprecated) Run Palantir Diffusion Map

View source: R/Palantir.R

RunPalantirDiffusionMapR Documentation

(Deprecated) Run Palantir Diffusion Map

Description

This is a deprecated version of the Palantir Diffusion Map function. Please refer to the updated function, Palantir.RunDM, for the latest features and improvements. This older version, in addition to calculating the diffusion map (dm) and multiscale_space (ms), also calculates t-SNE. To use the t-SNE feature, the multicore-tsne package needs to be installed in the conda environment.

Usage

RunPalantirDiffusionMap(seu, reduction = "pca", n_components = 20)

Arguments

seu

A Seurat object.

reduction

A character string specifying the dimension reduction to use. Default: 'pca'.

n_components

An integer specifying how many dimensions to use as input. Default: 20.

Value

A Seurat object with added dm, ms, and t-SNE embeddings.

See Also

Palantir.RunDM for the updated version of this function.

Examples

## Not run: 
library(Seurat)
library(SeuratExtend)
pbmc <- RunPalantirDiffusionMap(pbmc)
DimPlot(pbmc, reduction = "tsne", label = TRUE)

## End(Not run)

huayc09/SeuratExtend documentation built on July 15, 2024, 6:22 p.m.