spacipy.Gem.to_matrix

Gem.to_matrix(bin_size=None, outfile=None)

convert the tabular structure to sparse matrix.

Parameters:
  • bin_size (int) – group into bins before convert with width and height of bin_size

  • outfile (str) – save the matrix