import_seurat_scANANSE {AnanseSeurat} | R Documentation |
import_seurat_scANANSE
Description
import the influences from a anansnake directory into a seurat object
Usage
import_seurat_scANANSE(
seurat_object,
cluster_id = "seurat_clusters",
anansnake_inf_dir = "None",
return_df = FALSE
)
Arguments
seurat_object |
seurat object |
cluster_id |
ID used for finding clusters of cells |
anansnake_inf_dir |
influence directory generated by anansnake |
return_df |
return both the seurat object and a dataframe with influence scores as a list |
Value
seurat object with the influence scores addes as an assay
Examples
sce_small <- readRDS(system.file("extdata","sce_small.Rds",package = 'AnanseSeurat'))
infdir <- system.file("extdata","influence",package = 'AnanseSeurat')
sce_small <- import_seurat_scANANSE(sce_small, anansnake_inf_dir = infdir)
[Package AnanseSeurat version 1.2.0 Index]