Properties#

SingleCell.X

The count matrix, as a sparse array.

SingleCell.obs

A Polars DataFrame of metadata for each cell.

SingleCell.var

A Polars DataFrame of metadata for each gene.

SingleCell.obsm

A dictionary of 2D NumPy arrays, where the length of each array's first dimension is the number of cells.

SingleCell.varm

A dictionary of 2D NumPy arrays, where the length of each array's first dimension is the number of genes.

SingleCell.obsp

A dictionary of 2D sparse arrays, where the length and width of each array is the number of cells.

SingleCell.varp

A dictionary of 2D sparse arrays, where the length and width of each array is the number of genes.

SingleCell.uns

A dictionary of miscellaneous metadata.

SingleCell.obs_names

A shortcut to access the first column of obs.

SingleCell.var_names

A shortcut to access the first column of var.

SingleCell.num_threads

The default number of threads used for this SingleCell dataset's operations.

SingleCell.shape

a length-2 tuple where the first element is the number of cells, and the second is the number of genes.