API Reference
The API reference is generated from the package docstrings. Rebuilding the docs is enough to pick up docstring updates.
Workflow objects
High-level API that coordinates preparation, training, and segmentation. |
|
Normalize methylation input tables into the canonical |
|
Simple container for sample metadata and prepared methylation rows. |
|
Lightweight helper that knows how to build a serializable dictionary from a MethylSegPathway instance and how to write/read YAML. |
|
Create per-CpG window summaries and assign coarse methylation states. |
|
Analyze learned state separation and define rule-based CpG states. |
|
Class to handle segmentation of methylation data using HMMs. |
Enums and labels
Strategies for mapping emissions to biological methylation states. |
|
Canonical biological methylation states used throughout the package. |
|
Supported HMM model types for segmentation. |
HMM backends
Abstract base class for methylseg HMM backends. |
|
Categorical HMM with strong self-transition priors for smoother segments. |
|
Continuous-time HMM backend for sparsely spaced CpGs along a chromosome. |
Utility helpers
Return a fixed biological-state palette keyed by the canonical enum values. |
|
Return a discrete colormap and color lookup for integer cluster labels. |