decoupler.ds.toy_bench

Contents

decoupler.ds.toy_bench#

decoupler.ds.toy_bench(shuffle_r=0.25, seed=42, verbose=False, **kwargs)#

Generate a toy adata and net for testing the benchmark pipeline.

Parameters:
  • shuffle_r (float (default: 0.25)) – Percentage of the ground truth to randomize.

  • seed (int (default: 42)) – Random seed to use.

  • verbose (bool (default: False)) – Whether to display progress messages and additional execution details.

  • kwargs – All other keyword arguments are passed to decoupler.ds.toy.

Returns:

AnnData and net examples.

Example

import decoupler as dc

adata, net = dc.ds.toy_bench()
adata, net