# HG changeset patch # User luca_milaz # Date 1722686551 0 # Node ID 1c87924547651dfaf8e1399e21635b7330740fca # Parent 8e66f173ad60a101095107f638e5b39483b9cc88 Uploaded diff -r 8e66f173ad60 -r 1c8792454765 marea_2/flux_simulation.py --- a/marea_2/flux_simulation.py Sat Aug 03 11:52:27 2024 +0000 +++ b/marea_2/flux_simulation.py Sat Aug 03 12:02:31 2024 +0000 @@ -230,7 +230,7 @@ df_median= pd.DataFrame() df_quantiles= pd.DataFrame() - df_samples = pd.read_csv(ARGS.output_folder + model_name + '.csv', sep = '\t') + df_samples = pd.read_csv(ARGS.output_folder + model_name + '.csv', sep = '\t', index_col = 0).T df_samples = df_samples.round(8) for output_type in output_types: @@ -343,17 +343,17 @@ if("mean" in ARGS.output_types): all_mean = all_mean.fillna(0.0) all_mean = all_mean.sort_index() - write_to_file(all_mean, "mean", False) + write_to_file(all_mean.T, "mean", False) if("median" in ARGS.output_types): all_median = all_median.fillna(0.0) all_median = all_median.sort_index() - write_to_file(all_median, "median", False) + write_to_file(all_median.T, "median", False) if("quantiles" in ARGS.output_types): all_quantiles = all_quantiles.fillna(0.0) all_quantiles = all_quantiles.sort_index() - write_to_file(all_quantiles, "quantiles", False) + write_to_file(all_quantiles.T, "quantiles", False) index_result = 3 if("pFBA" in ARGS.output_type_analysis):