OSCR

Magnetic resonance identification tags for ultra-flexible electrodes.

Code ↔ Paper

3 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 3 matches
  1. [1] § Results › MRI characterization and channel mapping ↔ mri/Figure_3B.ipynb, lines 110 to 130 · score 0.61 · Gaussian curve, Gaussian fits, curve centers, sigma, islands, MRI · Report a mismatch
  2. [2] § Methods › IONP relaxivity ↔ mri/Suppl_Figure_9.ipynb, lines 6 to 78 · score 0.56 · relaxation curves, decay, relaxivity, signal, segmented, echo · Report a mismatch
  3. [3] § Methods › MRID analysis ↔ mri/Figure_3B.ipynb, lines 110 to 130 · score 0.56 · Gaussian curve, Gaussian centers, heatmap, fitted, coronal, island · 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

Jupyter notebook · 147 lines · 4.3 KB · no license · 2 matches

  1. # %%
  2. root="./"
  3. %run utils/imports.ipynb
  4. # %% [markdown]
  5. # # QUAD-zone pattern
  6. # %%
  7. animal_path = "./data/"
  8. filename="t2star_mge_raw.nii.gz"
  9. filenameseg="t2star_mge_segmentation.nii.gz"
  10. filenameanat="t2star_mge_anat.nii.gz"
  11. _, data=read_data(os.path.join(root, animal_path, filename))
  12. _, segmentation=read_data(os.path.join(root, animal_path, filenameseg))
  13. _, anat=read_data(os.path.join(root, animal_path, filenameanat))
  14. filenamelabels="labels.txt"
  15. labelsdf=read_labels(os.path.join(root, animal_path, filenamelabels))
  16. roi_name="quad"
  17. img_slice=3
  18. num_echos=8
  19. # quad_areas=np.flip([175,1075,2170,7118])
  20. quad_areas=np.array([7118, 2170, 1075, 175])
  21. quad_interseg=np.array([750, 755, 605])
  22. quad_lengths=np.array([670, 300, 295, 295])
  23. quad_densities=quad_areas/quad_lengths
  24. roi_areas=labelsdf["Labels"][labelsdf["Anatomical Regions"].str.contains(roi_name)]
  25. basestructs=["cortex", "cc", "striatum", "ventrical"]
  26. quadDictCC,_,_=find_roi(data, segmentation, anat, basestructs, labelsdf, ["quad"], num_echos)
  27. # %%
  28. dataDict = quadDictCC
  29. writer = pd.ExcelWriter('Figure_3B-detected_pixels.xlsx', engine = 'xlsxwriter')
  30. for echo in range(num_echos):
  31. dict1={}
  32. tmp_x = np.array([])
  33. tmp_y = np.array([])
  34. for j, roi in enumerate(dataDict.keys()):
  35. for i, island in enumerate(dataDict[roi].keys()):
  36. for k, region in enumerate(dataDict[roi][island].keys()):
  37. indeces=dataDict[roi][island][region][echo]["index"]
  38. if indeces:
  39. tmp_x = np.append(tmp_x, np.array(indeces)[:,1])
  40. tmp_y = np.append(tmp_y, np.array(indeces)[:,0])
  41. dict1["Significant Pixels x-indeces"] = tmp_x
  42. dict1["Significant Pixels y-indeces"] = tmp_y
  43. df = pd.DataFrame(data=dict1)
  44. df.to_excel(writer, sheet_name = "Echo-time "+str(echo))
  45. writer.close()
  46. # %%
  47. plot_all_roi(data[:,:,img_slice,:], quadDictCC, roi_name, slice_orientation="coronal", savepath="", color="g", savefigs=False, dpi=1000)
  48. # %%
  49. num_echos=data.shape[-1]
  50. heatmaps=np.zeros((len(roi_areas),segmentation.shape[0], segmentation.shape[1]))
  51. r=[2, 1, 1, 1]
  52. for i, roi in enumerate(roi_areas):
  53. heatmaps[i]=segment_relaxation(data[:,:,img_slice,:], segmentation[:,:,img_slice], anat[:,:,img_slice], basestructs,labelsdf, roi, te=[4.0, 4.09], r=r[i])
  54. # # create a colormap object
  55. cmap = plt.cm.get_cmap("jet").copy()
  56. cmap.set_under('white', alpha=0)
  57. # # set colourbar map
  58. cmap_args = dict(cmap=cmap, vmin=6)
  59. plt.imshow(data[:,:,img_slice,0], cmap='gray')
  60. plt.imshow(np.sum(heatmaps, axis=0), **cmap_args, alpha=0.5)
  61. plt.colorbar()
  62. plt.savefig("./Figure_3B-heatmap_r=1sqr.pdf", dpi=1000)
  63. plt.show()
  64. # %%
  65. islands, x_range, y_range = np.shape(heatmaps)
  66. writer = pd.ExcelWriter('Figure_3B-heatmap.xlsx', engine = 'xlsxwriter')
  67. for i in range(islands):
  68. dict1={}
  69. x_idx = []
  70. y_idx = []
  71. contrast = []
  72. for x in range(x_range):
  73. for y in range(y_range):
  74. x_idx.append(x)
  75. y_idx.append(y)
  76. contrast.append(heatmaps[i,x,y])
  77. dict1["x-indeces"] = x_idx
  78. dict1["y-indeces"] = y_idx
  79. dict1["MRI Contrast"] = contrast
  80. df = pd.DataFrame(data=dict1)
  81. df.to_excel(writer, sheet_name = "Island "+str(4-i))
  82. writer.close()
  83. # %% [markdown]
  84. # ## 2D Gaussian fit
  85. # %%
  86. fixed_img = data[:,:,img_slice,0]
  87. px_size = 136
  88. coronalFlag = True
  89. gaussian_centers, gaussAmp, gaussSig, popt = find_gaussian_centers(heatmaps, fixed_img, px_size, coronal=coronalFlag)
  90. islands, x_range, y_range = np.shape(heatmaps)
  91. writer = pd.ExcelWriter('Figure_3B-gaussian_fit.xlsx', engine = 'xlsxwriter')
  92. dict1={}
  93. dict1["Gaussian curve center x"] = gaussian_centers[:,0]
  94. dict1["Gaussian curve center y"] = gaussian_centers[:,1]
  95. dict1["Gaussian curve amplitude"] = gaussAmp
  96. dict1["Gaussian curve sigma"] = gaussSig
  97. df = pd.DataFrame(data=dict1)
  98. df.to_excel(writer, sheet_name = "Gaussian Fit")
  99. writer.close()
  100. # %% [markdown]
  101. # ## Barcodes
  102. # %%
  103. px_size = 136
  104. gaussian_centers_3d=combined_gaussian_centers(gaussian_centers,
  105. contrast_intensities_coronal = gaussAmp,
  106. savepath="")
  107. barcode, ticks, tickLabels = gen_barcode_mrid(gaussSig*2*px_size, get_dist(gaussian_centers_3d, px_size))
  108. plt.figure(figsize=(10,5))
  109. plt.imshow(barcode, cmap='gray')
  110. plt.xticks(ticks=ticks, labels=tickLabels)
  111. plt.show()

