Repository navigation
Releases
methylarray 1.1.1
The epigenetic clocks are computed after the probe filter, as in Qi et al. 2025, and the volcano, clock weight and relatedness figures of the HTML report are easier to read. Clock values and accelerations change slightly; the probe filter and the association models give the same results as in 1.1.0.
Changed
- Epigenetic clocks are computed after the probe filter, as in Qi et al. 2025 and the studies that use their procedure, for every preprocessing route and profile. Clock CpGs removed by the filter take the reference means of dnaMethyAge, like CpGs that EPIC v2 does not measure.
--probe_filters nonekeeps them. Clock values and accelerations change slightly (clocks.tsv,clocks_coverage.tsv,clocks_weights.tsvand the biomarker tables built on them). - HTML report: the volcano plot labels, in each direction, the 10 CpGs at FDR < 0.05 with the smallest P, in a column beside the points so that the labels do not overlap. The figure of the largest clock weights has a legend for the sign of the weight.
Fixed
- HTML report: the relatedness figure shows the colour of every inferred relation in its legend, also of relations without pairs (before, only the relations present had a colour key).
methylarray 1.1.0
The sample and probe rules of Qi et al. 2025 as -profile qi, a choice of which probe filter steps apply, and a restructured HTML report. With the default settings, the probe filter and the association models give the same results as in 1.0.2.
Added
-profile qi: the sample QC and probe rules of Qi et al. 2025, with the EPIC v2 counterparts of their EPIC v1 probe lists.--exclude_probes: a list of probes or CpGs to remove, counted as its own step of the probe attrition.--illumina_filter: remove the probes of the Illumina lists (--illumina_flagged_probes,--illumina_mapping_inaccuracy) instead of only counting them.--ewas_outlier_iqr: set extreme M-values of a CpG to missing before the association tests (off by default).- HTML report: UpSet plots of the reasons probes are removed for, the CpGs that clocks and scores share, the clock CpGs with a SNP, a cis-meQTL, a removed probe or an association, the missing phenotypes and model variables, and the hits that model contrasts share.
biomarkers_missing.tsvandewas_<model>_missing.tsv: the arrays per combination of missing phenotypes and of missing model variables.--probe_filters: apply only the named probe filter steps (or none); the others are counted as report-only.--replicate_probe_strategy best: keep one probe per CpG, with the others as their own step of the probe attrition.--ewas_cells idol: the IDOL cell fractions as the cell covariates of the association models.
Changed
- Workflow diagram: the probe filter is a station of its own, with the probe lists as its input.
- HTML report: nine numbered parts with a contents list that opens for the part being read, a summary with links, one section per association model, tabs for figures that belong together, buttons to open or close all tables, and clocks under the names they are known by. Explanations are shorter, and the phenotype heatmaps have one row per phenotype.
Fixed
- Cell fractions: reference CpGs on chrX and chrY are left out also when the data keep them (
--keep_sex_chr, or--probe_filterswithoutsex_chromosome). Before, they changed the 7-type and 12-type fractions and with them the intrinsic age acceleration. --replicate_probe_strategy none: cell fractions, gene sets, KnowYourCG, meQTL counts and regions now accept one row per probe.- Association summary: a run in which no model has enough arrays no longer stops, and the model comparison is in a fixed order.
- HTML report: a phenotype table with many columns no longer stops the report. The quartile-group figure is split into parts, the phenotype heatmaps widen with the number of phenotypes, and no figure grows above the 50 inch limit of ggsave.
Cite with the Zenodo concept DOI 10.5281/zenodo.24399752, which resolves to the latest version.
methylarray 1.0.2
Fixes the bacon-corrected P values of the association models; no other result changes.
Fixed
- EWAS: the bacon-corrected P value of a CpG with a very large positive t statistic (P below about 1e-16) was far too small, because the z value was computed through a probability that rounds to 1. It is now computed on the log scale, the same for both signs. Other bacon-corrected values can shift slightly, because the bacon sampler reacts to changes in the last decimals of its input.
Cite with the Zenodo concept DOI 10.5281/zenodo.24399752, which resolves to the latest version.
methylarray 1.0.1
Report readability release: no change to any result.
Added
- Zenodo archive of each release, with DOI 10.5281/zenodo.24399752 for all versions (1.0.0: 10.5281/zenodo.24399753); README badge and
CITATION.cff. - Zenodo DOI in the reports: the pipeline manifest carries the concept DOI, so the methods text of the MultiQC and the HTML report cites it, and the HTML report names it with the pipeline version.
- HTML report: a search box above the contents that highlights every match, steps through them and opens the tables that hold one.
- HTML report: a template of a gene and its CpG island (island, shore, shelf, open sea; TSS1500, TSS200, 5' and 3' UTR, first and other exons, introns, intergenic) before the first genomic context figure, to read those figures by.
Changed
- HTML report: the contents are on the left and the report uses the rest of the page width.
- HTML report: every table is a numbered toggle with its name in bold, closed until clicked; this includes the software versions.
- HTML report: figures are embedded as vector graphics (SVG), or as the 300 dpi PNG when they hold more than 5,000 points, so they stay sharp when zoomed; they were 110 dpi images before.
- HTML report: the quartile-group figure has the trend stars in their own column inside each panel and the colour legend below the panels; the PCA association heatmap has vertical PC labels and grows with the number of variables; the methylation level figure of the hits is horizontal so its group labels do not overlap.
- Methods text (MultiQC and HTML report): one point per analysis step instead of one paragraph, the command line with one option per line and wrapped, and the references in a short APA style (first author and "et al." for three or more authors, DOI as a link).
Cite with the Zenodo concept DOI 10.5281/zenodo.24399752, which resolves to the latest version.
methylarray 1.0.0
Documentation: https://bhagesh-h.github.io/methylarray/
Initial release of bhagesh-h/methylarray, created with the nf-core template.
Added
- Samplesheet validation for IDAT input: matching red and green files, unique IDATs, Sentrix ID and position from the file names, manual exclusions with a reason.
- Optional phenotype table (
--phenotypes) and model definitions (--models), checked against the samplesheet and each other before any task starts. - SeSAMe preprocessing (
--preprocessing sesame): sesameData cache (SESAME_CACHE, reusable offline with--sesame_cache), per-arrayprepSesame(SESAME_PREPROCESS, defaultQCDPB) and one HDF5-backed SummarizedExperiment with the sample QC statistics (SESAME_BUILDSE), plus a MultiQC general statistics table. - minfi, ENmix and combined preprocessing (
--preprocessing minfi|enmix|combined, #10): oneMINFI_PREPROCESSmodule with Noob, Funnorm, quantile or SWAN normalisation (--minfi_norm), ENmix oob background with RELIC and RCP (optional--enmix_quantile), and the SeSAMe masks for the combined route. All routes write the same SummarizedExperiment and never drop arrays or probes. - Sample QC (#12): ewastools control metrics against Illumina's thresholds, X/Y intensities and sex prediction, SNP genotypes with contamination scores and identity checks against
replicate_group(EWASTOOLS_QC), and one status per array (PASS,FLAG,FAIL,EXCLUDED) with its reasons (SAMPLEQC_SUMMARY), inqc/sample_qc.tsv,qc/sample_qc_retained.txtand the MultiQC report. New parameters--max_undetected_fraction,--snp_outlier_threshold,--skip_ewastoolsand--ewastools_source. - Probe annotation and filtering (#14): one EPIC v2 probe annotation table from the Peters et al. 2024 extended manifest and the Zhou lab InfiniumAnnotation mask (
PROBES_ANNOTATE), and a probe filter on the arrays that passed sample QC (PROBES_FILTER): probe type, non-CG, no position, sex chromosomes, detection and bead-count failure fractions, SNP mask by population, Zhou general mask and cross-hybridisation, each counted in an attrition table and listed per probe. Manifest position mismatches and poor titration are reported, never removed. Replicate probes are collapsed to CpGs by mean; an uncollapsed matrix keeps the cross-hybridising probes for DMR remapping. M-values from clipped betas. - Blood cell-type composition (#16): EpiDISH RPC with the 12-type
cent12CTreference (six aggregated lineages) and the 7-typecentDHSbloodDMCreference on the filtered CpG-level data (EPIDISH_RPC), reference CpGs matched through EPIC v1 and 450K IDs, coverage checked (--min_reference_coverage), MultiQC stacked bar plot.--tissue otherskips it. - Epigenetic clocks (#18): dnaMethyAge clocks (Horvath, Hannum, PhenoAge, skin and blood, Zhang, DNAmTL, mortality score, PC clocks, DNAmIC, epiTOC2) and DunedinPACE on the detection-masked CpG-level betas (
CLOCKS_COMPUTE), clock CpGs matched through EPIC v1 and 450K IDs, coverage per clock, age acceleration and intrinsic age acceleration. Both packages are installed from pinned source packages (--dnamethyage_source,--dunedinpace_source). - Exploratory analysis (#20): control-probe PCs from the ewastools control intensities (Lehne et al. 2015,
--n_ctrl_pcs) and a PCA of the most variable CpGs (--n_variable_cpgs,--n_pcs, random matrix theory by default) with the association of each component with technical, biological and phenotype variables (EXPLORATION_PCA); MultiQC heatmap, scree plot and PC1/PC2 scatter.EWASTOOLS_QCalso writes the control-probe intensities. - Epigenome-wide association (#22): one limma model per entry of
--modelson the filtered CpG-level M-values (EWAS_LIMMA): covariate tokens (@cells,@ctrlpcs,@technical,@sex), subset, trait transforms, complete cases with reasons, design check (trait against plate and Sentrix row, VIF),eBayes(trend, robust),duplicateCorrelationfor blocks, delta-beta, genomic lambda and bacon, FDR,--p_epigenome_wideand--p_suggestivethresholds; one summary table across models (EWAS_SUMMARY). - Differentially methylated regions (#24): DMRcate kernel smoothing on the EWAS statistics (no run-time annotation downloads) and dmrff (pinned source package) per tested model, and their consensus (overlap, same direction) with BED output (
DMR_CALL);--skip_dmr,--dmr_lambda,--dmr_c,--dmr_min_cpgs,--dmrff_source. - Gene set enrichment (#26): missMethyl
gometh(GO; KEGG downloaded at run time, recorded as not run when unavailable) andgsamethon GMT collections (default MSigDB 2025.1 Hallmark and Reactome, staged files) for the CpGs at FDR < 0.05 of every tested model, against all tested CpGs, with the probe annotation passed asanno(ENRICHMENT_MISSMETHYL). - DNA methylation scores (#28): smoking, alcohol and BMI (McCartney et al. 2018) and IL-6 (Stevenson et al. 2021) as weighted sums over the published CpG sets stored in
assets/dnam_scores(CC BY 4.0, sources listed), on the detection-masked CpG-level betas with legacy-ID matching and coverage per score (DNAM_SCORES);dnam_smokingis now the@smokingmodel covariate.--dnam_scores,--skip_dnam_scores. - HTML analysis report (#30):
REPORT_QUARTOrendersreport/methylarray_report.htmlwith Quarto from the result tables, software versions, methods text and parameters (assets/report/methylarray_report.qmd);--skip_report. MultiQC sections follow the pipeline order. - GEO submission files (#32,
--export_geo): processed matrix (normalised beta values with detection p-values), unnormalised methylated and unmethylated signal from the IDAT files, and a sample table with the IDAT file names, for the arrays that passed sample QC (EXPORT_GEO). - Study-wide threshold across models (#32):
EWAS_SUMMARYreports the effective number of independent tests over the tested models and contrasts (Meff, Galwey 2009, from the correlation of their t statistics),p_study_wideand its hits; shown in the report. - PCA outlier flags (#32):
EXPLORATION_PCAwritespca_outliers.tsv, a robust Mahalanobis distance on PC1 and PC2 with a flag above the chi-square 0.999 quantile. Report only; shown in MultiQC and the report. - Clock, score and cell associations (
BIOMARKERS_ASSOCIATE): agreement of the accelerations and scores, cell fractions against them and against age, sex and the phenotypes, accelerations against the DNA plate and BeadChip, every acceleration and score against every phenotype (plain and with cells held), and quartile groups of acceleration with trend tests; aggregates only (biomarkers/), with MultiQC heatmaps. - Standardised weights of every weighted-sum clock and DNA methylation score (
clocks_weights.tsv,dnam_scores_weights.tsv) and the number of clock CpGs with a common SNP. - SNP genotype summaries from the ewastools SNP probes (
ewastools_snp_summary.tsv,ewastools_snp_histograms.tsv): heterozygosity at autosomal and X-like SNPs, highest pairwise genotype agreement; MultiQC table. - SNP relatedness (
EWASTOOLS_QC): identity by state and likelihood ratios for identical and first-degree pairs of arrays from the SNP genotypes (ewastools_relatedness.tsv.gz,ewastools_relatedness_summary.tsv), the related arrays of each array insample_qc.tsv(relatives), a MultiQC table of the related and replicate pairs and the identity-by-state plot in the report. Report only; the expected strength of evidence for a true first-degree pair is reported, since the SNP probes of the array detect identical pairs reliably but most relatives only with more SNPs. - Contamination sensitivity (
BIOMARKERS_ASSOCIATE): the ewastools SNP outlier score against every acceleration and score (biomarkers_contamination.tsv, MultiQC table), and the phenotype associations again without the analysed arrays above a robust cutoff (median plus three MADs), as thelow contaminationversion inbiomarkers_phenotypes.tsv; report plot of the score against the main clocks. - Genetic ancestry components (
ANCESTRY_PCS, after the EpiAnceR+ approach): PCA of the CpG probes with a common SNP, residualised for the control-probe PCs, cell fractions, sex and age, together with the rs-probe genotypes;exploration/ancestry_pcs*.tsv, the@ancestrymodel covariate token,--n_ancestry_pcsand--skip_ancestry, MultiQC scatter and scree plots.BIOMARKERS_ASSOCIATErelates every acceleration and score to the components (biomarkers_ancestry.tsv, MultiQC heatmap) and repeats the phenotype associations with them held (ancestry held). - Genomic context enrichment (
KYCG_CACHE,ENRICHMENT_KYCG): KnowYourCG on the CpGs at FDR < 0.05 of every tested model (all, higher and lower methylation) against all tested CpGs, in the EPIC v2 knowledgebases (chromatin states, TFBS, histone marks, CTCF, A/B compartments, imprinting DMRs, gene features) staged from ExperimentHub once per run;enrichment/<model>/kycg_<model>.tsv, MultiQC table and report dot plots;--kycg_databases,--kycg_cache,--skip_kycg. - Methylation QTLs (
--meqtl,--meqtl_p;MEQTL_PREPARE): a user-supplied meQTL table (for example GoDMC) gives the CpGs with a cis-meQTL, matched to EPIC v2 through the legacy IDs. The clock weights get ameqtlcolumn, every clock is computed again with the CpGs that have a common SNP or a cis-meQTL held at their mean (clocks_robust.tsv, genotype-robust clocks) and the phenotype associations are repeated with them (genotype-robust,biomarkers_robust.tsv), andEWAS_SUMMARYreports the hits with a cis-meQTL per model (ewas_summary_meqtl.tsv). Report section on the genetic influence on the clocks. - Variance partition (
VARIANCE_PARTITION): variancePartition linear mixed models on the--variance_partition_cpgsmost variable CpGs, with plate, BeadChip, Sentrix row, batch and sex as random effects and age and five cell lineages as fixed effects; `ex...