This function groups adjacent loci into clusters with a specified maximum gap between CpGs in the cluster, and a specified maximum cluster width. The loci within each cluster are summarized resulting in a single methylation estimate per cluster.
cpgCollapse(object, what = c("Beta", "M"), maxGap = 500, blockMaxGap = 2.5 * 10^5, maxClusterWidth = 1500, dataSummary = colMeans, na.rm = FALSE, returnBlockInfo = TRUE, islandAnno = NULL, verbose = TRUE, ...)
[Genomic]MethylSet
or [Genomic]RatioSet
.NULL
indicates the default. This argument is only useful if the
annotatio object contains more than one island annotation.FALSE
: a GenomicRatioSet of collapsed CpG clusters.If returnBlockInfo is TRUE
:
This function is used as the first step of block-finding. It groups adjacent loci into clusters with a default maximum gap of 500bp and a maximum cluster width of 1,500bp. The loci within each cluster are then summarized (using the mean by default) resulting in a single methylation estimate per cluster. Cluster estimates from open-sea probes are used in block-finding.
blockFinder