Data transformation/normalisation for heatmaps #132
-
Hi. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Jengel44 , Great question! If I have understood your question correctly, you are talking about plotting aggregate expression data on a heatmap -- i.e. the median expression of each marker on each cluster/population. From the last bit of this section: https://immunedynamics.io/spectre/simple-discovery/#5_Clustering_and_DR The
Then the
This means they all have the same colour range for what is effectively minimum to maximum for each marker. So if you had a range of -8 to 10, this would then be 'rescaled' to a range of 0 and 1.
If you wanted to turn this feature OFF:
|
Beta Was this translation helpful? Give feedback.
Hi @Jengel44 ,
Great question! If I have understood your question correctly, you are talking about plotting aggregate expression data on a heatmap -- i.e. the median expression of each marker on each cluster/population.
From the last bit of this section: https://immunedynamics.io/spectre/simple-discovery/#5_Clustering_and_DR
The
do.aggregate
function does the 'aggregation', so the resulting table is rows = clusters, columns = markers, and the values are the median expression of each marker on each cluster.Then the
make.pheatmap
function has an argument which 'normalises' the values in each column (marker) between 0…