sfaira.data.StoresH5ad

class sfaira.data.StoresH5ad(cache_path: Union[str, os.PathLike, List[str], List[os.PathLike]], in_memory: bool = False)

Attributes

adata_by_key

Dictionary of all anndata instances for each selected data set in store, sub-setted by selected cells, for each stores.

adata_memory_footprint

Memory foot-print of data set k in MB.

data_by_key

Data matrix for each selected data set in store, sub-setted by selected cells.

genome_container

indices

Dictionary of indices of selected observations contained in all stores.

n_obs

Dictionary of number of observations across stores.

n_obs_dict

Dictionary of number of observations by store.

n_vars

Dictionary of number of features by store.

obs_by_key

Dictionary of all anndata instances for each selected data set in store, sub-setted by selected cells, for each stores.

shape

Dictionary of full selected data matrix shape by store.

stores

Only expose stores that contain observations.

var_names

Dictionary of variable names by store.

Methods

checkout([idx, intercalated])

Carts per store.

load_config(fn)

Load a config file and recreates a data sub-setting.

subset(attr_key[, values, excluded_values, ...])

Subset list of adata objects based on cell-wise properties.

write_config(fn)

Writes a config file that describes the current data sub-setting.