The comma package provides a complete toolkit for genome-wide analysis of bacterial DNA methylation from Oxford Nanopore sequencing data. It supports the three major modification types (6mA, 5mC, 4mC), handles input from modkit pileup (primary), Dorado BAM, and Megalodon (legacy) callers, and provides a unified data container, annotation utilities, differential methylation testing, and a full set of visualization functions.
Value
No return value. This page provides package-level documentation. See individual function pages for return values.
Main workflow
Load data —
commaData()constructs the centralcommaDataS4 object from per-sample methylation files.QC —
methylomeSummary(),coverageDepth(),plot_coverage(),plot_methylation_distribution(), andplot_pca()provide sample-level quality assessment.Annotate —
loadAnnotation()imports a GFF3 or BED file;annotateSites()maps methylation sites to genomic features.Visualize —
plot_genome_track()andplot_metagene()show methylation in a genomic context.Differential methylation —
diffMethyl()tests each site;results()andfilterResults()extract and filter the results table;plot_volcano()andplot_heatmap()visualize the findings.
Key classes and constructors
commaDataThe central S4 data container, extending
SummarizedExperiment. Stores methylation (beta) and coverage matrices, per-site and per-sample metadata, genome information, genomic annotation, and motif site locations.
References
The modkit pileup format is documented at https://nanoporetech.github.io/modkit/.
Author
Maintainer: Carl Stone carl.j.stone@vanderbilt.edu (ORCID)