Skip to content

Data transformation/normalisation for heatmaps #132

Answered by tomashhurst
Jengel44 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

exp <- do.aggregate(cell.dat, cellular.cols, by = "FlowSOM_metacluster")

Then the make.pheatmap function has an argument which 'normalises' the values in each column (marker) between 0…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jengel44
Comment options

Answer selected by Jengel44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants