Exercise part4 – Alternative approach in R to plot and visualize the data

As an alternative to deeptools2, we can always use R starting from the BigWig files. Below is the R code that achieves this.

You will need to use the library CoverageView (available through bioconductor).

The code has “hard-coded” paths in it, but you should, by now, be able to interact with R enough to change these accordingly.

(Note: You will obviously need to download the BigWig files to your local machine for this to work).