The GridDensity class is an intermediate data class that storing the density of cells in each bin (also each mesh points) and the cell assignments of the nearest mesh point for performing the downstream analysis - production of pseudo mini bulk RNA-seq counts and grid differential expression analysis.
data
a matrix records embedding matrix.
mesh.points
a table records coordinates (primary key, <X,Y>), knn.density, bin coordinates, bin.ID, and bin.density of each mesh point in data.frame.
cell2mp
a named vector, records cell assignments to the nearest mesh point.