mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-30 00:38:11 +08:00
diffexp limit UI and configuration (#1336)
* warning on maxCount for diffexp * cleanup logging * clarification * make the limits configurable * make diff exp limit work * danger! * remove debugging code * fix merge with master * fix unit tests Co-authored-by: Colin Megill <colinmegill@gmail.com>
This commit is contained in:
co-authored by
Colin Megill
parent
d457988810
commit
e2a12ba9bb
@@ -41,11 +41,11 @@ class AdaptorTest(unittest.TestCase):
|
||||
"diffexp__lfc_cutoff": 0.01,
|
||||
"adaptor__anndata_adaptor__backed": self.backed,
|
||||
"single_dataset__datapath": self.data_locator,
|
||||
"limits__diffexp_cellcount_max": None,
|
||||
"limits__column_request_max": None
|
||||
}
|
||||
config = AppConfig()
|
||||
config.update(**args)
|
||||
for k in config.limits.keys():
|
||||
config.limits[k] = None
|
||||
config.complete_config()
|
||||
self.data = AnndataAdaptor(DataLocator(self.data_locator), config)
|
||||
|
||||
|
||||
@@ -19,13 +19,13 @@ class NaNTest(unittest.TestCase):
|
||||
"single_dataset__obs_names": None,
|
||||
"single_dataset__var_names": None,
|
||||
"diffexp__lfc_cutoff": 0.01,
|
||||
"limits__diffexp_cellcount_max": None,
|
||||
"limits__column_request_max": None,
|
||||
}
|
||||
config = AppConfig()
|
||||
config.update(**self.args)
|
||||
locator = DataLocator("test/test_datasets/nan.h5ad")
|
||||
config.update(single_dataset__datapath=locator.path)
|
||||
for k in config.limits.keys():
|
||||
config.limits[k] = None
|
||||
config.complete_config()
|
||||
|
||||
with warnings.catch_warnings():
|
||||
|
||||
Reference in New Issue
Block a user