OSCR

TyrRu: A Tyramide-Amplified Multimodal Ruthenium Tag for Elemental Mass Spectrometry and Immunofluorescence Imaging.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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 · 135 lines · 4.8 KB · MIT

  1. import numpy as np
  2. import pandas as pd
  3. import os
  4. from scipy.ndimage import gaussian_filter
  5. # -------------------------
  6. # 1. SETUP & PARAMETERS
  7. # -------------------------
  8. Directory = r"C:\Users\bergi\OneDrive - UTS\Onedrive\OneDrive - UTS\Tyr-Ru paper\paper figures\SRR\new SRR"
  9. horz_file = os.path.join(Directory, "2. B1 1.1000 10min Vert.csv")
  10. vert_file = os.path.join(Directory, "3. B1 1.1000 10min Hort (TtB).csv")
  11. # Experimental Parameters (Define the Aspect Ratio)
  12. Speed = 20 # µm/sec (v)
  13. Scantime = 0.05 #1 / 200 # 0.005 sec (tsc)
  14. SpotSize = 1 # µm (D)
  15. Layers = 2
  16. # --- CALCULATIONS BASED ON PAPER'S FORMULAS ---
  17. # Lateral Sampling Interval (Δx)
  18. Delta_x = Speed * Scantime # 20 * 0.005 = 0.1 µm
  19. # Expansion Factor / Aspect Ratio (M)
  20. # M is the factor by which the raw image must be expanded for SRR: M = Spot Size / Δx
  21. M = SpotSize / Delta_x # 1.0 / 0.1 = 10.0
  22. M_int = int(M)
  23. # Shift Offset (N)
  24. # N is the shift required (half the magnitude of the spot size): N = M / 2
  25. N = M_int // 2 # 10 // 2 = 5 pixels
  26. print(M_int, N)
  27. # -------------------------
  28. # 2. LOAD RAW DATA (FIXED FOR PERSISTENT BOM ERROR)
  29. # -------------------------
  30. print("--- LOADING DATA ---")
  31. # Step 1: Read the file, ensuring the encoding is handled.
  32. # If 'utf-8' didn't work, try reading the file content directly and stripping the BOM
  33. with open(horz_file, 'r', encoding='utf-8') as f:
  34. content_H = f.read()
  35. # Manually strip the BOM character from the beginning of the file content
  36. if content_H.startswith('\ufeff'):
  37. content_H = content_H.lstrip('\ufeff')
  38. # Now, read the cleaned content using StringIO
  39. import io
  40. H_df = pd.read_csv(io.StringIO(content_H), sep=None, engine='python', header=None)
  41. # Repeat for the Vertical file (V)
  42. with open(vert_file, 'r', encoding='utf-8') as f:
  43. content_V = f.read()
  44. if content_V.startswith('\ufeff'):
  45. content_V = content_V.lstrip('\ufeff')
  46. V_df = pd.read_csv(io.StringIO(content_V), sep=None, engine='python', header=None)
  47. # Step 2: Convert to NumPy array
  48. # This step is now safer as the BOM has been stripped from the file start.
  49. H = H_df.values.astype(np.float64)
  50. V = V_df.values.astype(np.float64)
  51. print(f"Loaded H Shape: {H.shape}")
  52. print(f"Calculated Aspect Ratio (M): {M}")
  53. # print("--- LOADING DATA ---")
  54. # # Robust CSV loading (sep=None) is critical to prevent the '710x1' error
  55. # H = pd.read_csv(horz_file, sep=None, engine='python', header=None).values
  56. # V = pd.read_csv(vert_file, sep=None, engine='python', header=None).values
  57. # print(f"Loaded H Shape: {H.shape}")
  58. # print(f"Calculated Aspect Ratio (M): {M}")
  59. # -------------------------
  60. # 3. CORE PROCESSING FUNCTION (Kronecker, Upsample, Shift/Pad)
  61. # -------------------------
  62. def process_layer(data, M_factor, shift_pixels, is_vertical):
  63. # A. Kronecker Product (Expands width/columns by M)
  64. data_exp = np.kron(data, np.ones((1, M_factor)))
  65. # B. Upsample (Expands height/rows by M to create square pixels)
  66. data_upsampled = np.repeat(data_exp, M_factor, axis=0)
  67. # C. Shift and Pad (Aligns the orthogonal scans)
  68. pad_width = shift_pixels
  69. if is_vertical:
  70. # Pre-Shift (Top/Left) for the orthogonal layer
  71. pad = ((pad_width, 0), (pad_width, 0))
  72. else:
  73. # Post-Shift (Bottom/Right) for the primary layer (to match size)
  74. pad = ((0, pad_width), (0, pad_width))
  75. # Pad with NaNs (null values) for interpolation
  76. data_shifted = np.pad(data_upsampled, pad, mode='constant', constant_values=np.nan)
  77. return data_shifted
  78. # -------------------------
  79. # 4. EXECUTE RECONSTRUCTION (Full Image Processing)
  80. # -------------------------
  81. # 4a. Process Layers
  82. H_final = process_layer(H, M_int, N, is_vertical=False)
  83. V_final = process_layer(V, M_int, N, is_vertical=True)
  84. # 4b. Crop to Common Size (Handles 1-pixel differences from padding)
  85. min_r = min(H_final.shape[0], V_final.shape[0])
  86. min_c = min(H_final.shape[1], V_final.shape[1])
  87. H_final = H_final[:min_r, :min_c]
  88. V_final = V_final[:min_r, :min_c]
  89. # 4c. Stack and Sum (Creates the final 2D image)
  90. stack = np.dstack([H_final, V_final])
  91. SRR_Image = np.nansum(stack, axis=2)
  92. # 4d. Gaussian Smoothing (Mitigates square pixel artifacts)
  93. # Sigma derived from FWHM relationship with Spot Size (M)
  94. calculated_sigma = M / 2.355
  95. Gaussian_Image = gaussian_filter(SRR_Image, sigma=calculated_sigma)
  96. # -------------------------
  97. # 5. SAVE OUTPUTS
  98. # -------------------------
  99. print(f"Saving SRR Image (Shape: {SRR_Image.shape})...")
  100. # Use fixed-point formatting ('%.5f') for compatibility with Fiji/ImageJ
  101. np.savetxt(os.path.join(Directory, "SRR_2D.csv"), SRR_Image, delimiter=",", fmt='%.5f')
  102. np.savetxt(os.path.join(Directory, "SRR_2D_Gaussian.csv"), Gaussian_Image, delimiter=",", fmt='%.5f')
  103. print("✅ Full image processed and saved.")

