Seurat_Reference: Convert Seurat object to Reference object

View source: R/convert-Seurat.R

Seurat_ReferenceR Documentation

Convert Seurat object to Reference object

Description

convert Seurat class to Reference class as the reference data for RCTD analysis using spacexr package

Usage

Seurat_Reference(
  seurat,
  slot = "counts",
  assay = "RNA",
  cell_type_name = "cell_type",
  nUMI_name = NULL
)

Arguments

seurat

A Seurat class object.

slot

Specific assay data to get or set. see SeuratObject::GetAssayData() for detail information.

assay

Specific assay to get data from or set data for; defaults to the default assay. see SeuratObject::GetTissueCoordinates() for detail information.

cell_type_name

A colname in Seurat@meta.data, which refer to the group or cell type.

nUMI_name

Optional, a colname (by pixel barcode) in Seurat object, which refer to total counts or UMI's appearing at each pixel. If not provided, nUMI will be assumed to be the total counts appearing on each pixel.


Feng-Zhang/RNAseqFlow documentation built on Sept. 10, 2022, 7:13 a.m.