anndict.utils.sample_adata_dict#
- anndict.utils.sample_adata_dict(adata_dict, **kwargs)[source]#
Samples each
AnnData
inadata_dict
usingsc.pp.subsample()
.- Parameters:
- adata_dict
AdataDict
An
AdataDict
.- kwargs
Additional keyword arguments to pass to
sc.pp.sample()
- adata_dict
- Return type:
None
- Returns:
None
and modifiesadata_dict
in-place ifcopy
isFalse
(default). Ifcopy
isTrue
, returns a newAdataDict
.@todo switch to sc.pp.sample when scanpy required version is upgraded past 1.11.0