get_data_for_scigenex: Fetch an expression matrix from a file, dataframe or Seurat...

View source: R/get_data_for_scigenex.R

get_data_for_scigenexR Documentation

Fetch an expression matrix from a file, dataframe or Seurat object.

Description

This function fetchs an expression matrix from a file, dataframe or Seurat object.

Usage

get_data_for_scigenex(data = NULL, which_slot = c("data", "sct", "counts"))

Arguments

data

A matrix, data.frame or Seurat object.

which_slot

One of "SCT", "data" or count. The slot to extract from the seurat object to perform clustering analysis. SCT is the recommended method from Seurat package when working with spatial transcriptomics data.

Value

An expression matrix.

Examples

## with an artificial dataset
m <- create_3_rnd_clust()

res <- get_data_for_scigenex(data=m)



dputhier/scigenex documentation built on Jan. 29, 2024, 3:40 p.m.