anndict.utils.sample_adata_dict

anndict.utils.sample_adata_dict#

anndict.utils.sample_adata_dict(adata_dict, **kwargs)[source]#

Samples each AnnData in adata_dict using sc.pp.subsample().

Parameters:
adata_dict AdataDict

An AdataDict.

kwargs

Additional keyword arguments to pass to sc.pp.sample()

Return type:

None

Returns:

None and modifies adata_dict in-place if copy is False (default). If copy is True, returns a new AdataDict.

@todo switch to sc.pp.sample when scanpy required version is upgraded past 1.11.0