changeset 235:5c70439f2907 draft

Uploaded
author luca_milaz
date Tue, 17 Dec 2024 11:09:55 +0000
parents e71edb2585e6
children 1e7a8da6c47a
files COBRAxy/flux_to_map.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/flux_to_map.py	Tue Dec 17 11:07:26 2024 +0000
+++ b/COBRAxy/flux_to_map.py	Tue Dec 17 11:09:55 2024 +0000
@@ -808,11 +808,11 @@
     elif ARGS.option == "dataset_class":
         classes = read_dataset(classPath, "class")
         classes = classes.astype(str)
+        resolve_rules_float, ids = getDatasetValues(datasetPath, "Dataset Class (not actual name)")
         #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)
     
     return ids, class_pat