This function is used to add GC bin to the methylation sites and calculate the average methylation for each bin.
Examples
library(methylTFR)
# Load the data
load(system.file("extdata",
"gcdist_subset.rda",
package = "methylTFR"
))
load(system.file("extdata",
"example_data.rda",
package = "methylTFR"
))
# Add GC bin
bin_meth <- addGCBintoMethylome(msites, gcdist)