# HG changeset patch # User luca_milaz # Date 1734433646 0 # Node ID e71edb2585e6a4c999c8da2bd71a35b25ba4c0ab # Parent 55ad01b84c7f20b6084b1e6b4de9e25a3ab71a84 Uploaded diff -r 55ad01b84c7f -r e71edb2585e6 COBRAxy/flux_to_map.py --- 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)