count CpGs in intervals

gpatterns.count_cpgs(intervals, cgs_track = .gpatterns.genome_cpgs_track)

Arguments

intervals
intervals to filter
cgs_track
cpgs track (has '1' at every CpG in the genome and '0' or NA otherwise)