changeset 234:e71edb2585e6 draft

Uploaded
author luca_milaz
date Tue, 17 Dec 2024 11:07:26 +0000
parents 55ad01b84c7f
children 5c70439f2907
files COBRAxy/flux_to_map.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/flux_to_map.py	Tue Dec 17 11:04:35 2024 +0000
+++ b/COBRAxy/flux_to_map.py	Tue Dec 17 11:07:26 2024 +0000
@@ -808,7 +808,10 @@
     elif ARGS.option == "dataset_class":
         classes = read_dataset(classPath, "class")
         classes = classes.astype(str)
-
+        #check if classes have mathc on ids
+        if not all(classes.iloc[:, 0].isin(ids)):
+            utils.logWarning(
+            "No match between classes and sample IDs", ARGS.out_log)
         resolve_rules_float, ids = getDatasetValues(datasetPath, "Dataset Class (not actual name)")
         if resolve_rules_float != None: class_pat = split_class(classes, resolve_rules_float)