A function to load and filter data from a Seurat object or a data frame.
LoadSpatial(InputData, Dimension = 2)A list of two data frame:
A M x D matrix representing D-dimensional coordinates for M spots
A sparse, N x M expression matrix in dgCMatrix class with N genes and M spots
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
The dimension of coordinates