DNA methylation biomarkers-based pan-cancer classifier: predictive modeling for cancer classification.
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] § 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] § 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] § 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] § 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] § 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] § 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] § 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
- import configparser
- from os.path import join, exists
- from collections import defaultdict
- import joblib
- import numpy as np
- import pandas as pd
- from prefect import flow, task
- from sklearn.model_selection import GridSearchCV
- from sklearn.model_selection import StratifiedGroupKFold
- from sklearn.metrics import balanced_accuracy_score
- from src.models import mlp, nb, knn, dct, ext, rf, lr, svc
- config = configparser.ConfigParser()
- config.read("config/config.ini")
- @task(log_prints=True)
- def evaluate(X, y, grouping_factor, model, p_grid) -> list:
- outer_cv = StratifiedGroupKFold(n_splits=5, shuffle=True, random_state=101)
- inner_cv = StratifiedGroupKFold(n_splits=3, shuffle=True, random_state=101)
- scoring = []
- for cnt, (train_index, test_index) in enumerate(
- outer_cv.split(X, y, grouping_factor)
- ):
- X_train, y_train = X.iloc[train_index], y.iloc[train_index]
- X_test, y_test = X.iloc[test_index], y.iloc[test_index]
- print(f"Fold {cnt} --> {X_train.shape} - {X_test.shape}")
- grid_search = GridSearchCV(
- model, p_grid, scoring="balanced_accuracy", cv=inner_cv, n_jobs=3
- )
- grid_search.fit(X_train, y_train, groups=grouping_factor.iloc[train_index])
- print(f"Fold {cnt} --> Best params = {grid_search.best_params_}")
- predicted = grid_search.predict(X_test)
- bacc = balanced_accuracy_score(y_test, predicted)
- print(f"Fold {cnt} --> BACC = {bacc:.2f}")
- scoring.append(bacc)
- print(f"Average BACC --> {np.mean(scoring):.2f} +- {np.std(scoring):.2f}")
- return scoring
- @flow(name="Train models", log_prints=True)
- def train_models(outcome: str, stats_output: str, mt: str):
- X_train = pd.read_parquet(
- join(config["DIRECTORY TREE"]["trainData"], "X_cleaned_reduced.parquet")
- )
- if mt in ["l", "g"]:
- print(f"Filtering for {mt} markers")
- X_train = X_train[[var for var in X_train.columns if var.endswith(mt)]]
- elif mt == "raw":
- print(f"Filtering for {mt} markers")
- X_train = X_train[[var for var in X_train.columns if (not var.endswith("l")) and (not var.endswith("g"))]]
- else:
- print(f"Using combined dataset")
- mt = "combined"
- print(f"Training using {X_train.shape}")
- y_train = pd.read_csv(
- join(config["DIRECTORY TREE"]["trainData"], "sample_sheet.csv")
- ).set_index("Sample_Name")
- y_train = y_train.loc[X_train.index, ["case_id", outcome]]
- grouping_factor = y_train.case_id
- y_train = y_train[outcome]
- models = [mlp, lr, nb, knn, dct, ext, rf, svc]
- names = [
- "Multi-layer Perceptron",
- "Logistic Regression",
- "Naive Bayes",
- "K-Neighbors",
- "Decision Tree",
- "Extra Trees",
- "Random Forest",
- "SVC",
- ]
- scoring = defaultdict(list)
- for model, name in zip(models, names):
- print(f"Model --> {name}")
- model, p_grid = model()
- print(f"Parameters grid --> {p_grid}")
- scores = evaluate(X_train, y_train, grouping_factor, model, p_grid)
- scoring[name].extend(scores)
- scoring = pd.DataFrame(scoring)
- scoring.to_csv(join(config["FILES"][stats_output], f"scoring_{mt}.csv"))
- if __name__ == "__main__":
- #train_models("Sample_Group", "models_stats_path", "raw")
- #train_models("Sample_Group", "models_stats_path", "l")
- #train_models("Sample_Group", "models_stats_path", "g")
- train_models("Sample_Group", "models_stats_path", "combined")
4_models_training.py at commit f9e1692, under MIT · at the source
Overview
- Independent Clinical Epigenetics Laboratory, Pomeranian Medical University in Szczecin,Szczecin, Poland
- Regional Center for Digital Medicine, Pomeranian Medical University in Szczecin,Aleja Powstańców Wielkopolskich 72, Szczecin, 71-899 Poland
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
ea5171c569734cb34201bc7cd97717c251f9dc65, 30 July 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
8 files
- bin/
CNVs.R , R, 63 lines - bin/
normalize.py , Python, 87 lines - bin/
preprocess.R , R, 44 lines - metadata.py, Python, 23 lines
- requirements.R, R, 9 lines
- sesame_cache.R, R, 2 lines
- LICENSE, License, 201 lines
- README.md, Text, 81 lines
ClinicalEpigeneticsLaboratory/accs-workflows
f9e1692e02b064f370e94b97fdf0de8bc1681c4d, 31 July 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
12 files
- 1_collect_samples.py, Python, 359 lines, 1 match
- 2_collect_data.py, Python, 159 lines
- 3_build_frames.py, Python, 464 lines, 1 match
- 4_models_training.py, Python, 106 lines, 3 matches
- config/
__init__.py , Python, 1 line - config/
api_config.py , Python, 75 lines, 2 matches - src/
__init__.py , Python, 1 line - src/
models.py , Python, 116 lines - src/
processing.py , Python, 138 lines - tests.py, Python, 120 lines
- LICENSE, License, 21 lines
- README.md, Text, 117 lines
Zenodo 19072004
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
12 files
- 1_collect_samples.py, Python, 359 lines
- 2_collect_data.py, Python, 159 lines
- 3_build_frames.py, Python, 464 lines
- 4_models_training.py, Python, 106 lines
- config/
__init__.py , Python, 1 line - config/
api_config.py , Python, 75 lines - src/
__init__.py , Python, 1 line - src/
models.py , Python, 116 lines - src/
processing.py , Python, 138 lines - tests.py, Python, 120 lines
- LICENSE, License, 21 lines
- README.md, Text, 117 lines
Zenodo 19071942
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
12 files
- 1_collect_samples.py, Python, 359 lines
- 2_collect_data.py, Python, 159 lines
- 3_build_frames.py, Python, 464 lines
- 4_models_training.py, Python, 106 lines
- config/
__init__.py , Python, 1 line - config/
api_config.py , Python, 75 lines - src/
__init__.py , Python, 1 line - src/
models.py , Python, 116 lines - src/
processing.py , Python, 138 lines - tests.py, Python, 120 lines
- LICENSE, License, 21 lines
- README.md, Text, 117 lines
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:
- it points to the authors' code: ClinicalEpigeneticsLabor
atory/ , ClinicalEpigeneticsLaboraccs-brain-model atory/ , Zenodo 19072004accs-workflows
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://
BibTeX
@article{binkowski2026dn
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/
url = {https://
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/
VL - 18
IS - 1
SP - 66
SN - 1756-994X
PB - BioMed Central
DO - 10.1186/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1186/
"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":
"volume": "18",
"issue": "1",
"page": "66",
"DOI": "10.1186/
"PMID": "42152108",
"PMCID": "PMC13185202",
"ISSN": "1756-994X",
"publisher": "BioMed Central",
"URL": "https://
"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 bioinformaticsIn 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 cancerIn 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 medicineIn 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: GeroScienceIn 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 communicationsIn 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 communicationsIn 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 communicationsIn 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 biologyIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 4 repositories of the authors' code, each at its verified commit and with its license, 36 scripts, and 7 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:b44ecb1835ce6f73…
Add the badge to the code's README
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 -->
[](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:endHTML
<!-- 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".
- ClinicalEpigeneticsLaboratory/accs-brain-model: README.md on GitHub
- ClinicalEpigeneticsLaboratory/accs-workflows: README.md on GitHub
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.
