mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 14:58:12 +08:00
Introduce a config file to cellxgene (#1264)
* Introduce a config file to cellxgene The config file format is in yaml. The default config is located in server/common/default_config.py. A user may create a yaml file that contains a subset of these fields. It can be used during cellxgene launch, or for hosted cellxgene. The code has also been refactored. Much of the logic to check arguments has moved from launch to app config. It is now possible to set the tiledb context parameters using the config file. Other feature will soon be handled in a similar way.
This commit is contained in:
@@ -174,12 +174,12 @@ class MatrixDataLoader(object):
|
||||
|
||||
if not app_config:
|
||||
return True
|
||||
if not app_config.dataroot:
|
||||
if not app_config.multi_dataset__dataroot:
|
||||
return True
|
||||
if len(app_config.multi_dataset_allowed_matrix_type) == 0:
|
||||
if len(app_config.multi_dataset__allowed_matrix_types) == 0:
|
||||
return True
|
||||
|
||||
for val in app_config.multi_dataset_allowed_matrix_type:
|
||||
for val in app_config.multi_dataset__allowed_matrix_types:
|
||||
try:
|
||||
if self.matrix_data_type == MatrixDataType(val):
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user