Mercurial > repos > bimib > marea_2
changeset 204:4f40b848d55a draft
Uploaded
author | francesco_lapi |
---|---|
date | Wed, 31 Jul 2024 15:01:42 +0000 |
parents | f2be75f8ef60 |
children | 3098ceac725d |
files | marea_2/flux_to_map.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/marea_2/flux_to_map.py Wed Jul 31 14:57:06 2024 +0000 +++ b/marea_2/flux_to_map.py Wed Jul 31 15:01:42 2024 +0000 @@ -738,10 +738,11 @@ try: # fallthrough is intended, regular scores need to be computed when tips aren't net but RAS datasets aren't used p_value, z_score = computePValue(l1, l2) - avg = fold_change(sum(l1) / len(l1), sum(l2) / len(l2)) + avg1 = sum(l1) / len(l1) + avg2 = sum(l2) / len(l2) + avg = fold_change(avg1, avg2) if not isinstance(z_score, str) and max_z_score < abs(z_score): max_z_score = abs(z_score) - tmp[reactId] = [float(p_value), avg, z_score] - + tmp[reactId] = [float(p_value), avg, z_score, avg1, avg2] except (TypeError, ZeroDivisionError): continue return tmp, max_z_score