OSCR

DNA methylation biomarkers-based pan-cancer classifier: predictive modeling for cancer classification.

Code ↔ Paper

7 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

5 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 7 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › Models training and tuning ↔ 4_models_training.py, lines 49 to 99 · score 0.87 · multi layer perceptron, logistic regression, decision tree, random forest, model training, Bayes · block oscr:b:6K5ZZES0Z3YPT-R · Report a mismatch
  2. [2] § Results › Simple ML models can outperform more complex algorithms ↔ 4_models_training.py, lines 49 to 99 · score 0.70 · multi layer perceptron, logistic regression, Models Training, SVC, score · block oscr:b:6K5ZZES0Z3YPT-R · Report a mismatch
  3. [3] § Methods › Data characteristics – pancancer classifier ↔ config/api_config.py, the whole file · a weak match · score 0.67 · bone marrow, tumor grade, age, metastatic, platform, diagnosis · block oscr:b:MWMGXA1V0CE3P-G · Report a mismatch
  4. [4] § Results › Applicability of pancancer classifier for non-invasive cancer detection ↔ config/api_config.py, the whole file · a weak match · score 0.60 · bone marrow, primary tumor, field, human, metastasis, diagnostics · block oscr:b:MWMGXA1V0CE3P-G · Report a mismatch
  5. [5] § Methods › Data characteristics – pancancer classifier ↔ 1_collect_samples.py, lines 142 to 153 · score 0.56 · acute myeloid leukemia, diagnosis · block oscr:b:14DQ66F5H6KRC-Q · Report a mismatch
  6. [6] § Methods › Anomaly detection ↔ 3_build_frames.py, lines 349 to 381 · score 0.51 · Local Outlier Factor, fitted, LOF, neighbors, training · block oscr:b:WGQ6165D5Q0QF-N · Report a mismatch
  7. [7] § Results › Simple ML models can outperform more complex algorithms ↔ 4_models_training.py, lines 21 to 46 · score 0.50 · balanced accuracy, Model training, outer, folds, inner, BACC · block oscr:b:5QY9EYD2TH7RB-Z · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 106 lines · 3.4 KB · MIT · 3 matches

  1. import configparser
  2. from os.path import join, exists
  3. from collections import defaultdict
  4. import joblib
  5. import numpy as np
  6. import pandas as pd
  7. from prefect import flow, task
  8. from sklearn.model_selection import GridSearchCV
  9. from sklearn.model_selection import StratifiedGroupKFold
  10. from sklearn.metrics import balanced_accuracy_score
  11. from src.models import mlp, nb, knn, dct, ext, rf, lr, svc
  12. config = configparser.ConfigParser()
  13. config.read("config/config.ini")
  14. @task(log_prints=True)
  15. def evaluate(X, y, grouping_factor, model, p_grid) -> list:
  16. outer_cv = StratifiedGroupKFold(n_splits=5, shuffle=True, random_state=101)
  17. inner_cv = StratifiedGroupKFold(n_splits=3, shuffle=True, random_state=101)
  18. scoring = []
  19. for cnt, (train_index, test_index) in enumerate(
  20. outer_cv.split(X, y, grouping_factor)
  21. ):
  22. X_train, y_train = X.iloc[train_index], y.iloc[train_index]
  23. X_test, y_test = X.iloc[test_index], y.iloc[test_index]
  24. print(f"Fold {cnt} --> {X_train.shape} - {X_test.shape}")
  25. grid_search = GridSearchCV(
  26. model, p_grid, scoring="balanced_accuracy", cv=inner_cv, n_jobs=3
  27. )
  28. grid_search.fit(X_train, y_train, groups=grouping_factor.iloc[train_index])
  29. print(f"Fold {cnt} --> Best params = {grid_search.best_params_}")
  30. predicted = grid_search.predict(X_test)
  31. bacc = balanced_accuracy_score(y_test, predicted)
  32. print(f"Fold {cnt} --> BACC = {bacc:.2f}")
  33. scoring.append(bacc)
  34. print(f"Average BACC --> {np.mean(scoring):.2f} +- {np.std(scoring):.2f}")
  35. return scoring
  36. @flow(name="Train models", log_prints=True)
  37. def train_models(outcome: str, stats_output: str, mt: str):
  38. X_train = pd.read_parquet(
  39. join(config["DIRECTORY TREE"]["trainData"], "X_cleaned_reduced.parquet")
  40. )
  41. if mt in ["l", "g"]:
  42. print(f"Filtering for {mt} markers")
  43. X_train = X_train[[var for var in X_train.columns if var.endswith(mt)]]
  44. elif mt == "raw":
  45. print(f"Filtering for {mt} markers")
  46. X_train = X_train[[var for var in X_train.columns if (not var.endswith("l")) and (not var.endswith("g"))]]
  47. else:
  48. print(f"Using combined dataset")
  49. mt = "combined"
  50. print(f"Training using {X_train.shape}")
  51. y_train = pd.read_csv(
  52. join(config["DIRECTORY TREE"]["trainData"], "sample_sheet.csv")
  53. ).set_index("Sample_Name")
  54. y_train = y_train.loc[X_train.index, ["case_id", outcome]]
  55. grouping_factor = y_train.case_id
  56. y_train = y_train[outcome]
  57. models = [mlp, lr, nb, knn, dct, ext, rf, svc]
  58. names = [
  59. "Multi-layer Perceptron",
  60. "Logistic Regression",
  61. "Naive Bayes",
  62. "K-Neighbors",
  63. "Decision Tree",
  64. "Extra Trees",
  65. "Random Forest",
  66. "SVC",
  67. ]
  68. scoring = defaultdict(list)
  69. for model, name in zip(models, names):
  70. print(f"Model --> {name}")
  71. model, p_grid = model()
  72. print(f"Parameters grid --> {p_grid}")
  73. scores = evaluate(X_train, y_train, grouping_factor, model, p_grid)
  74. scoring[name].extend(scores)
  75. scoring = pd.DataFrame(scoring)
  76. scoring.to_csv(join(config["FILES"][stats_output], f"scoring_{mt}.csv"))
  77. if __name__ == "__main__":
  78. #train_models("Sample_Group", "models_stats_path", "raw")
  79. #train_models("Sample_Group", "models_stats_path", "l")
  80. #train_models("Sample_Group", "models_stats_path", "g")
  81. train_models("Sample_Group", "models_stats_path", "combined")

