run_fdl | R Documentation |
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.
run_fdl(sobject, graph = "RNA_snn", weighted = TRUE)
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 |
The modified Seurat object with the FDL results added
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.