Mercurial > repos > bimib > cobraxy
changeset 273:99703bcaa290 draft
Uploaded
author | francesco_lapi |
---|---|
date | Mon, 05 May 2025 10:15:23 +0000 |
parents | 655e33ca9225 |
children | d54d6728b204 |
files | COBRAxy/marea.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/COBRAxy/marea.py Mon Mar 10 15:54:03 2025 +0000 +++ b/COBRAxy/marea.py Mon May 05 10:15:23 2025 +0000 @@ -761,6 +761,7 @@ # 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)) + if math.isnan(p_value) or (isinstance(avg, float) and math.isnan(avg)): continue 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]