LoadSpatial {scBSP} | R Documentation |
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)
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 |
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 |
[Package scBSP version 1.0.0 Index]