4_models_training.py at commit f9e1692, under MIT · at the source

Overview

Authors: Jan Bińkowski1,2, Tomasz K. Wojdacz1,2
  1. Independent Clinical Epigenetics Laboratory, Pomeranian Medical University in Szczecin,Szczecin, Poland
  2. Regional Center for Digital Medicine, Pomeranian Medical University in Szczecin,Aleja Powstańców Wielkopolskich 72, Szczecin, 71-899 Poland
Institutions: Pomeranian Medical University (Poland); University of Szczecin (Poland)
Journal: Genome medicine, volume 18, issue 1, article 66
Dates: received 19 August 2025; accepted 3 April 2026; published online 19 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1186/s13073-026-01650-w · PMID 42152108 · PMCID PMC13185202 · OpenAlex W4413992593
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: genetics / omics (modality), human (organism), other condition (population), clinical / translational (subfield)
Methods: Machine learning, Statistics
Keywords: DNA methylation, Machine-learning, Biomarkers, Cancer, Classification
MeSH: Biomarkers, Tumor*, DNA Methylation*, Neoplasms*, Algorithms, Classification Algorithms, Humans, Machine Learning, Prediction Algorithms, Predictive Learning Models (* major topic)
Topic: Cancer Genomics and Diagnostics (Cancer Research, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: National Science Centre (2021/43/B/NZ2/02979)
Citations: cited by 2 papers (Europe PMC); 86 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repositories

Its files are read in the Code ↔ Paper reader above, with 7 matches between paragraphs and lines of code.

ClinicalEpigeneticsLaboratory/accs-brain-model

License: Apache-2.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: ea5171c569734cb34201bc7cd97717c251f9dc65, 30 July 2025
Languages: R (4), Python (2)
Size: 19 files, 6 scripts
Software Heritage: not archived
Found in: “Availability of data and materials”
Holds: README, license file, environment (Dockerfile, requirements.txt)
Not found: CITATION.cff, tests, continuous integration, documentation
Tools: Plotly (3 files), randomForest (2 files), ggplot2 (1 file), NumPy (1 file), pandas (1 file), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
8 files

ClinicalEpigeneticsLaboratory/accs-workflows

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: f9e1692e02b064f370e94b97fdf0de8bc1681c4d, 31 July 2025
Languages: Python (10)
Size: 16 files, 10 scripts
Software Heritage: not archived
Found in: “Availability of data and materials”
Holds: README, license file, environment (poetry.lock, pyproject.toml)
Not found: CITATION.cff, tests, continuous integration, documentation
Tools: pandas (6 files), NumPy (5 files), scikit-learn (5 files), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
12 files

Zenodo 19072004

License: CC-BY-4.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Availability of data and materials”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: pandas (6 files), NumPy (5 files), scikit-learn (5 files), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
12 files
At the source:

Zenodo 19071942

License: CC-BY-4.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: the references
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: pandas (6 files), NumPy (5 files), scikit-learn (5 files), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
12 files
At the source:

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 4 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 36 scripts, each with its path and the digest of its content;
  • 7 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1186/s13073-026-01650-w.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 5 keywords, 9 MeSH terms, 1 funder, 81 references.

Cite

This paper

Bińkowski, J., & Wojdacz, T. K. (2026). DNA methylation biomarkers-based pan-cancer classifier: predictive modeling for cancer classification. Genome medicine, 18(1), 66. https://doi.org/10.1186/s13073-026-01650-w

BibTeX

@article{binkowski2026dna,
author = {Bińkowski, Jan and Wojdacz, Tomasz K.},
title = {{DNA methylation biomarkers-based pan-cancer classifier: predictive modeling for cancer classification}},
journal = {Genome medicine},
year = {2026},
month = may,
volume = {18},
number = {1},
pages = {66},
publisher = {BioMed Central},
issn = {1756-994X},
doi = {10.1186/s13073-026-01650-w},
url = {https://doi.org/10.1186/s13073-026-01650-w},
pmid = {42152108},
pmcid = {PMC13185202}
}

RIS

TY - JOUR
AU - Bińkowski, Jan
AU - Wojdacz, Tomasz K.
TI - DNA methylation biomarkers-based pan-cancer classifier: predictive modeling for cancer classification
T2 - Genome medicine
J2 - Genome Med
PY - 2026
DA - 2026/05/19
VL - 18
IS - 1
SP - 66
SN - 1756-994X
PB - BioMed Central
DO - 10.1186/s13073-026-01650-w
UR - https://doi.org/10.1186/s13073-026-01650-w
LA - en
ER -

CSL-JSON

{
"id": "10.1186/s13073-026-01650-w",
"type": "article-journal",
"title": "DNA methylation biomarkers-based pan-cancer classifier: predictive modeling for cancer classification",
"container-title": "Genome medicine",
"author": [
{
"family": "Bińkowski",
"given": "Jan"
},
{
"family": "Wojdacz",
"given": "Tomasz K."
}
],
"container-title-short": "Genome Med",
"volume": "18",
"issue": "1",
"page": "66",
"DOI": "10.1186/s13073-026-01650-w",
"PMID": "42152108",
"PMCID": "PMC13185202",
"ISSN": "1756-994X",
"publisher": "BioMed Central",
"URL": "https://doi.org/10.1186/s13073-026-01650-w",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
19
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1186/s12859-022-04764-1 [code]
Comprehensive study of semi-supervised learning for DNA methylation-based supervised classification of central nervous system tumors.
Journal: BMC bioinformatics
In common: randomForest, ggplot2, scikit-learn, 3 other tools, genetics / omics, other condition, 4 references
[2] doi:10.1038/s43018-025-00976-5 [code]
crossNN is an explainable framework for cross-platform DNA methylation-based classification of tumors.
Journal: Nature cancer
In common: Plotly, ggplot2, scikit-learn, 2 other tools, genetics / omics, other condition, 3 references
[3] doi:10.1038/s41591-024-02969-w [code]
A prognostic neural epigenetic signature in high-grade glioma.
Journal: Nature medicine
In common: Plotly, ggplot2, scikit-learn, 3 other tools, clinical / translational, genetics / omics, other condition, 2 references
[4] doi:10.1007/s11357-024-01376-w [code]
Complementary value of molecular, phenotypic, and functional aging biomarkers in dementia prediction.
Journal: GeroScience
In common: randomForest, Plotly, ggplot2, 4 other tools, clinical / translational, genetics / omics
[5] doi:10.1093/bioinformatics/btag592 [code]
Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.
Journal: Bioinformatics (Oxford, England)
In common: randomForest, Plotly, ggplot2, 4 other tools, genetics / omics, other condition
[6] doi:10.1002/advs.202515675 [code]
Mendelian Randomization and Double Machine Learning Modeling Reveal Brain Imaging-Derived Phenotypes as Functional Contributors to 18 Autoimmune Inflammatory Diseases.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: randomForest, Plotly, ggplot2, 4 other tools, genetics / omics, other condition
[7] doi:10.1038/s41467-026-77170-3 [code]
DNA methylation profiling identifies long-range epigenetic silencing of clustered protocadherins as a key determinant of meningioma progression.
Journal: Nature communications
In common: randomForest, ggplot2, genetics / omics, other condition, 3 references
[8] doi:10.1038/s41467-025-57078-0 [code]
Explainable artificial intelligence of DNA methylation-based brain tumor diagnostics.
Journal: Nature communications
In common: randomForest, clinical / translational, genetics / omics, other condition, 3 references
[9] doi:10.1038/s41467-025-64904-y [code]
Genetic underpinnings and causal effects of brain structure and function on chronic pain intensity.
Journal: Nature communications
In common: randomForest, Plotly, ggplot2, 4 other tools, genetics / omics
[10] doi:10.1038/s42003-025-08859-2 [code]
Single-cell DNA methylation analysis tool Amethyst resolves distinct non-CG methylation patterns in human astrocytes and oligodendrocytes.
Journal: Communications biology
In common: randomForest, Plotly, ggplot2, 4 other tools, genetics / omics

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1186/s13073-026-01650-w.svg)](https://openscicode.org/badge/doi/10.1186/s13073-026-01650-w)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1186/s13073-026-01650-w.svg
   :target: https://openscicode.org/badge/doi/10.1186/s13073-026-01650-w
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1186/s13073-026-01650-w"><img src="https://openscicode.org/badge/doi/10.1186/s13073-026-01650-w.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.