The goal of Bam2Bsseq is to read in nanopore data into Bsseq objects.
Use modbam2bed program developed by Oxford Nanopore Technologies to convert modified-base BAM files to bedMethyl files. See https://github.com/epi2me-labs/modbam2bed for details.
Use read.modbam2bed()
function to read in, extract methylation, coverage and ambiguous modification status data and create Bsseq object from bedMethyl files obtained by modbam2bed program. The resulting Bsseq object can be used for further differential methylation analysis.
You can install the development version of Bam2Bsseq from GitHub with:
# install.packages("Bam2Bsseq")
devtools::install_github(repo = "yixuan-chen-elisa/Bam2Bsseq")