Session Ready
Exercise

Heat map

Before moving on to the details of the ChIP-seq workflow in the next chapter, you have the opportunity here to preview some of the results of the analysis.

In this exercise, you will be looking at how to visualize differences between samples using heat maps. The data has already been loaded and is formatted to allow plotting with the heatmap() function.

The sample correlation matrix is available as sample_cor and normalized read counts for each peak are stored in the read_counts object. In both cases, the first two samples are from primary tumors, the final two are treatment resistant.

You can pass a vector of group labels to the ColSideColors and RowSideColors arguments in the heatmap() function to highlight which samples belong to the same group.

Instructions
100 XP
  • Create a vector of color names that can be used to label groups in the plot.
  • Plot the sample correlation matrix sample_cor as a heat map.
  • Create a heat map of peak read counts.