View source: R/import_functions.R
import_seurat_maelstrom | R Documentation |
load Maelstrom enriched motifs
import_seurat_maelstrom(
seurat_object,
cluster_id = "seurat_clusters",
maelstrom_file = "~/final.out.txt",
return_df = FALSE
)
seurat_object |
object |
cluster_id |
ID used for finding clusters of cells |
maelstrom_file |
maelstrom final.out.txt file |
return_df |
return both the seurat object and a dataframe with maelstrom scores as a list |
seurat object with the maelstrom motif scores addes as an assay
sce_small <- readRDS(system.file("extdata","sce_small.Rds",package = 'AnanseSeurat'))
maelstromfile_path <- system.file("extdata","maelstrom","final.out.txt",package = 'AnanseSeurat')
sce_small <- import_seurat_maelstrom(sce_small, maelstrom_file = maelstromfile_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.