Filter intervals by number of CpGs

gpatterns.filter_cpgs(intervals, min_cpgs,
  cgs_track = .gpatterns.genome_cpgs_track)

Arguments

intervals
intervals to filter
min_cpgs
minimal number of CpGs
cgs_track
cpgs track (has '1' at every CpG in the genome and '0' otherwise)