Hi,
I have previously converted different datasets into Zscores (zFPKM
package) and one approach I want to try is to compare the different dataset is by:
- identifying all shared genes
- subdivide those genes into categories depending on the function (e.g. apoptotic markers, cytoskeleton) and do a heatmap on this last subgroup (it's one approach, not the only one I am testing).
I am assuming I do not have to scale prior to compute the heatmap since the data are already standardized. When I do the heatmap I obtain a heatmap "monocolor", suggesting that there aren't any differences between genes and between samples. I looked at the Z scores and the are not identical for all conditions. If I run the heatmap setting the scale (so scaling the Zscores) I obtain a better heatmap where at least I can see some differences but I don't think this makes sense. So my question is do I have to scale to perform heatmap/other analysis on already normalized data (Z scores)?
thank you
Your z-scores may not be identical for all conditions but most of them may span only a small range thus not being distinguishable by colour. Rescaling adapts the colour range to the range of values which can make small differences more visible. Look at the distribution of your z-scores and try removing outliers. Consider this example where all matrix values are around 0 except one:
Thank you very much! Can I ask you, if I want to run PCA I usually log transform and then I set center= T, scale=F since it's bulkRNAseq and I do not want to lose information. Do you think, based on the fact that the range is similar should I do the same in this case? or maybe just scale=T and not log transform? I have tried (for curiosity) to run a PCA without log transform and then setting scale= T or F and when I look at the screenplot for the PCs the PC1 is usually between 23-33% when I set scale=T (so it's not really represent the data) and if scale=F I got between 70-90% so I am not sure what it's the right approach cause, as before I would not log transform and not scaled