OSCR

How Standardized Is Transcranial Magnetic Stimulation Treatment for Depression? Large-Cohort Modeling Reveals Systematic Dosimetric Variability.

Code ↔ Paper

2 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.

The 2 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
  1. [1] § Methods › E-Field Simulation ↔ run_efield_modeling.py, lines 60–101 · score 0.70 · SimNIBS, positions F3, EEG, volume, simulation, head
  2. [2] § Methods › Statistical Analysis ↔ get_intracranial_volume.m, the whole file · a weak match · score 0.52 · intracranial volume, ICV, variable

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 101 lines · 3 KB · no license · 1 match

  1. import csv
  2. from pathlib import Path
  3. from simnibs import sim_struct, run_simnibs
  4. # A very large value used here to define the coil y-direction.
  5. # Replace this with a more explicit anatomical or electrode reference if needed.
  6. HUGE_FLOAT = 1e100
  7. # Replace this with your local CHARM directory before running the script.
  8. # Example: Path("/path/to/charm/hcp")
  9. charm_path = Path("path/to/charm/hcp")
  10. # Relative path to the coil model file.
  11. # Update this if your coil file is stored elsewhere.
  12. coil_file = Path("Drakaki_BrainStim_2022") / "MagVenture_Cool-B65.ccd"
  13. # Output directory for simulation results.
  14. output_root = Path("simulation_outputs")
  15. def get_coords(subject_path):
  16. """
  17. Read C3 and F3 coordinates from the subject-specific EEG position file.
  18. Parameters
  19. ----------
  20. subject_path : Path
  21. Path to the subject's m2m directory.
  22. Returns
  23. -------
  24. tuple
  25. ((c3_x, c3_y, c3_z), (f3_x, f3_y, f3_z))
  26. """
  27. csv_file = subject_path / "eeg_positions" / "EEG10-10_UI_jurak_2007.csv"
  28. with csv_file.open(newline="") as csvfile:
  29. reader = csv.reader(csvfile)
  30. rows = list(reader)
  31. # C3 coordinates (row 34, index 33)
  32. c3_x = float(rows[33][1])
  33. c3_y = float(rows[33][2])
  34. c3_z = float(rows[33][3])
  35. # F3 coordinates (row 12, index 11)
  36. f3_x = float(rows[11][1])
  37. f3_y = float(rows[11][2])
  38. f3_z = float(rows[11][3])
  39. return (c3_x, c3_y, c3_z), (f3_x, f3_y, f3_z)
  40. # Create the output directory if it does not already exist.
  41. output_root.mkdir(exist_ok=True)
  42. # Automatically detect subject folders inside the CHARM directory.
  43. subjects = [folder.name for folder in charm_path.iterdir() if folder.is_dir()]
  44. # Run one TMS session per subject.
  45. for sub in subjects:
  46. print(f"Running simulation for subject: {sub}")
  47. # Initialize a new SimNIBS session for the current subject.
  48. s = sim_struct.SESSION()
  49. s.map_to_surf = True
  50. s.map_to_fsavg = True
  51. s.map_to_vol = True
  52. s.map_to_MNI = True
  53. s.fields = "eEjJ"
  54. # Path to the subject-specific head model directory.
  55. s.subpath = str(charm_path / sub / f"m2m_{sub}")
  56. # Subject-specific output directory.
  57. s.pathfem = str(output_root / sub)
  58. s.open_in_gmsh = False
  59. # Create a TMS simulation list and assign the coil model.
  60. tmslist = s.add_tmslist()
  61. tmslist.fnamecoil = str(coil_file)
  62. # Read C3 and F3 coordinates from the EEG file.
  63. (c3_x, c3_y, c3_z), (f3_x, f3_y, f3_z) = get_coords(Path(s.subpath))
  64. # Add TMS position at C3.
  65. pos_c3 = tmslist.add_position()
  66. pos_c3.centre = [c3_x, c3_y, c3_z]
  67. pos_c3.pos_ydir = [HUGE_FLOAT, HUGE_FLOAT, 0.0]
  68. pos_c3.didt = 75e6
  69. # Add TMS position at F3.
  70. pos_f3 = tmslist.add_position()
  71. pos_f3.centre = [f3_x, f3_y, f3_z]
  72. pos_f3.pos_ydir = [HUGE_FLOAT, HUGE_FLOAT, 0.0]
  73. pos_f3.didt = 89e6
  74. # Run the simulation for the current subject.
  75. run_simnibs(s)
  76. print(f"Finished simulation for subject: {sub}")

