From b3c841b81f1b2d23da11c65efa65f83763b39de5 Mon Sep 17 00:00:00 2001 From: Kai Waldrant Date: Wed, 2 Oct 2024 20:09:42 +0200 Subject: [PATCH] fix typo --- src/data_processors/process_dataset/script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data_processors/process_dataset/script.py b/src/data_processors/process_dataset/script.py index 19af2c1..b606975 100644 --- a/src/data_processors/process_dataset/script.py +++ b/src/data_processors/process_dataset/script.py @@ -42,9 +42,9 @@ print(f">> Randomly subsampling observations to {par['n_obs_limit']}", flush=True) print(f">> Setting seed to {par['seed']}", flush=True) random.seed(par["seed"]) - obs_filt = np.ones(dtype=np.bool_, shape=adata.n_obs) + obs_filt = np.ones(dtype=np.bool_, shape=adata_output.n_obs) obs_index = np.random.choice(np.where(obs_filt)[0], par["n_obs_limit"], replace=False) - adata_output = adata[obs_index].copy() + adata_output = adata_output[obs_index].copy() # remove all layers except for counts print(">> Remove all layers except for counts", flush=True)