Skip to content

Commit 05c808b

Browse files
committed
add warning message
1 parent 435366b commit 05c808b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dance/automl_config/step3_config.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
import optuna
55
import scanpy as sc
6-
import wandb
76
from optuna.integration.wandb import WeightsAndBiasesCallback
87

8+
import wandb
9+
from dance import logger
910
from dance.automl_config.fun2code import fun2code_dict
1011
from dance.automl_config.step2_config import pipline2fun_dict
1112
from dance.transforms.cell_feature import CellPCA, CellSVD, WeightedFeaturePCA
@@ -173,6 +174,12 @@ def get_transforms(trial, fun_list, set_data_config=True, save_raw=False):
173174
fun_i = eval(f_str)
174175
transforms.append(fun_i(trial))
175176
if "highly_variable_genes" in fun_list and "log1p" not in fun_list[:fun_list.index('"highly_variable_genes"')]:
177+
logger.warning(
178+
"highly_variable_genes expects logarithmized data, except when flavor='seurat_v3', in which count data is expected."
179+
)
180+
181+
#The relationship between highly_variable_genes and log1p needs to be further discussed based on the flavor parameter
182+
#A little change is needed
176183
return None
177184
if set_data_config:
178185
data_config = {"label_channel": "cell_type"}

0 commit comments

Comments
 (0)