Mercurial > repos > bimib > cobraxy
changeset 373:72f592fe1f7d draft
Uploaded
author | francesco_lapi |
---|---|
date | Fri, 05 Sep 2025 05:54:35 +0000 |
parents | d0a307c3ae36 |
children | 5c98a5cd8bd8 |
files | COBRAxy/custom_data_generator.py |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/COBRAxy/custom_data_generator.py Fri Sep 05 00:19:08 2025 +0000 +++ b/COBRAxy/custom_data_generator.py Fri Sep 05 05:54:35 2025 +0000 @@ -39,10 +39,7 @@ parser.add_argument("--output_format", type=str, choices=["tabular", "xlsx"], required=True, help="Output format: CSV (tabular) or Excel (xlsx)") - parser.add_argument("--out_tabular", type=str, - help="Output file for the merged dataset (CSV or XLSX)") - - parser.add_argument("--out_xlsx", type=str, + parser.add_argument("--out_data", type=str, help="Output file for the merged dataset (CSV or XLSX)") parser.add_argument("--tool_dir", type=str, default=os.path.dirname(__file__), @@ -263,9 +260,9 @@ #if not ARGS.out_xlsx.lower().endswith(".xlsx"): # ARGS.out_xlsx += ".xlsx" - merged.to_excel(ARGS.out_xlsx, index=False) + merged.to_excel(ARGS.out_data, index=False) else: - merged.to_csv(ARGS.out_tabular, sep="\t", index=False) + merged.to_csv(ARGS.out_data, sep="\t", index=False) print("CustomDataGenerator: completed successfully")