def test_read(self, adata_cflare_fwd: Tuple[AnnData, cr.tl.estimators.CFLARE]): _, mc1 = adata_cflare_fwd with TemporaryDirectory() as tmpdir: mc1.write(os.path.join(tmpdir, "foo")) mc2 = cr.tl.estimators.CFLARE.read(os.path.join(tmpdir, "foo.pickle")) assert_estimators_equal(mc1, mc2)
def test_copy(self, adata_cflare_fwd: Tuple[AnnData, cr.tl.estimators.CFLARE]): _, mc1 = adata_cflare_fwd mc2 = mc1.copy() assert_estimators_equal(mc1, mc2, copy=True)
def test_copy(self, adata_gpcca_fwd: Tuple[AnnData, cr.tl.estimators.GPCCA]): _, mc1 = adata_gpcca_fwd mc2 = mc1.copy() assert_estimators_equal(mc1, mc2, copy=True)