calculates the average methylation (m / m + um)
in each
bin of strat_track
and plots it. By default, plots the average methylation
in different bins of CpG content. This can be used as a sanity check for methylation
data - in general, methylation is high for regions with low CpG density,
and low for CpG dense regions (e.g. CpG islands).
gpatterns.global_meth_trend(tracks, strat_track = .gpatterns.cg_cont_500_track, strat_breaks = seq(0, 0.08, by = 0.002), intervals = .gpatterns.genome_cpgs_intervals, iterator = .gpatterns.genome_cpgs_intervals, min_cov = NULL, min_cgs = NULL, names = NULL, groups = NULL, group_name = NULL, include.lowest = TRUE, ncol = 2, nrow = 2, width = 600, height = 560, fig_fn = NULL, xlab = strat_track, ylim = c(0, 1), title = "", legend = TRUE, colors = NULL, parallel = getOption("gpatterns.parallel"))
tracks
with group for each track. Each group will on a different facet.list with trend data frame (under 'trend') and the plot (under 'p')