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.
dataa matrix records embedding matrix.
mesh.pointsa table records coordinates (primary key, <X,Y>), knn.density, bin coordinates, bin.ID, and bin.density of each mesh point in data.frame.
cell2mpa named vector, records cell assignments to the nearest mesh point.