Repository navigation
feat(methylation): EPIC v2 replicate table and cross-reactive list - #17
Merged
Merged
Conversation
- inst/extdata/epicv2-replicates.rds: one row per EPIC v2 probe whose cg id is replicated (11,616 probes over 5,222 ids) with probe_id, cpg, recommended (exactly one per cpg) and evidence; attr manifest = "20a1", attr source naming the inputs. Illumina's manifest has no preferred replicate (Rep_Num is only a synthesis counter), so the choice ranks the Peters et al. 2024 replicate verdicts (superior, then best sensitivity, then best precision, then no verdict or group mean, then inferior), with deterministic tie-breaks. Averaging is never offered. - inst/extdata/cross-reactive-probes.rds: adds source peters2024_epicv2, 37,034 bare ids (Peters 2024 CH_BLAT plus unmapped chr0 probes, flagged by the replicate that survives the collapse). The three existing lists are unchanged. - data-raw/build-epicv2-reference.R builds both from the Bioconductor EPIC v2 manifest/annotation packages and the published Additional file 4, pinned by md5. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
inst/extdata/epicv2-replicates.rds(new, 48 KB). Every EPIC v2 probe whose cg id is replicated: 11,616 probes over 5,222 ids. Columns areprobe_id(full IlmnID),cpg(bare id),recommended(exactly one per cpg) andevidence(the Peters 2024 verdict).attr(, "manifest") = "20a1", andattr(, "source")names the inputs.playbase.epigenetics::collapse_epicv2_replicates()reads this table and refuses one whose manifest doesn't match its annotation package.inst/extdata/cross-reactive-probes.rdsgets a fourth source,peters2024_epicv2, with 37,034 bare ids. The three existing lists are byte-for-byte the same rows.data-raw/build-epicv2-reference.Rbuilds both files fromIlluminaHumanMethylationEPICv2manifest/IlluminaHumanMethylationEPICv2anno.20a1.hg38(Bioconductor 3.19; both install on R 4.3 / minfi 1.48) and the published Peters et al. 2024 Additional file 4, pinned by md5.How the recommended replicate is chosen
Illumina's manifest doesn't designate a preferred replicate.
Rep_Numis only a synthesis counter. The only per-probe evaluation that has been published is Peters et al. 2024 (BMC Genomics 25:251), which labels every replicated probe inRep_results_by_NAME. The script ranks those labels, and the first match wins:Ties go first to a probe the annotation can place, then to the lowest replicate number, then to the probe id. This is DMRcate's
filter.strategy = "sensitivity"(same author), made deterministic. We never average replicates. Here is how the 5,222 recommendations break down: 684 superior probe, 1,181 superior by WGBS, 2,714 best sensitivity, 271 "group mean" sets and 372 "insufficient evidence" sets, the last two decided by tie-break. The 684 + 1,181 = 1,865 undisputed sets match the paper's count.Cross-reactive definition
The list takes Peters'
CH_BLAT == "Y"(30,627 in-silico cross-hybridising probes) plus Illumina's unmappedchr0probes, which is the paper's "37,346". Each is recorded by its bare id, and for a replicated id the flag comes from the replicate the collapse keeps. SNP-affected probes aren't added here, because the Methylome app masks those from the manifest's SNP columns for each array. Consumers should select sources by array:peters2024_epicv2describes v2 probe sequences.Note for pinning
The monorepo images currently ship playdata
4d53ff0, which has neithercross-reactive-probes.rdsnorewas-catalog.rds. This branch is based onmain(71fd13c), which has both.🤖 Generated with Claude Code