I/O#

SingleCell.__init__

Load a SingleCell dataset from a file, or create one from an in-memory AnnData object or count matrix + metadata.

SingleCell.save

Save this SingleCell dataset to a file.

SingleCell.ls

Print the fields in an .h5ad file.

SingleCell.read_obs

Load just obs from an .h5ad file as a polars DataFrame.

SingleCell.read_var

Load just var from an .h5ad file as a polars DataFrame.

SingleCell.read_obsm

Load just obsm from an .h5ad file as a dictionary of Numpy arrays or DataFrames.

SingleCell.read_varm

Load just varm from an .h5ad file as a dictionary of Numpy arrays or DataFrames.

SingleCell.read_obsp

Load just obsp from an .h5ad file as a dictionary of sparse arrays.

SingleCell.read_varp

Load just varp from an .h5ad file as a dictionary of sparse arrays.

SingleCell.read_uns

Load just uns from an .h5ad file as a dictionary.

SingleCell.to_scanpy

Converts this SingleCell dataset to an AnnData object, the representation used by Scanpy.

SingleCell.from_seurat

Create a SingleCell dataset from a Seurat object that has already been loaded into memory via the ryp Python-R bridge.

SingleCell.to_seurat

Convert this SingleCell dataset to a Seurat object in the R workspace of the ryp Python-R bridge.

SingleCell.from_sce

Create a SingleCell dataset from a SingleCellExperiment object that has already been loaded into memory via the ryp Python-R bridge.

SingleCell.to_sce

Convert this SingleCell dataset to a SingleCellExperiment object in the R workspace of the ryp Python-R bridge.