This vignette provides a visual overview of the main dnaEPICO functions roles. It shows how the major functions organise their inputs, internal processing stages, and outputs.
The diagrams are intended as orientation maps. They are useful when deciding which function to run and checking how outputs move between stages. For detailed arguments and executable examples, use the local-use and pipeline-use vignettes.
Read each overview as follows:
saveOutputs.dnaEPICO is built on core Bioconductor infrastructure for high-dimensional genomic data, with a focus on Illumina DNA methylation arrays. To read this vignette, we assume that you are already familiar with the general DNA methylation pipeline. If not, we recommend first reading this tutorial, which provides a practical introduction to the main concepts and analysis steps.
Preprocessing and quality control are performed using established Bioconductor tools, including minfi, ENmix, and wateRmelon. Downstream statistical modelling relies on base R and CRAN frameworks, including generalised linear models and linear mixed-effects models. Users are expected to have basic familiarity with R, Bioconductor pipelines, command-line execution, and Illumina IDAT file structures.
If you are asking yourself the question “Where do I start using Bioconductor?”, you might be interested in this blog post.
The lists of excluded probes depend on the Illumina methylation-array platform.
For Illumina HumanMethylationEPIC v2.0, use the cross-reactive probe-exclusion file from Peters et al. (2024).
For Illumina MethylationEPIC, also known as the 850k array, use the probe-exclusion resources from Pidsley et al. (2016). The supplementary files commonly used together are 13059_2016_1066_MOESM1_ESM.csv, 13059_2016_1066_MOESM4_ESM.csv, 13059_2016_1066_MOESM5_ESM.csv, and 13059_2016_1066_MOESM6_ESM.csv.
For Illumina HumanMethylation450k, use the cross-reactive and polymorphic probe resources from Chen et al. (2013).
Multiple probe-exclusion files can be supplied as a
semicolon-separated value in probeExclusionPath.
dnaEPICO reads probe IDs from each file, uses
probeExclusionIdColumn when supplied, or otherwise
auto-detects common probe-ID columns such as ProbeID,
TargetID, IlmnID, and Name. The
unique union of all probe IDs is then used to filter the normalised
object.
For EPICv2, setting
useEpicV2Manifest = TRUE also retrieves the expanded Peters
et al. manifest from AnnotationHub resource AH116484.
Probes flagged in selected manifest columns are added to the same
exclusion set. By default, probes flagged by
CH_WGBS_evidence, CH_BLAT, or
MissingPos are removed, while MismatchPos is
retained unless explicitly enabled.
The sections below describe the role of each main function in the package dnaEPICO. They are ordered according to the analysis path: preprocessing, surrogate-variable estimation, phenotype preparation, cross-sectional modelling, longitudinal modelling, and report generation.
preprocessingMinfiEwasWater() reads the phenotype table
and IDAT files, builds the methylation objects, performs quality control
and normalisation, filters probes, and estimates cell composition.
Its role in the package is to create analysis-ready methylation data:
RGSet, beta values,
M-values, copy-number values, quality-control figures, and
phenoLC.100%
svaEnmix() estimates surrogate variables from
control-probe information and adds them to the phenotype table. This
step helps represent technical variation that may otherwise influence
downstream association models.
Its role is to prepare covariates for batch and technical adjustment:
RGSet.100%
preprocessingPheno() aligns phenotype information with
methylation metrics. It prepares timepoint-specific data, combines
longitudinal records, and creates export-ready files for external
methylation-age tools.
Its role is to organise samples and methylation matrices for modelling:
100%
methylationGLM() fits cross-sectional methylation
association models. It is designed for analyses where one phenotype is
tested against CpG-level methylation while adjusting for selected
covariates.
Its role is to run single-timepoint association testing:
100%
methylationLME() fits longitudinal mixed-effects models.
It supports repeated-measures designs by including participant-level
random effects and timepoint-related terms.
Its role is to model methylation change across repeated observations:
100%
dnamReport() assembles the main tables, figures, logs,
and model summaries into a report website. It can be run after
preprocessing and modelling outputs have been written to disk.
Its role is to make the package outputs easier to inspect and share:
100%
The preprocessing function create quality-controlled methylation data and analysis-ready phenotype tables. The modelling functions fit cross-sectional and longitudinal association models. The report function gathers the resulting tables, figures, and logs into a browsable output.
In practice, the main functions are:
preprocessingMinfiEwasWater() to prepare
methylation objects and QC outputs,svaEnmix() when control-probe surrogate variables
are needed,preprocessingPheno() to prepare modelling
tables,methylationGLM() or methylationLME()
for association testing, anddnamReport() to review the completed outputs.Date the vignette was generated.
#> [1] "2026-06-09 16:59:23 UTC"
Wallclock time spent generating the vignette.
#> Time difference of 0.179 secs
R session information.
#> R version 4.6.0 (2026-04-24)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 24.04.4 LTS
#>
#> Matrix products: default
#> BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
#> LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so; LAPACK version 3.12.0
#>
#> locale:
#> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
#> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
#> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
#> [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
#> [9] LC_ADDRESS=C LC_TELEPHONE=C
#> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
#>
#> time zone: Etc/UTC
#> tzcode source: system (glibc)
#>
#> attached base packages:
#> [1] parallel stats4 stats graphics grDevices utils datasets
#> [8] methods base
#>
#> other attached packages:
#> [1] IlluminaHumanMethylation450kanno.ilmn12.hg19_0.6.1
#> [2] IlluminaHumanMethylation450kmanifest_0.4.0
#> [3] minfi_1.59.1
#> [4] bumphunter_1.55.1
#> [5] locfit_1.5-9.12
#> [6] iterators_1.0.14
#> [7] foreach_1.5.2
#> [8] Biostrings_2.81.3
#> [9] XVector_0.53.0
#> [10] SummarizedExperiment_1.43.0
#> [11] Biobase_2.73.1
#> [12] MatrixGenerics_1.25.0
#> [13] matrixStats_1.5.0
#> [14] GenomicRanges_1.65.0
#> [15] Seqinfo_1.3.0
#> [16] IRanges_2.47.2
#> [17] S4Vectors_0.51.3
#> [18] BiocGenerics_0.59.7
#> [19] generics_0.1.4
#> [20] dnaEPICO_0.99.30
#> [21] BiocStyle_2.41.0
#>
#> loaded via a namespace (and not attached):
#> [1] RColorBrewer_1.1-3 sys_3.4.3
#> [3] jsonlite_2.0.0 magrittr_2.0.5
#> [5] GenomicFeatures_1.65.0 rmarkdown_2.31
#> [7] BiocIO_1.23.3 vctrs_0.7.3
#> [9] multtest_2.69.0 memoise_2.0.1
#> [11] Rsamtools_2.29.0 DelayedMatrixStats_1.35.0
#> [13] RCurl_1.98-1.19 ENmix_1.49.0
#> [15] askpass_1.2.1 htmltools_0.5.9
#> [17] S4Arrays_1.13.0 BiocBaseUtils_1.15.1
#> [19] AnnotationHub_4.3.0 dynamicTreeCut_1.63-1
#> [21] curl_7.1.0 Rhdf5lib_2.1.0
#> [23] RPMM_1.25 SparseArray_1.13.2
#> [25] rhdf5_2.57.1 sass_0.4.10
#> [27] KernSmooth_2.23-26 nor1mix_1.3-3
#> [29] bslib_0.11.0 httr2_1.2.2
#> [31] plyr_1.8.9 impute_1.87.0
#> [33] cachem_1.1.0 buildtools_1.0.0
#> [35] GenomicAlignments_1.49.0 lifecycle_1.0.5
#> [37] pkgconfig_2.0.3 Matrix_1.7-5
#> [39] R6_2.6.1 fastmap_1.2.0
#> [41] digest_0.6.39 siggenes_1.87.0
#> [43] reshape_0.8.10 minfiData_0.59.0
#> [45] AnnotationDbi_1.75.0 irlba_2.3.7
#> [47] ExperimentHub_3.3.0 geneplotter_1.91.0
#> [49] RSQLite_3.53.1 base64_2.0.2
#> [51] filelock_1.0.3 httr_1.4.8
#> [53] abind_1.4-8 compiler_4.6.0
#> [55] beanplot_1.3.1 rngtools_1.5.2
#> [57] doParallel_1.0.17 bit64_4.8.2
#> [59] BiocParallel_1.47.0 DBI_1.3.0
#> [61] gplots_3.3.0 HDF5Array_1.41.0
#> [63] MASS_7.3-65 openssl_2.4.1
#> [65] rappdirs_0.3.4 DelayedArray_0.39.3
#> [67] rjson_0.2.23 caTools_1.18.3
#> [69] gtools_3.9.5 tools_4.6.0
#> [71] otel_0.2.0 rentrez_1.2.4
#> [73] glue_1.8.1 quadprog_1.5-8
#> [75] h5mread_1.5.0 restfulr_0.0.16
#> [77] nlme_3.1-169 rhdf5filters_1.25.0
#> [79] grid_4.6.0 cluster_2.1.8.2
#> [81] tzdb_0.5.0 preprocessCore_1.75.0
#> [83] tidyr_1.3.2 data.table_1.18.4
#> [85] hms_1.1.4 xml2_1.5.2
#> [87] BiocVersion_3.24.0 pillar_1.11.1
#> [89] limma_3.69.2 genefilter_1.95.0
#> [91] splines_4.6.0 dplyr_1.2.1
#> [93] BiocFileCache_3.3.0 lattice_0.22-9
#> [95] survival_3.8-6 rtracklayer_1.73.0
#> [97] bit_4.6.0 GEOquery_2.81.0
#> [99] annotate_1.91.0 tidyselect_1.2.1
#> [101] maketools_1.3.2 knitr_1.51
#> [103] xfun_0.58 scrime_1.3.7
#> [105] statmod_1.5.2 yaml_2.3.12
#> [107] evaluate_1.0.5 codetools_0.2-20
#> [109] cigarillo_1.3.0 tibble_3.3.1
#> [111] BiocManager_1.30.27 cli_3.6.6
#> [113] xtable_1.8-8 jquerylib_0.1.4
#> [115] Rcpp_1.1.1-1.1 dbplyr_2.5.2
#> [117] png_0.1-9 XML_3.99-0.23
#> [119] readr_2.2.0 blob_1.3.0
#> [121] mclust_6.1.2 doRNG_1.8.6.3
#> [123] sparseMatrixStats_1.25.0 bitops_1.0-9
#> [125] illuminaio_0.55.0 purrr_1.2.2
#> [127] crayon_1.5.3 rlang_1.2.0
#> [129] KEGGREST_1.53.0
As package developers, we try to explain clearly how to use our
packages and in which order to use the functions. But R and
Bioconductor have a steep learning curve, so it is critical
to learn where to ask for help. We would like to highlight the Bioconductor support site
as the main resource for getting help. Please remember to use the
dnaEPICO tag and check the older posts.
If you want to receive help, please provide a small reproducible example
and your session information so the source of the problem can be tracked
efficiently.