comparison COBRAxy/marea.py @ 498:df90f40a156c draft

Uploaded
author francesco_lapi
date Tue, 30 Sep 2025 16:13:08 +0000
parents a6e45049c1b9
children
comparison
equal deleted inserted replaced
497:36838126cc07 498:df90f40a156c
489 z_score = values[2] 489 z_score = values[2]
490 490
491 if math.isnan(pValue) or (isinstance(foldChange, float) and math.isnan(foldChange)): continue 491 if math.isnan(pValue) or (isinstance(foldChange, float) and math.isnan(foldChange)): continue
492 492
493 if isinstance(foldChange, str): foldChange = float(foldChange) 493 if isinstance(foldChange, str): foldChange = float(foldChange)
494 if pValue >= ARGS.pValue: # pValue above tresh: dashed arrow 494 if pValue > ARGS.pValue: # pValue above tresh: dashed arrow
495 INSIGNIFICANT_ARROW.styleReactionElements(metabMap, reactionId) 495 INSIGNIFICANT_ARROW.styleReactionElements(metabMap, reactionId)
496 continue 496 continue
497 497
498 if abs(foldChange) < (ARGS.fChange - 1) / (abs(ARGS.fChange) + 1): 498 if abs(foldChange) < (ARGS.fChange - 1) / (abs(ARGS.fChange) + 1):
499 INVALID_ARROW.styleReactionElements(metabMap, reactionId) 499 INVALID_ARROW.styleReactionElements(metabMap, reactionId)