
Bedgraph files generated by BS pipelines often come in various flavors. Critical downstream step requires aggregation of these files into methylation/coverage matrices. This step of data aggregation is done by Methrix, including many other useful downstream functions.
For more detailed documentation, see the vignette.
A examplary complete data analysis with steps from reading in to annotation and differential methylation calling can be find in our best practice pipeline.

data.table back-endSummarizedExperiment with custom methods for CpG extraction, sub-setting, and filteringHDF5Array and saveHDF5SummarizedExperiment
see here
#For stable version which works with specific BioC versions BiocManager::install("methrix") #For developmental version from GitHub BiocManager::install("CompEpigen/methrix")
If you are installing from BioConductor make be noted that some of the methrix dependencies such as SummarizedExpriment requires your R version to the newest. Should you fail to install from BioC due to version dependenices, install from from GitHub which is tolerant to BioC versions.