read_obsp#
- @staticmethodSingleCell.read_obsp(h5ad_file, *, keys=None, num_threads=-1)[source]#
Load just obsp from an .h5ad file as a dictionary of sparse arrays.
- Parameters:
h5ad_file: str | Path
an .h5ad filename
keys: str | Iterable[str] | None
the keys(s) of obsp to load; if None, load all keys
num_threads: int
the number of threads to use when reading DataFrame keys of varm. By default (num_threads=-1), use all available cores, as determined by
os.cpu_count().
- Returns:
A dictionary of sparse arrays of the data in obsp.
- Return type:
dict[str, csr_array | csc_array]