import_seurat_maelstrom {AnanseSeurat}R Documentation

import_seurat_Maelstrom

Description

load Maelstrom enriched motifs

Usage

import_seurat_maelstrom(
  seurat_object,
  cluster_id = "seurat_clusters",
  maelstrom_file = "~/final.out.txt",
  return_df = FALSE
)

Arguments

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

Value

seurat object with the maelstrom motif scores addes as an assay

Examples

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)

[Package AnanseSeurat version 1.2.0 Index]