diff --git a/src/components/expression/diffExpHeatmap.js b/src/components/expression/diffExpHeatmap.js
index 6488f6e5..1c8e892b 100644
--- a/src/components/expression/diffExpHeatmap.js
+++ b/src/components/expression/diffExpHeatmap.js
@@ -28,6 +28,7 @@ class HeatmapSquare extends React.Component {
textAlign: "center",
color: contrastColor,
width: 40,
+ flexShrink: 0,
fontSize: 12,
margin: 0,
backgroundColor: this.props.backgroundColor,
@@ -91,30 +92,34 @@ class HeatmapRow extends React.Component {
justifyContent: "flex-start",
alignItems: "baseline",
}}>
-
+
X
Y
🖌️
+
+ {this.props.aveDiff.toFixed(2)}
+
)
}
@@ -208,13 +223,14 @@ class Heatmap extends React.Component {
/>
-
Gene
-
1
-
2
+
Gene
+
1
+
2
+
ave diff
{
topGenesForCellSet1.topgenes.map((gene, i) => {
@@ -222,6 +238,7 @@ class Heatmap extends React.Component {
key={gene}
gene={gene}
greyColorScale={greyColorScale}
+ aveDiff={topGenesForCellSet1.ave_diff[i]}
set1exp={Math.floor(topGenesForCellSet1.mean_expression_cellset1[i])}
set2exp={Math.floor(topGenesForCellSet1.mean_expression_cellset2[i])}
/>
@@ -233,6 +250,7 @@ class Heatmap extends React.Component {
key={gene}
gene={gene}
greyColorScale={greyColorScale}
+ aveDiff={topGenesForCellSet2.ave_diff[i]}
set1exp={Math.floor(topGenesForCellSet2.mean_expression_cellset1[i])}
set2exp={Math.floor(topGenesForCellSet2.mean_expression_cellset2[i])}
/>