Figure_3B.ipynb at commit 71706d2, no license · at the source

Overview

  1. Neurotechnology Group, Institute of Neuroinformatics, Department of Information Technology and Electrical Engineering, ETH Zurich and University of Zurich, Zurich, Switzerland
  2. Neuroscience Center Zurich, University of Zurich and ETH Zurich, Zurich, Switzerland
  3. Sainsbury Wellcome Centre for Neural Circuits and Behaviour, University College London, London, UK
  4. Brain Research Institute, University of Zurich, Zurich, Switzerland
  5. University Research Priority Program (URPP), Adaptive Brain Circuits in Development and Learning, University of Zurich, Zurich, Switzerland
  6. Center for Microscopy and Image Analysis (ZMB), University of Zurich, Zurich, Switzerland
  7. Division of Computing and Mathematical Sciences, Caltech, Pasadena, CA USA
  8. Division of Engineering and Applied Science, Caltech, Pasadena, CA USA
  9. Department of Neurosurgery, University Hospital Zurich, University of Zurich, Zurich, Switzerland
  10. Clinical Neuroscience Center, University Hospital Zurich, University of Zurich, Zurich, Switzerland
Institutions: University of Zurich (Switzerland); ETH Zurich (Switzerland); Institute of Neuroinformatics (Switzerland); Sainsbury Wellcome Centre (United Kingdom); University College London (United Kingdom); Center for Microscopy and Image Analysis (Switzerland); California Institute of Technology (United States); University Hospital Zurich (Switzerland)
Journal: Nature communications, volume 17, issue 1, article 5725
Dates: received 17 April 2025; accepted 25 March 2026; published online 28 April 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-026-71887-x · PMID 42049714 · PMCID PMC13324162 · OpenAlex W4410146547
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: structural MRI / diffusion (modality), rat (organism), methods / tools (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, fMRI & imaging, Single-unit activity, calcium imaging, Physiology & signal measures
Keywords: Neuroscience, Biomedical engineering, Nanoparticles, Magnetic devices, Implants
MeSH: Electrodes, Implanted*, Magnetic Resonance Imaging*, Animals, Hippocampus, Male, Rats (* major topic)
Topic: Advanced Memory and Neural Computing (Electrical and Electronic Engineering, Engineering), according to OpenAlex
Funding: Swiss National Science Foundation (198739, 211760); EC | Horizon 2020 Framework Programme (EU Framework Programme for Research and Innovation H2020) (818179)
Citations: cited by 1 paper (Europe PMC); 55 references in the paper

Abstract

Ultra-flexible electrodes, due to their superior biocompatibility, are likely to lead the future of neuroprosthetics. However, identifying the precise positions of implanted high-density ultra-flexible electrodes in the brain for accurately assigning neural signals to specific structures remains a major challenge. To address this, we developed magnetic resonance identification (MRID)-tags. Each ultra-flexible electrode bundle carries an MRID-tag with unique barcode patterns visible in MRI (MRI-barcodes) for identification of the bundle. Individual bars in MRI-barcodes allow an accurate 3D reconstruction of the ultra-flexible electrode bundle’s trajectory in the brain and determine the anatomical positions of individual electrodes. We generate the MRI-barcodes by patterning superparamagnetic iron-oxide nanoparticles into electrode fibers (10 µm2) with dot-matrix nanoparticle coating technique. We chronically tested MRID-tagged ultra-flexible electrodes in vivo in the dorsal hippocampus of freely-moving rats, where distinct electrophysiological landmarks validated our electrode localization results. We were able to localize individual electrodes with a mean accuracy of 95 μm. MRID-tagged ultra-flexible electrodes demonstrated high long-term recording stability with mean single-unit signal-to-noise ratios as high as 20.

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

Repositories

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

Zenodo 18917094

License: CC-BY-4.0
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)
At the source:

