From 377fd160da92c0575750db4af2dfdcd0e8b9e3cf Mon Sep 17 00:00:00 2001 From: Luke Zappia Date: Mon, 20 Jan 2025 13:04:36 +0100 Subject: [PATCH] Adjust features filter in scPRINT (#36) --- src/methods/scprint/script.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/methods/scprint/script.py b/src/methods/scprint/script.py index deb0bd00..e76d6f39 100644 --- a/src/methods/scprint/script.py +++ b/src/methods/scprint/script.py @@ -41,8 +41,7 @@ print("\n>>> Preprocessing data...", flush=True) preprocessor = Preprocessor( - # Lower this threshold for test datasets - min_valid_genes_id=1000 if input.n_vars < 2000 else 10000, + min_valid_genes_id=min(0.9 * adata.n_vars, 10000), # 90% of features up to 10,000 # Turn off cell filtering to return results for all cells filter_cell_by_counts=False, min_nnz_genes=False,