run_fdl: Run Force-Directed Layout (FDL) on a Seurat object

View source: R/reductions.R

run_fdlR Documentation

Run Force-Directed Layout (FDL) on a Seurat object

Description

This function runs Force-Directed Layout (FDL) on a Seurat object. FDL is a graph layout algorithm that positions nodes based on attractive and repulsive forces between them.

Usage

run_fdl(sobject, graph = "RNA_snn", weighted = TRUE)

Arguments

sobject

The Seurat object to run FDL on

graph

The name of the graph in the Seurat object to use for FDL

weighted

Logical indicating whether the graph edges should be weighted

Value

The modified Seurat object with the FDL results added

Examples

## Not run: 
# Load Seurat object
data("pbmc_small")

# Run FDL on the Seurat object
pbmc_small <- run_fdl(pbmc_small)

# Access the FDL results
fdl_results <- pbmc_small[["fdl"]]

## End(Not run)

kidcancerlab/rrrSingleCellUtils documentation built on April 17, 2025, 5:10 p.m.