run_efield_modeling.py at commit 1371962, no license · at the source

Overview

Authors: Bella Bingbing Zhang1, Tim Tianze Lin1, Penny Ping Qin1, Rebecca Laidi Kan1, Adam Weili Xia1, Minxia Jin1,2, Yinghu Peng3, Daniel Keeser4,5,6, on Behalf of CDP Working Group, Frank Padberg4,7, Martin Tik8,9, Tifei Yuan10, Benjamin Becker11,12, Frank Fan Zhu13, Georg S. Kranz1,14,15
15 affiliations
  1. Department of Rehabilitation Sciences, The Hong Kong Polytechnic University, Hong Kong, China
  2. Shanghai YangZhi Rehabilitation Hospital (Shanghai Sunshine Rehabilitation Center), School of Medicine, Tongji University, Shanghai, China
  3. Shenzhen Institutes of Advanced Technology, Guangdong-Hong Kong-Macao Joint Laboratory of Human-Machine Intelligence-Synergy Systems, Chinese Academy of Sciences, Shenzhen, China
  4. Department of Psychiatry and Psychotherapy, LMU University Hospital, LMU Munich, Munich, Germany
  5. Max Planck Institute of Psychiatry (MPIP), Munich, Germany
  6. Department of Psychiatry, Psychotherapy, and Psychosomatics, Medical Faculty, University of Augsburg, Augsburg, Germany
  7. DZPG (German Center for Mental Health), Partner Site Munich-Augsburg, Munich/Augsburg, Germany
  8. Center for Medical Physics and BME, Medical University of Vienna, Vienna, Austria
  9. Department of Psychiatry and Behavioral Sciences, Stanford University, Stanford, CA, USA
  10. Shanghai Mental Health Center, Shanghai Jiao Tong University School of Medicine, Shanghai, China
  11. State Key Laboratory of Brain and Cognitive Sciences, The University of Hong Kong, Hong Kong, China
  12. Department of Psychology, The University of Hong Kong, Hong Kong, China
  13. HealthyMind Neuro-Wellness Centre, Hong Kong, China
  14. Mental Health Research Center (MHRC), The Hong Kong Polytechnic University, Hong Kong, China
  15. University Research Facility in Behavioral and Systems Neuroscience (UBSN), The Hong Kong Polytechnic University, Hong Kong, China
