# HG changeset patch # User luca_milaz # Date 1719955166 0 # Node ID edc46e89ae20055dcfc327dea010eac3e6ad6c39 # Parent b99c5230b928a555074e9ddd26c8866db8b5bb1d Uploaded diff -r b99c5230b928 -r edc46e89ae20 marea_2_0/flux_sampling.py --- a/marea_2_0/flux_sampling.py Tue Jul 02 20:57:49 2024 +0000 +++ b/marea_2_0/flux_sampling.py Tue Jul 02 21:19:26 2024 +0000 @@ -29,6 +29,11 @@ parser.add_argument('-ol', '--out_log', help = "Output log") + parser.add_argument('-td', '--tool_dir', + type = str, + required = True, + help = 'your tool directory') + parser.add_argument( "-of", "--output_format", type = utils.FileFormat.fromExt, default = utils.FileFormat.PICKLE, @@ -188,7 +193,7 @@ global ARGS ARGS = process_args(sys.argv) - ARGS.output_folder = 'flux_sampling/' + ARGS.output_folder = 'flux_sampling' @@ -201,9 +206,16 @@ utils.logWarning( "Warning: gene(s) not found in class the expression level for this gene will be considered NaN", ARGS.out_log) + - with open("./", 'w') as f: - f.write([model1, model2]) + a = pd.DataFrame(columns=["a"]) + a.loc[0] = ["sss"] + a.to_csv(ARGS.output_folder+"test1.csv") + + a = pd.DataFrame(columns=["a"]) + a.loc[0] = ["sss"] + a.to_csv(ARGS.output_folder+"test2.csv") + '''