Neurotechnology-at-ETH-Zurich/MRID-code

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 71706d2d79a84fe7380f1d3b87e8db5cff9e1808, 9 May 2026
Languages: Jupyter (24), MATLAB (11), Python (1)
Size: 70 files, 36 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, 24 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (3 files), Matplotlib (2 files), SciPy (2 files), tifffile (2 files), OpenCV (1 file), pandas (1 file), scikit-image (1 file), scikit-learn (1 file), seaborn (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
11 files

Code availability

All custom code and preprocessed data used in this manuscript are available at the GitHub repository https://github.com/Neurotechnology-at-ETH-Zurich/MRID-code and on Zenodo 10.5281/zenodo.1891709455.

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

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:

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

Data availability

All data supporting the findings of this study are available within the article and its supplementary files. Additional data is deposited to the Zenodo repository at: 10.5281/zenodo.1891709455. Any additional requests for information can be directed to, and will be fulfilled by, the corresponding author. Source data are provided with this paper.

Reproduced under the paper's license (CC BY), 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 1, 30 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 5 keywords, 6 MeSH terms, 2 funders, 49 references.

Cite

This paper

Özil, E., Gombkoto, P., Apostolelli, A., Yasar, T. B., Vavladeli, A. D., Marks, M., Rohr-Fukuma, M., von der Behrens, W., & Yanik, M. F. (2026). Magnetic resonance identification tags for ultra-flexible electrodes. Nature communications, 17(1), 5725. https://doi.org/10.1038/s41467-026-71887-x

BibTeX

@article{ozil2026magnetic,
author = {Özil, Eminhan and Gombkoto, Peter and Apostolelli, Athina and Yasar, Tansel Baran and Vavladeli, Angeliki D and Marks, Markus and Rohr-Fukuma, Manabu and von der Behrens, Wolfger and Yanik, Mehmet Fatih},
title = {{Magnetic resonance identification tags for ultra-flexible electrodes}},
journal = {Nature communications},
year = {2026},
month = apr,
volume = {17},
number = {1},
pages = {5725},
publisher = {Nature Portfolio},
issn = {2041-1723},
doi = {10.1038/s41467-026-71887-x},
url = {https://doi.org/10.1038/s41467-026-71887-x},
pmid = {42049714},
pmcid = {PMC13324162}
}

RIS

TY - JOUR
AU - Özil, Eminhan
AU - Gombkoto, Peter
AU - Apostolelli, Athina
AU - Yasar, Tansel Baran
AU - Vavladeli, Angeliki D
AU - Marks, Markus
AU - Rohr-Fukuma, Manabu
AU - von der Behrens, Wolfger
AU - Yanik, Mehmet Fatih
TI - Magnetic resonance identification tags for ultra-flexible electrodes
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/04/28
VL - 17
IS - 1
SP - 5725
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/s41467-026-71887-x
UR - https://doi.org/10.1038/s41467-026-71887-x
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-71887-x",
"type": "article-journal",
"title": "Magnetic resonance identification tags for ultra-flexible electrodes",
"container-title": "Nature communications",
"author": [
{
"family": "Özil",
"given": "Eminhan"
},
{
"family": "Gombkoto",
"given": "Peter"
},
{
"family": "Apostolelli",
"given": "Athina"
},
{
"family": "Yasar",
"given": "Tansel Baran"
},
{
"family": "Vavladeli",
"given": "Angeliki D"
},
{
"family": "Marks",
"given": "Markus"
},
{
"family": "Rohr-Fukuma",
"given": "Manabu"
},
{
"family": "von der Behrens",
"given": "Wolfger"
},
{
"family": "Yanik",
"given": "Mehmet Fatih"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "5725",
"DOI": "10.1038/s41467-026-71887-x",
"PMID": "42049714",
"PMCID": "PMC13324162",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://doi.org/10.1038/s41467-026-71887-x",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
28
]
]
}
}

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.1038/s41467-024-49226-9 [code]
Months-long tracking of neuronal ensembles spanning multiple brain areas with Ultra-Flexible Tentacle Electrodes.
Journal: Nature communications
In common: scikit-image, scikit-learn, pandas, 3 other tools, rat, 10 references, 4 authors
[2] doi:10.1038/s42256-022-00477-5 [code]
Deep-learning based identification, tracking, pose estimation, and behavior classification of interacting primates and mice in complex environments.
Journal: Nature machine intelligence
In common: OpenCV, scikit-image, scikit-learn, 4 other tools, methods / tools, 3 authors
[3] doi:10.21203/rs.3.rs-10218667/v1 [code]
Combining ultra-flexible electrodes with two-photon imaging to illuminate brain-wide neural dynamics
Journal: Research Square (preprint)
In common: SciPy, Matplotlib, NumPy, 3 references, 3 authors
[4] doi:10.1038/s41592-026-03154-2 [code]
Simultaneous single-cell calcium imaging of neuronal population activity and brain-wide BOLD fMRI.
Journal: Nature methods
In common: tifffile, OpenCV, scikit-learn, 4 other tools, 3 references, 2 authors
[5] doi:10.3389/fnbeh.2025.1685846 [code]
Electroanatomy of hippocampal activity patterns: theta, gamma waves, sharp wave-ripples, and dentate spikes.
Journal: Frontiers in behavioral neuroscience
In common: scikit-learn, SciPy, Matplotlib, 1 other tool, 8 references
[6] doi:10.1038/s41586-025-08828-z [code]
A neural mechanism for learning from delayed postingestive feedback.
Journal: Nature
In common: tifffile, OpenCV, scikit-image, 6 other tools, 3 references
[7] doi:10.1038/s41586-025-09235-0 [code]
A brain-wide map of neural activity during complex behaviour.
Journal: Nature
In common: tifffile, scikit-image, seaborn, 5 other tools, 3 references
[8] doi:10.7554/elife.100840 [code]
Reproducibility of in vivo electrophysiological measurements in mice.
Journal: eLife
In common: tifffile, scikit-image, seaborn, 5 other tools, 3 references
[9] doi:10.1371/journal.pone.0318863 [code]
Testing the role of spontaneous activity in visuospatial perception with patterned optogenetics.
Journal: PloS one
In common: tifffile, OpenCV, scikit-image, 6 other tools, 2 references
[10] doi:10.7554/elife.94167 [code]
Pan-cortical 2-photon mesoscopic imaging and neurobehavioral alignment in awake, behaving mice.
Journal: eLife
In common: tifffile, OpenCV, scikit-image, 6 other tools, 2 references

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.1038/s41467-026-71887-x.svg)](https://openscicode.org/badge/doi/10.1038/s41467-026-71887-x)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-71887-x.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41467-026-71887-x
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-71887-x"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-71887-x.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.