changeset 326:3dccdf56cb24 draft default tip

Uploaded
author francesco_lapi
date Mon, 30 Jun 2025 11:07:55 +0000
parents 2aea7e27ae0f
children
files COBRAxy/rps_generator.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/rps_generator.py	Mon Jun 23 20:24:20 2025 +0000
+++ b/COBRAxy/rps_generator.py	Mon Jun 30 11:07:55 2025 +0000
@@ -171,7 +171,7 @@
     rps_scores = {}
 
     for reaction_name, substrates in reactions.items():
-        total_contribution = 1
+        total_contribution = 0
         metab_significant  = False
         for metabolite, stoichiometry in substrates.items():
             abundance = 1 if math.isnan(abundances[metabolite]) else abundances[metabolite]
@@ -255,4 +255,4 @@
     print('Execution succeded')
 
 ##############################################################################
-if __name__ == "__main__": main()
\ No newline at end of file
+if __name__ == "__main__": main()