Learn R Programming

GrabSVG (version 0.0.2)

LoadSpatial: Loading data from a Seurat object or a data frame.

Description

A function to load and filter data from a Seurat object or a data frame.

Usage

LoadSpatial(InputData, Dimension = 2)

Value

A list of two data frame:

Coords

A M x D matrix representing D-dimensional coordinates for M spots

ExpMatrix

A sparse, N x M expression matrix in dgCMatrix class with N genes and M spots

Arguments

InputData

A Seurat spatial object or a M x (D + N) data matrix representing the D-dimensional coordinates and expressions of N genes on M spots. The coordinates should be placed at the first D columns

Dimension

The dimension of coordinates