Added _get_spot_density_grid function that works analogous to the already implemented _get_cell_density_grid function, but instead of counting the number of cells per grid field, we here count the number of spots (RNA molecules) per grid field
Added spot_density as metric to the cell_and_spot_statistics wrapper function, so that the metric can be easily computed by calling e.g.:
Changes proposed in this pull request:
_get_spot_density_grid
function that works analogous to the already implemented_get_cell_density_grid
function, but instead of counting the number of cells per grid field, we here count the number of spots (RNA molecules) per grid fieldspot_density
as metric to thecell_and_spot_statistics
wrapper function, so that the metric can be easily computed by calling e.g.: