snapatac2.pp.add_tile_matrix#

snapatac2.pp.add_tile_matrix(adata, bin_size=500, chunk_size=500, n_jobs=4)[source]#

Generate cell by bin count matrix.

This function is used to generate and add a cell by bin count matrix to the AnnData object.

import_data() must be ran first in order to use this function.

Parameters
  • adata (AnnData) – The (annotated) data matrix of shape n_obs x n_vars. Rows correspond to cells and columns to regions.

  • bin_size (int) – The size of consecutive genomic regions used to record the counts.

  • chunk_size (int) – Increasing the chunk_size speeds up I/O but uses more memory.

  • n_jobs (int) – Number of CPUs to use.

Return type

None