Commit 42fc048
committed
fix(fst): avoid infinite Z-scores when standard error is zero
Prevent division by zero from producing infinite values in Fst heatmaps.
Return NaN when SE is zero to avoid misleading visualization.
Refs malariagen#9471 parent 6d711b7 commit 42fc048
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
| 542 | + | |
546 | 543 | | |
| 544 | + | |
| 545 | + | |
547 | 546 | | |
548 | 547 | | |
549 | 548 | | |
| |||
0 commit comments