# HG changeset patch # User francesco_lapi # Date 1757027676 0 # Node ID be93df100d60748bbe84ab5ab3e8ec54a13a2788 # Parent 62de44378930b8240a5c5adca8f5aa015e999e37 Uploaded diff -r 62de44378930 -r be93df100d60 COBRAxy/custom_data_generator.py --- a/COBRAxy/custom_data_generator.py Thu Sep 04 23:10:02 2025 +0000 +++ b/COBRAxy/custom_data_generator.py Thu Sep 04 23:14:36 2025 +0000 @@ -259,17 +259,12 @@ #### out_data_path = ARGS.out_data - # If Galaxy provided a .dat name, ensure a correct extension according to output_format if ARGS.output_format == "xlsx": - if not out_data_path.lower().endswith(".xlsx"): - out_data_path = out_data_path + ".xlsx" merged.to_excel(out_data_path, index=False) else: - # 'tabular' -> tab-separated, extension .csv is fine and common for Galaxy tabular - if not (out_data_path.lower().endswith(".csv") or out_data_path.lower().endswith(".tsv")): - out_data_path = out_data_path + ".csv" merged.to_csv(out_data_path, sep="\t", index=False) + print(f"Custom data generated for model '{model_name}' and saved to '{out_data_path}'") if __name__ == '__main__':