TyrRu: A Tyramide-Amplified Multimodal Ruthenium Tag for Elemental Mass Spectrometry and Immunofluorescence Imaging.
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
- import numpy as np
- import pandas as pd
- import os
- from scipy.ndimage import gaussian_filter
- # -------------------------
- # 1. SETUP & PARAMETERS
- # -------------------------
- Directory = r"C:\Users\bergi\OneDrive - UTS\Onedrive\OneDrive - UTS\Tyr-Ru paper\paper figures\SRR\new SRR"
- horz_file = os.path.join(Directory, "2. B1 1.1000 10min Vert.csv")
- vert_file = os.path.join(Directory, "3. B1 1.1000 10min Hort (TtB).csv")
- # Experimental Parameters (Define the Aspect Ratio)
- Speed = 20 # µm/sec (v)
- Scantime = 0.05 #1 / 200 # 0.005 sec (tsc)
- SpotSize = 1 # µm (D)
- Layers = 2
- # --- CALCULATIONS BASED ON PAPER'S FORMULAS ---
- # Lateral Sampling Interval (Δx)
- Delta_x = Speed * Scantime # 20 * 0.005 = 0.1 µm
- # Expansion Factor / Aspect Ratio (M)
- # M is the factor by which the raw image must be expanded for SRR: M = Spot Size / Δx
- M = SpotSize / Delta_x # 1.0 / 0.1 = 10.0
- M_int = int(M)
- # Shift Offset (N)
- # N is the shift required (half the magnitude of the spot size): N = M / 2
- N = M_int // 2 # 10 // 2 = 5 pixels
- print(M_int, N)
- # -------------------------
- # 2. LOAD RAW DATA (FIXED FOR PERSISTENT BOM ERROR)
- # -------------------------
- print("--- LOADING DATA ---")
- # Step 1: Read the file, ensuring the encoding is handled.
- # If 'utf-8' didn't work, try reading the file content directly and stripping the BOM
- with open(horz_file, 'r', encoding='utf-8') as f:
- content_H = f.read()
- # Manually strip the BOM character from the beginning of the file content
- if content_H.startswith('\ufeff'):
- content_H = content_H.lstrip('\ufeff')
- # Now, read the cleaned content using StringIO
- import io
- H_df = pd.read_csv(io.StringIO(content_H), sep=None, engine='python', header=None)
- # Repeat for the Vertical file (V)
- with open(vert_file, 'r', encoding='utf-8') as f:
- content_V = f.read()
- if content_V.startswith('\ufeff'):
- content_V = content_V.lstrip('\ufeff')
- V_df = pd.read_csv(io.StringIO(content_V), sep=None, engine='python', header=None)
- # Step 2: Convert to NumPy array
- # This step is now safer as the BOM has been stripped from the file start.
- H = H_df.values.astype(np.float64)
- V = V_df.values.astype(np.float64)
- print(f"Loaded H Shape: {H.shape}")
- print(f"Calculated Aspect Ratio (M): {M}")
- # print("--- LOADING DATA ---")
- # # Robust CSV loading (sep=None) is critical to prevent the '710x1' error
- # H = pd.read_csv(horz_file, sep=None, engine='python', header=None).values
- # V = pd.read_csv(vert_file, sep=None, engine='python', header=None).values
- # print(f"Loaded H Shape: {H.shape}")
- # print(f"Calculated Aspect Ratio (M): {M}")
- # -------------------------
- # 3. CORE PROCESSING FUNCTION (Kronecker, Upsample, Shift/Pad)
- # -------------------------
- def process_layer(data, M_factor, shift_pixels, is_vertical):
- # A. Kronecker Product (Expands width/columns by M)
- data_exp = np.kron(data, np.ones((1, M_factor)))
- # B. Upsample (Expands height/rows by M to create square pixels)
- data_upsampled = np.repeat(data_exp, M_factor, axis=0)
- # C. Shift and Pad (Aligns the orthogonal scans)
- pad_width = shift_pixels
- if is_vertical:
- # Pre-Shift (Top/Left) for the orthogonal layer
- pad = ((pad_width, 0), (pad_width, 0))
- else:
- # Post-Shift (Bottom/Right) for the primary layer (to match size)
- pad = ((0, pad_width), (0, pad_width))
- # Pad with NaNs (null values) for interpolation
- data_shifted = np.pad(data_upsampled, pad, mode='constant', constant_values=np.nan)
- return data_shifted
- # -------------------------
- # 4. EXECUTE RECONSTRUCTION (Full Image Processing)
- # -------------------------
- # 4a. Process Layers
- H_final = process_layer(H, M_int, N, is_vertical=False)
- V_final = process_layer(V, M_int, N, is_vertical=True)
- # 4b. Crop to Common Size (Handles 1-pixel differences from padding)
- min_r = min(H_final.shape[0], V_final.shape[0])
- min_c = min(H_final.shape[1], V_final.shape[1])
- H_final = H_final[:min_r, :min_c]
- V_final = V_final[:min_r, :min_c]
- # 4c. Stack and Sum (Creates the final 2D image)
- stack = np.dstack([H_final, V_final])
- SRR_Image = np.nansum(stack, axis=2)
- # 4d. Gaussian Smoothing (Mitigates square pixel artifacts)
- # Sigma derived from FWHM relationship with Spot Size (M)
- calculated_sigma = M / 2.355
- Gaussian_Image = gaussian_filter(SRR_Image, sigma=calculated_sigma)
- # -------------------------
- # 5. SAVE OUTPUTS
- # -------------------------
- print(f"Saving SRR Image (Shape: {SRR_Image.shape})...")
- # Use fixed-point formatting ('%.5f') for compatibility with Fiji/ImageJ
- np.savetxt(os.path.join(Directory, "SRR_2D.csv"), SRR_Image, delimiter=",", fmt='%.5f')
- np.savetxt(os.path.join(Directory, "SRR_2D_Gaussian.csv"), Gaussian_Image, delimiter=",", fmt='%.5f')
- print("✅ Full image processed and saved.")
SRR_TyrRu.py at commit 21d1c14, under MIT · at the source
Overview
- School of Mathematical and Physical Sciences, The University of Technology Sydney, Sydney, NSW 2007, Australia
- Hyphenated Mass Spectrometry Laboratory, University of Technology Sydney, Sydney, NSW 2007, Australia
- NanoMicroLab, Institute of Chemistry, University of Graz, Graz 8010, Austria
- Molecular Horizons, University of Wollongong, Wollongong 2522, Australia
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
21d1c14c13ee96eba24a654846e1cb2e3b5d31ef, 15 June 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
3 files
- SRR_TyrRu.py, Python, 135 lines
- LICENSE, License, 21 lines
- README.md, Text, 2 lines
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://
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/
url = {https://
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/
VL - 4
IS - 8
SP - 1805
EP - 1815
SN - 2832-3637
PB - American Chemical Society
DO - 10.1021/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1021/
"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":
"volume": "4",
"issue": "8",
"page": "1805-1815",
"DOI": "10.1021/
"PMID": "42657241",
"PMCID": "PMC13508111",
"ISSN": "2832-3637",
"publisher": "American Chemical Society",
"URL": "https://
"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 scienceIn 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-oncologyIn 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 biologyIn 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 communicationsIn 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 neuroscienceIn 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 protocolsIn 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 neuroscienceIn 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 AssociationIn 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: iScienceIn 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.
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: 1 repository of the authors' code, each at its verified commit and with its license, 1 script, and 0 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:339b60e21cfa8c41…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