SRR_TyrRu.py at commit 21d1c14, under MIT · at the source

Overview

Authors: Rosemary J. Bergin1,2, Ioannis Kohilas1, Thomas E. Lockwood1,2,3, Andrew M. McDonagh1, Mika T. Westerhausen1,2,4, David P. Bishop1,2
  1. School of Mathematical and Physical Sciences, The University of Technology Sydney, Sydney, NSW 2007, Australia
  2. Hyphenated Mass Spectrometry Laboratory, University of Technology Sydney, Sydney, NSW 2007, Australia
  3. NanoMicroLab, Institute of Chemistry, University of Graz, Graz 8010, Austria
  4. Molecular Horizons, University of Wollongong, Wollongong 2522, Australia
Institutions: University of Technology Sydney (Australia); University of Graz (Austria); University of Wollongong (Australia)
Journal: Chemical & biomedical imaging, volume 4, issue 8, pages 1805-1815
Dates: received 7 January 2026; accepted 26 February 2026; published online 5 March 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1021/cbmi.6c00007 · PMID 42657241 · PMCID PMC13508111 · OpenAlex W7133905099
Open access: diamond, a free copy (OpenAlex)
Status: code verified
Categories: other (modality), histology / microscopy (modality)
Keywords: TyrRu, tyramide signal amplification, multimodal imaging, immunofluorescence, LA-ICP-MS, subcellular imaging
Topic: Advanced Fluorescence Microscopy Techniques (Biophysics, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Citations: not cited yet (Europe PMC); 55 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.

Repository

Its files are read in the Code ↔ Paper reader above.

davepbish/TyrRu

License: MIT
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 21d1c14c13ee96eba24a654846e1cb2e3b5d31ef, 15 June 2026
Languages: Python (1)
Size: 4 files, 1 script
Software Heritage: not archived
Found in: the text, “Data Analysis”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (1 file), pandas (1 file), SciPy (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
3 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;
  • 1 script, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • 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.

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, 6 authors, 6 keywords, 2 funders, 52 references.

Cite

This paper

Bergin, R. J., Kohilas, I., Lockwood, T. E., McDonagh, A. M., Westerhausen, M. T., & Bishop, D. P. (2026). TyrRu: A Tyramide-Amplified Multimodal Ruthenium Tag for Elemental Mass Spectrometry and Immunofluorescence Imaging. Chemical & biomedical imaging, 4(8), 1805-1815. https://doi.org/10.1021/cbmi.6c00007

BibTeX

@article{bergin2026tyrru,
author = {Bergin, Rosemary J. and Kohilas, Ioannis and Lockwood, Thomas E. and McDonagh, Andrew M. and Westerhausen, Mika T. and Bishop, David P.},
title = {{TyrRu: A Tyramide-Amplified Multimodal Ruthenium Tag for Elemental Mass Spectrometry and Immunofluorescence Imaging}},
journal = {Chemical \& biomedical imaging},
year = {2026},
month = mar,
volume = {4},
number = {8},
pages = {1805--1815},
publisher = {American Chemical Society},
issn = {2832-3637},
doi = {10.1021/cbmi.6c00007},
url = {https://doi.org/10.1021/cbmi.6c00007},
pmid = {42657241},
pmcid = {PMC13508111}
}

RIS

TY - JOUR
AU - Bergin, Rosemary J.
AU - Kohilas, Ioannis
AU - Lockwood, Thomas E.
AU - McDonagh, Andrew M.
AU - Westerhausen, Mika T.
AU - Bishop, David P.
TI - TyrRu: A Tyramide-Amplified Multimodal Ruthenium Tag for Elemental Mass Spectrometry and Immunofluorescence Imaging
T2 - Chemical & biomedical imaging
J2 - Chem Biomed Imaging
PY - 2026
DA - 2026/03/05
VL - 4
IS - 8
SP - 1805
EP - 1815
SN - 2832-3637
PB - American Chemical Society
DO - 10.1021/cbmi.6c00007
UR - https://doi.org/10.1021/cbmi.6c00007
LA - en
ER -

CSL-JSON

{
"id": "10.1021/cbmi.6c00007",
"type": "article-journal",
"title": "TyrRu: A Tyramide-Amplified Multimodal Ruthenium Tag for Elemental Mass Spectrometry and Immunofluorescence Imaging",
"container-title": "Chemical & biomedical imaging",
"author": [
{
"family": "Bergin",
"given": "Rosemary J."
},
{
"family": "Kohilas",
"given": "Ioannis"
},
{
"family": "Lockwood",
"given": "Thomas E."
},
{
"family": "McDonagh",
"given": "Andrew M."
},
{
"family": "Westerhausen",
"given": "Mika T."
},
{
"family": "Bishop",
"given": "David P."
}
],
"container-title-short": "Chem Biomed Imaging",
"volume": "4",
"issue": "8",
"page": "1805-1815",
"DOI": "10.1021/cbmi.6c00007",
"PMID": "42657241",
"PMCID": "PMC13508111",
"ISSN": "2832-3637",
"publisher": "American Chemical Society",
"URL": "https://doi.org/10.1021/cbmi.6c00007",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
5
]
]
}
}

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.1021/acscentsci.6c00422 [code]
Multimodal FRACTAL-MSI and Image Fusion Improves Detection and Resolution of Biomolecule Imaging.
Journal: ACS central science
In common: SciPy, NumPy, histology / microscopy, 11 references, 3 authors
[2] doi:10.1093/neuonc/noag128 [code]
Spatially-resolved single-cell imaging of melanoma brain metastases identifies localized immune patterns predictive of immune checkpoint blockade response.
Journal: Neuro-oncology
In common: pandas, SciPy, NumPy, 1 reference
[3] doi:10.1002/advs.77822 [code]
Temporal Trajectories of the Tau Aggregate Interactome Reveal Stage-Specific Vulnerabilities in Alzheimer's Disease.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: pandas, SciPy, NumPy, histology / microscopy
[4] doi:10.1371/journal.pbio.3003959 [code]
Recurrent synapses between CO2-sensitive olfactory sensory neurons enable robust CO2 detection in Aedes aegypti mosquitoes.
Journal: PLoS biology
In common: pandas, SciPy, NumPy, histology / microscopy
[5] doi:10.1038/s41467-026-72845-3 [code]
The membrane-to-cortex distance regulates mDia1 activity to control cortical mechanics.
Journal: Nature communications
In common: pandas, SciPy, NumPy, histology / microscopy
[6] doi:10.3389/fncom.2026.1862383 [code]
Microstructural spine alterations increase neuronal excitability in focal cortical dysplasia Type I.
Journal: Frontiers in computational neuroscience
In common: pandas, SciPy, NumPy, histology / microscopy
[7] doi:10.1016/j.xpro.2026.104773 [code]
Protocol for fluorescent false neurotransmitter live imaging of dopamine release dynamics from individual synapses in acute brain slices.
Journal: STAR protocols
In common: pandas, SciPy, NumPy, histology / microscopy
[8] doi:10.1038/s41593-026-02388-9 [code]
Hippocampal CA3 connectomics reveals a gradient of mossy fiber inputs and selective feedforward inhibition onto pyramidal cells.
Journal: Nature neuroscience
In common: pandas, SciPy, NumPy, histology / microscopy
[9] doi:10.1002/alz.71745 [code]
Regional astrocyte dysregulation and altered glymphatic-related markers in Alzheimer's disease frontal cortex.
Journal: Alzheimer's & dementia : the journal of the Alzheimer's Association
In common: pandas, SciPy, NumPy, histology / microscopy
[10] doi:10.1016/j.isci.2026.117010 [code]
Deep learning-assisted mapping of dendritic spines using sequential 2D two-photon calcium imaging.
Journal: iScience
In common: pandas, SciPy, NumPy, histology / microscopy

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.