Dates: received 17 October 2025; accepted 31 May 2026; published online 8 June 2026; in print June 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.1159/000552942 · PMID 42258597 · PMCID PMC13299130 · OpenAlex W7163873613
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: other (modality), human (organism), depression (population), clinical / translational (subfield)
Methods: Statistics, Connectivity, fMRI & imaging
Keywords: Transcranial magnetic stimulation, Electric field modeling, Depression, Dosing strategies, Population variability
Topic: Transcranial Magnetic Stimulation Studies (Neurology, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 99 references in the paper

Abstract

Introduction: Repetitive transcranial magnetic stimulation (rTMS) is a widely utilized, noninvasive brain stimulation technique for treating neurological and psychiatric disorders worldwide. The efficacy of rTMS is influenced by individual head morphology, which shapes the induced electric field (E-field) in the brain. The standard practice for dosing rTMS involves adjusting the intensity to a defined percentage of the motor threshold (MT), a method exemplified by the globally adopted, US FDA-approved protocol of using 120% MT for depression. Since head morphology varies systematically across ethnic groups, current dosing protocols may lead to inconsistent cortical dosing.

Methods: Here, we used large-scale computational modeling (N = 1,085) to systematically evaluate TMS dosage across “White,” “Han Chinese,” and “Black or African Am.” populations.

Results: Our findings reveal striking ethnic disparities in the E-field ratio between the therapeutic target (left dorsolateral prefrontal cortex, DLPFC) and the calibration site (left primary motor cortex, M1). “Han Chinese” individuals exhibited a significantly higher E-field ratio (E-fieldDLPFC/E-fieldM1 = 1.226) compared to “White” individuals (E-fieldDLPFC/E-fieldM1 = 1.096). These differences are primarily driven by variations in scalp-to-cortex distance (SCD). Based on these findings, we derived both simplified population-level adjustment formulas and individualized SCD-based dosing equations and implemented them in a web-based tool for practical use.

Conclusion: Our results suggest that applying a uniform multiplier of MT to DLPFC stimulation may introduce systematic differences in delivered cortical dose across ethnic populations, highlighting that universal dosing conventions derived predominantly from specific demographic cohorts may embed bias, such that established safety and efficacy profiles may not be uniformly applicable across diverse global populations.

Reproduced under the paper's license (CC BY-NC), from the paper cited above.

Repository

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

nuan750/2026-zhang-TMS-dosimetric-variability

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 1371962b1c5a7d241d06a74a1e21a778dce4292c, 24 March 2026
Languages: MATLAB (6), Python (2)
Size: 9 files, 8 scripts
Software Heritage: not archived
Found in: the text, “E-Field Simulation”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
9 files

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:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 8 scripts, each with its path and the digest of its content;
  • 2 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

Datasets cited

Data Availability Statement

The data that support the findings of this study include in-house proprietary datasets and publicly available datasets. The three in-house datasets are not publicly available due to participant privacy and the data sharing policies of the originating institutions. However, access to these datasets can be requested through the corresponding author. Any data sharing is subject to a formal data use agreement and requires the approval of the respective principal investigators who collected the data (G.S.K. for the in-house Chinese dataset; M.T. and D.K. for the in-house White dataset). The public datasets analyzed in this study were sourced from the Human Connectome Project (HCP) and the Chinese Human Connectome Project (CHCP). The head models generated from all datasets (both in-house and public) are available from the corresponding author upon reasonable request. Data acquired at the Medical University of Vienna, Austria, will be made available via author M.T. upon reasonable request and in accordance with the local IRB. The interactive tool is available at https://calculator-dosage.vercel.app/.

Reproduced under the paper's license (CC BY-NC), from the paper cited above.

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 2, 28 September 2026

  • Publisher: n/a → Karger Publishers
  • Authors: added Benjamin Becker (0000-0002-9014-9671); removed Benjamin Becker
  • Funding: added Hong Kong Polytechnic University

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, pages, dates, 15 authors, 5 keywords, 95 references.

Cite

This paper

Zhang, B. B., Lin, T. T., Qin, P. P., Kan, R. L., Xia, A. W., Jin, M., Peng, Y., Keeser, D., on Behalf of CDP Working Group, Padberg, F., Tik, M., Yuan, T., Becker, B., Zhu, F. F., & Kranz, G. S. (2026). How Standardized Is Transcranial Magnetic Stimulation Treatment for Depression? Large-Cohort Modeling Reveals Systematic Dosimetric Variability. Psychotherapy and psychosomatics, 1-17. https://doi.org/10.1159/000552942

BibTeX

@article{zhang2026how,
author = {Zhang, Bella Bingbing and Lin, Tim Tianze and Qin, Penny Ping and Kan, Rebecca Laidi and Xia, Adam Weili and Jin, Minxia and Peng, Yinghu and Keeser, Daniel and {on Behalf of CDP Working Group} and Padberg, Frank and Tik, Martin and Yuan, Tifei and Becker, Benjamin and Zhu, Frank Fan and Kranz, Georg S.},
title = {{How Standardized Is Transcranial Magnetic Stimulation Treatment for Depression? Large-Cohort Modeling Reveals Systematic Dosimetric Variability}},
journal = {Psychotherapy and psychosomatics},
year = {2026},
month = jun,
pages = {1--17},
publisher = {Karger Publishers},
issn = {0033-3190},
doi = {10.1159/000552942},
url = {https://doi.org/10.1159/000552942},
pmid = {42258597},
pmcid = {PMC13299130}
}

RIS

TY - JOUR
AU - Zhang, Bella Bingbing
AU - Lin, Tim Tianze
AU - Qin, Penny Ping
AU - Kan, Rebecca Laidi
AU - Xia, Adam Weili
AU - Jin, Minxia
AU - Peng, Yinghu
AU - Keeser, Daniel
AU - on Behalf of CDP Working Group
AU - Padberg, Frank
AU - Tik, Martin
AU - Yuan, Tifei
AU - Becker, Benjamin
AU - Zhu, Frank Fan
AU - Kranz, Georg S.
TI - How Standardized Is Transcranial Magnetic Stimulation Treatment for Depression? Large-Cohort Modeling Reveals Systematic Dosimetric Variability
T2 - Psychotherapy and psychosomatics
J2 - Psychother Psychosom
PY - 2026
DA - 2026/06/08
SP - 1
EP - 17
SN - 0033-3190
PB - Karger Publishers
DO - 10.1159/000552942
UR - https://doi.org/10.1159/000552942
LA - en
ER -

CSL-JSON

{
"id": "10.1159/000552942",
"type": "article-journal",
"title": "How Standardized Is Transcranial Magnetic Stimulation Treatment for Depression? Large-Cohort Modeling Reveals Systematic Dosimetric Variability",
"container-title": "Psychotherapy and psychosomatics",
"author": [
{
"family": "Zhang",
"given": "Bella Bingbing"
},
{
"family": "Lin",
"given": "Tim Tianze"
},
{
"family": "Qin",
"given": "Penny Ping"
},
{
"family": "Kan",
"given": "Rebecca Laidi"
},
{
"family": "Xia",
"given": "Adam Weili"
},
{
"family": "Jin",
"given": "Minxia"
},
{
"family": "Peng",
"given": "Yinghu"
},
{
"family": "Keeser",
"given": "Daniel"
},
{
"literal": "on Behalf of CDP Working Group"
},
{
"family": "Padberg",
"given": "Frank"
},
{
"family": "Tik",
"given": "Martin"
},
{
"family": "Yuan",
"given": "Tifei"
},
{
"family": "Becker",
"given": "Benjamin"
},
{
"family": "Zhu",
"given": "Frank Fan"
},
{
"family": "Kranz",
"given": "Georg S."
}
],
"container-title-short": "Psychother Psychosom",
"page": "1-17",
"DOI": "10.1159/000552942",
"PMID": "42258597",
"PMCID": "PMC13299130",
"ISSN": "0033-3190",
"publisher": "Karger Publishers",
"URL": "https://doi.org/10.1159/000552942",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
8
]
]
}
}

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.1162/imag.a.1211 [code]
Effects of electric field direction on TMS-based motor cortex mapping.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: other, 5 references
[2] doi:10.1162/imag.a.1222 [code]
Network-based near-scalp personalized brain stimulation targets.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: other, 5 references
[3] doi:10.1186/s12916-026-04978-7 [code]
Mapping shared and specific cortical after-effects of repetitive TMS on brain function.
Journal: BMC medicine
In common: other, 5 references
[4] doi:10.1016/j.brs.2026.103172 [code]
Effects of personalized transcranial magnetic stimulation on social cognitive network functional connectivity in schizophrenia spectrum disorders: A double-blind, randomized, sham-controlled target engagement trial.
Journal: Brain stimulation
In common: other, 4 references
[5] doi:10.1162/imag.a.1356
Sources of the N15 TMS-evoked potential following motor cortex stimulation localize rostrals to TMS-induced electric fields and depend on dose.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: other, 4 references
[6] doi:10.1111/pcn.70066
Acute prefrontal hemodynamic responses to intermittent theta burst stimulation correlate with current depression and episode recurrence: A cross-sectional study.
Journal: Psychiatry and clinical neurosciences
In common: depression, other, author Penny Ping Qin
[7] doi:10.1162/imag.a.1147 [code]
The Virtual Brain links transcranial magnetic stimulation evoked potentials and inhibitory neurotransmitter changes in major depressive disorder.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: depression, other, 3 references
[8] doi:10.1126/sciadv.aed0772 [code]
Deep learning reveals a neurocomputational mechanism predicting depression risk in adolescents.
Journal: Science advances
In common: depression, author Benjamin Becker
[9] doi:10.1073/pnas.2521055123 [code]
Empirical validation of race-neutral normative brain morphometry models across ethnoracially diverse populations.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: author Daniel Keeser
[10] doi:10.64898/2026.03.31.26349848 [code]
Mapping Individual Neuroanatomical Alterations to Schizophrenia Psychopathology with Normative Modeling
Journal: medRxiv (preprint)
In common: author Daniel Keeser

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.

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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

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