changeset 19:69ab15eb23ff draft

Uploaded
author luca_milaz
date Mon, 15 Jul 2024 20:27:36 +0000
parents c9efd1c765fa
children 0d948733793f
files marea_2/rps_generator.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/rps_generator.py	Mon Jul 15 14:34:51 2024 +0000
+++ b/marea_2/rps_generator.py	Mon Jul 15 20:27:36 2024 +0000
@@ -217,9 +217,9 @@
         abundances = { metab : abundances[pos] for metab, abundances in abundances_dict.items() }
         rps_scores[cell_line_name] = calculate_rps(reactions, abundances, black_list, missing_list)
     
-    pd.DataFrame.from_dict(rps_scores) \
-                .rename(columns={'Unnamed: 0': 'Reactions'}, inplace=True) \
-                .to_csv(ARGS.rps_output, sep = '\t', na_rep = "None", index = False)
+    df = pd.DataFrame.from_dict(rps_scores)
+    df.rename(columns={'Unnamed: 0': 'Reactions'}, inplace=True)
+    df.to_csv(ARGS.rps_output, sep = '\t', na_rep = "None", index = False)
 
 ############################ main ####################################
 def main() -> None: