Packages for a methylation–fragmentomics disease fingerprint

software
statistics
reproducibility
A pragmatic open-source stack for EM-seq, fragment features, pathway analysis, integration, and future progression models
Author

Methylation & Colitis team

Published

August 24, 2026

Best means fit for purpose

No single package fingerprints disease progression. The strongest stack separates read processing, methylation inference, fragment feature extraction, biological annotation, statistical modeling, and validation. For this project, transparent Bioconductor and workflow tools are preferable to a large black-box model.

Scientific illustration of nucleosomes, DNA fragments, enzymatic methylation preparation, paired reads, and genomic features

A reproducible stack carries nucleosome-protected cfDNA through methylation sequencing to interpretable features.

What to use now versus later

Use now

  • DSS as the primary coverage-aware methylation model.
  • bsseq/GenomicRanges for storage, visualization, and annotation.
  • Simple BAM-derived fragment metrics with explicit definitions.
  • clusterProfiler only after defining the correct tested-feature universe.
  • glmnet only for a deliberately small exploratory integrated signature.

Benchmark before adopting

  • FrEIA, because its assumptions and preprocessing were developed for cfDNA WGS rather than enzymatically converted libraries.
  • Tissue-deconvolution tools such as EpiDISH, because available reference matrices may be platform-, tissue-, or array-specific and may not transfer to plasma EM-seq.
  • FinaleMe/FRAGMA implementations, because the cited methods demonstrate important principles but are not automatic replacements for direct EM-seq methylation calls.

Add when longitudinal outcomes exist

  • lme4 or glmmTMB for repeated continuous or generalized outcomes;
  • survival for time-to-event baselines;
  • JMbayes2 for joint longitudinal–survival models; and
  • rsample with participant/group-aware splits for honest temporal or external validation.

Non-negotiable safeguards

  1. Keep participant IDs grouped across all resampling splits.
  2. Never select DMRs on the full dataset before cross-validation.
  3. Fit normalization, imputation, and scaling on training folds only.
  4. Preserve raw counts and coverage; do not model methylation percentages without depth awareness.
  5. Record software versions, reference genome checksum, annotations, pathway database date, and parameters.
  6. Report uncertainty, calibration, and feature stability alongside discrimination.
NotePractical recommendation

Start with a containerized Nextflow workflow producing one reviewed participant-level feature table. Use DSS for the primary methylation inference, transparent BAM summaries for first-pass fragmentomics, and elastic net only after reducing the feature space through pre-specified biology—not outcome-driven screening.

Follow the molecular pipeline → · See how the software stack evolved → · Understand the statistical procedures →

Back to top