Mercurial > repos > bimib > cobraxy
comparison COBRAxy/marea.py @ 273:99703bcaa290 draft
Uploaded
author | francesco_lapi |
---|---|
date | Mon, 05 May 2025 10:15:23 +0000 |
parents | 655e33ca9225 |
children | 2748cef7fa12 |
comparison
equal
deleted
inserted
replaced
272:655e33ca9225 | 273:99703bcaa290 |
---|---|
759 continue | 759 continue |
760 | 760 |
761 # fallthrough is intended, regular scores need to be computed when tips aren't net but RAS datasets aren't used | 761 # fallthrough is intended, regular scores need to be computed when tips aren't net but RAS datasets aren't used |
762 p_value, z_score = computePValue(l1, l2) | 762 p_value, z_score = computePValue(l1, l2) |
763 avg = fold_change(sum(l1) / len(l1), sum(l2) / len(l2)) | 763 avg = fold_change(sum(l1) / len(l1), sum(l2) / len(l2)) |
764 if math.isnan(p_value) or (isinstance(avg, float) and math.isnan(avg)): continue | |
764 if not isinstance(z_score, str) and max_z_score < abs(z_score): max_z_score = abs(z_score) | 765 if not isinstance(z_score, str) and max_z_score < abs(z_score): max_z_score = abs(z_score) |
765 tmp[reactId] = [float(p_value), avg, z_score] | 766 tmp[reactId] = [float(p_value), avg, z_score] |
766 | 767 |
767 except (TypeError, ZeroDivisionError): continue | 768 except (TypeError, ZeroDivisionError): continue |
768 | 769 |