Author: Alan O’Callaghan (alan.b.ocallaghan@gmail.com)
Due to the size of the objects, this file is seperated to three fils. You can view this series in the following links:
This is file 3 in the series.
# Let's load the packages
library(heatmaply)
library(heatmaplyExamples)Following normalization, gene expression patterns appear roughly similar. This indicates that relative expression levels have not been altered unduly. Furthermore, slightly increased concordance with the pre-assigned cluster labels is observed in normalized data. Samples appear to cluster based Sample-sample correlation appears to show less concordance with row annotations than clustering based on gene expression. However, the use of different linkage criteria or distance measures may alter the observed clusters.
center_voom_mat <- voomed_pam50_expression -
apply(voomed_pam50_expression, 1, median)
voom_max <- max(abs(center_voom_mat))
voom_limits <- c(-voom_max, voom_max)
heatmaply(t(center_voom_mat),
row_side_colors=tcga_brca_clinical,
fontsize_col = 7.5,
showticklabels = c(TRUE, FALSE),
col = cool_warm(50),
limits = voom_limits,
main = 'Normalised, centred log2 CPM, PAM50 genes',
plot_method = 'plotly')heatmaply_cor(cor(center_voom_mat),
row_side_colors = tcga_brca_clinical,
showticklabels = c(FALSE, FALSE),
main = 'Sample-sample correlation based on centred, normalised PAM50 gene expression',
plot_method = 'plotly')