Skip to content

Commit 2090db2

Browse files
committed
fix: use per-group control for tooltip log2 fold change
1 parent 58641e3 commit 2090db2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Eplant/views/eFP/Viewer/EFPTooltip.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ function SVGTooltip(props: {
124124
<KeyValueRow
125125
label='Log2 fold change vs control'
126126
value={Math.log2(
127-
props.tissue.mean / (props.data.control ?? 1)
127+
props.tissue.mean /
128+
(props.group.control ?? props.data.control ?? 1)
128129
).toFixed(2)}
129130
/>
130131
</TableBody>

0 commit comments

Comments
 (0)