# HG changeset patch # User francesco_lapi # Date 1746440146 0 # Node ID d54d6728b2047deb28f9486743662872093e2b52 # Parent 99703bcaa2901a1251231c6b598db007be2437d9 Uploaded diff -r 99703bcaa290 -r d54d6728b204 COBRAxy/flux_to_map.py --- a/COBRAxy/flux_to_map.py Mon May 05 10:15:23 2025 +0000 +++ b/COBRAxy/flux_to_map.py Mon May 05 10:15:46 2025 +0000 @@ -726,6 +726,7 @@ avg1 = sum(l1) / len(l1) avg2 = sum(l2) / len(l2) f_c = fold_change(avg1, avg2) + if math.isnan(p_value) or (isinstance(f_c, float) and math.isnan(f_c)): 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), f_c, z_score, avg1, avg2]