Skip to contents

Optional spatial binning

Usage

bin_coord(expr, coord, num_bin = 100)

Arguments

expr

The normalized gene expression matrix. Rows represent genes and columns represent spots/cells

coord

The matrix of spatial locations. Rows represent spots/cells. The column named "row" ("col") represents row (column) coordinates

num_bin

Number of bins in each spatial dimension (100 by default)

Value

A list of binned expr and coord