Clinicoanatomic localization of iron-rich gliosis in aphasic presentations of globular glial tauopathy.
The 1 match
- [1] § Results ↔ process_ggt_data.ipynb, lines 212 to 339 · score 0.63 · cortical depth, iron stained, Pearson, correlation, intensity, DAB · 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 · 343 lines · 9.9 KB · no license · 1 match
- # %% [markdown]
- # # Install packages
- # %%
- %pip install pdnl_sana
- %pip install nibabel
- %pip install lxml
- %pip install pandas
- import os
- import sys
- import nibabel as nib
- from lxml import objectify
- import numpy as np
- from matplotlib import pyplot as plt
- import cv2
- import pandas as pd
- import scipy.stats
- import pdnl_sana as sana
- import pdnl_sana.geo
- import pdnl_sana.interpolate
- import pdnl_sana.image
- import pdnl_sana.color_deconvolution
- # %% [markdown]
- # # Initialize data source
- # %%
- # location of the data
- version = "v1"
- drive = os.path.join("data", version)
- # drive = "./for_noah/data"
- rois = sorted([x for x in os.listdir(drive) if x != '.DS_Store'])
- print("ROIs:", rois)
- # types of images to analyze
- sources = ['meguro', 'mri']
- # example ROI
- print(os.path.join(drive, rois[0]))
- for f in os.listdir(os.path.join(drive, rois[0])):
- print('\t', f)
- # %% [markdown]
- # # Functions for I/O
- # %%
- # parses the sform matrix from the header for converting annotation vector to points in the image
- def load_sform(f):
- nifti = nib.load(f)
- sform = np.zeros([3,3], dtype=float)
- for i, ax in enumerate(['x', 'y', 'z']):
- sform[i] = nifti.header[f'srow_{ax}'][:3]
- return sform
- # nifti I/O
- def load_nifti_img(f):
- nifti = nib.load(f)
- img = np.asanyarray(nifti.dataobj)
- if type(img.dtype) is np.dtypes.VoidDType:
- img = img.view((img.dtype[0], len(img.dtype.names)))
- img = np.squeeze(img)
- if len(img.shape) == 2:
- img = img[:,:,None]
- else:
- img = img.transpose(1,0,2)
- return img
- # parse the lxml file
- def load_itksnap_annotations(f):
- tree = objectify.fromstring(open(f, 'rb').read())
- annotations = tree.folder.getchildren()
- annos = []
- for annotation in annotations:
- if annotation.get('key') == 'ArraySize':
- continue
- # load the Position (voxel) and Offset (mm)
- pos, offset, label, plane = None, None, None, None
- for x in annotation.getchildren():
- if x.get('key') == 'Text':
- label = x.get('value')
- if x.get('key') == 'Plane':
- plane = int(x.get('value'))
- if x.get('key') == 'Pos':
- pos = np.array(list(map(float, x.get('value').split(' '))))
- if x.get('key') == 'Offset':
- offset = np.array(list(map(float, x.get('value').split(' '))))
- annos.append([label, plane, pos, offset])
- return annos
- # handles the coordinate changes in the 3D space
- def load_itksnap_ihc_annotations(f, sform):
- annotations = load_itksnap_annotations(f)
- annos = {}
- for label, plane, pos, offset in annotations:
- # grab the slice number to extract
- slice_num = int(np.ceil(pos[plane]))
- # invert direction of the anno vector
- offset[1] *= -1
- # make the offset 3D
- offset = np.insert(offset, 2, 0)
- # calculate the start and end points of the annotation
- p0 = np.linalg.inv(sform) @ (sform @ pos)
- p1 = (np.linalg.inv(sform) @ ((sform @ pos) - offset))
- # remove the z axis
- p0 = np.delete(p0, plane)
- p1 = np.delete(p1, plane)
- # store the (x,y) annotation
- annos[label] = sana.geo.Curve([p0[0], p1[0]], [p0[1], p1[1]])
- # parse the annotation labels into a common label set
- segments = {
- 'CSF': annos['gm'],
- 'GM': annos['wm'],
- 'L': annos['left'],
- 'R': annos['right'],
- }
- return segments
- # handles the coordinate changes in the 2D space
- def load_itksnap_mri_annotations(f, sform, version):
- annotations = load_itksnap_annotations(f)
- annos = {}
- for label, plane, pos, offset in annotations:
- # grab the slice number to extract
- slice_num = int(np.ceil(pos[plane]))
- # invert direction of the anno vector
- offset[1] *= -1
- # make the offset 3D
- if pos[1] < 1 and version == "v1":
- offset = np.insert(offset, 0, 0)
- else:
- offset = np.insert(offset, 1, 0)
- # calculate the start and end points of the annotation
- p0 = np.linalg.inv(sform) @ (sform @ pos)
- p1 = (np.linalg.inv(sform) @ ((sform @ pos) - offset))
- # remove the z axis
- p0 = np.delete(pos, plane)
- p1 = np.delete(p1, plane)
- # store the (y,x) annotation
- annos[label] = sana.geo.Curve([p0[0], p1[0]], [p0[1], p1[1]])
- # convert to (x,y) annotation
- annos[label] = annos[label][:, ::-1]
- # parse the annotation labels into a common label set
- segments = {
- 'CSF': annos['gm'],
- 'GM': annos['wm'],
- 'L': annos['left'],
- 'R': annos['right'],
- }
- # NOTE: we're just assuming that all annotations are in the same plane/slice_num
- return segments
- # load the images and annotations for a given ROI
- def load_data(version, roi, source, ax=None):
- drive = os.path.join("data", version)
- anno_f = os.path.join(drive, roi, f'{source}.annot')
- img_f = os.path.join(drive, roi, f'{source}.nii.gz')
- sform = load_sform(img_f)
- if source == 'mri':
- annos = load_itksnap_mri_annotations(anno_f, sform, version)
- else:
- annos = load_itksnap_ihc_annotations(anno_f, sform)
- img = load_nifti_img(img_f)
- if not ax is None:
- _ = ax.imshow(img, cmap='gray')
- _ = [ax.plot(*annos[label].T, label=label) for label in annos]
- _ = ax.legend()
- _ = ax.set_title(f'{roi}\n{source}')
- return img, annos
- # test the I/O
- version = "v2"
- fig, axs = plt.subplots(1,2)
- roi = 'A. Patient #1 naPPA, BA8'
- img, annos = load_data(version, roi, source='meguro', ax=axs[0])
- img, annos = load_data(version, roi, source='mri', ax=axs[1])
- # %% [markdown]
- # # Correlation Analysis
- # %%
- aspect_ratio = 0.66
- h = 40
- w = int(40*aspect_ratio)
- def resample_rois(version):
- drive = os.path.join("data", version)
- rois = sorted([x for x in os.listdir(drive) if x != '.DS_Store'])
- data = {}
- for i, roi in enumerate(rois):
- data[roi] = {}
- # load the data
- fig, axs = plt.subplots(1, len(sources), figsize=(20,10))
- for j, source in enumerate(sources):
- img, annos = load_data(version, roi, source, ax=axs[j])
- data[roi][source] = [img, annos]
- fig.tight_layout()
- plt.savefig(os.path.join('output', version, f'{roi}_01_thumbnails.png'))
- plt.close()
- # apply the resampling
- fig, axs = plt.subplots(1, len(sources), figsize=(20,10))
- for j, source in enumerate(sources):
- img, annos = data[roi][source][:2]
- sample_grid, _ = sana.interpolate.fan_sample(annos['CSF'], annos['R'], annos['GM'], annos['L'])
- resampled = sana.interpolate.grid_sample(sana.image.Frame(img.copy(), level=0), sample_grid)
- resampled.resize(sana.geo.Point(w, h, level=0), interpolation=cv2.INTER_LINEAR)
- data[roi][source] = (img, annos, resampled)
- axs[j].imshow(resampled.img, cmap='gray')
- axs[j].set_title(f'{source}')
- fig.suptitle(f'{roi}')
- fig.tight_layout()
- plt.savefig(os.path.join('output', version, f'{roi}_02_resampled.png'))
- plt.close()
- return data
- def find_correlation(version):
- data = {}
- data = resample_rois(version)
- df = []
- fig, axs = plt.subplots(len(data),len(sources)+1, figsize=(8,20), sharey=True)
- for i, roi in enumerate(rois):
- ax_signals = axs[i,2]
- signals = []
- for j, source in enumerate(sources):
- img, annos, resampled = data[roi][source]
- if source == 'mri':
- target = resampled.img[:,:,0]
- # convert the RGB IHC data to grayscale using color deconvolution
- else:
- if source == 'lfb':
- ss = sana.color_deconvolution.StainSeparator('LFB-CV')
- stains = ss.separate(resampled.img)
- target = stains[:,:,0]
- else:
- ss = sana.color_deconvolution.StainSeparator('H-DAB')
- stains = ss.separate(resampled.img)
- target = stains[:,:,1]
- axs[i][j].imshow(target, cmap='gray', extent=(0, 2.64, -2, 2))
- axs[i][j].set_title(source.replace('meguro', 'Iron Stain').replace('mri', 'MRI T2*w'))
- axs[i][j].axis('off')
- # signal standardization
- target = (target - np.mean(target)) / np.std(target)
- signal = np.median(target, axis=1)[5:]
- signals.append(signal)
- # ax_signals.plot(np.linspace(0, 1, len(signal)), signal, label=source.replace('meguro', 'Iron Stain').replace('mri', 'MRI T2*w'), linewidth=3)
- ax_signals.legend(loc='center left', bbox_to_anchor=(.8, 0.5))
- ax_signals.set_xlabel('Cortical Depth')
- ax_signals.set_ylabel('Standardized Intensity')
- ax_signals.set_xticks([0, 0.25, 0.5, 0.75, 1.0])
- ax_signals.axhline(0, color='black')
- ax_signals.set_ylim([-2,2])
- ax_signals.set_xlim([0,1])
- # calculate and store the correlation between IHC and MRI
- X_signal = signals[-1]
- Y_signal = signals[0]
- ax_signals.plot(X_signal, Y_signal, '.')
- res = scipy.stats.pearsonr(X_signal, Y_signal)
- R = res.statistic
- pvalue = res.pvalue
- ax_signals.set_title(roi+' | '+r"$R=%.2f$" % (R), loc="left")
- ax_signals.set_yticks([-2, -1, 0, 1, 2])
- ax_signals.set_xticks([0, 0.25, 0.50, 0.75, 1.0])
- df.append({
- 'ROI': roi,
- f'R_{version}': R,
- f'p_{version}': pvalue
- })
- fig.tight_layout()
- plt.savefig(os.path.join('output', f'final_figure_{version}.png'))
- plt.close()
- df = pd.DataFrame(df)
- return df
- df_v1 = find_correlation("v1")
- df_v2 = find_correlation("v2")
- df = df_v1.merge(df_v2, on='ROI')
- df.to_csv(os.path.join('output', 'correlations.csv'), index=False)
- print(df)
- # %%
process_ggt_data.ipynb at commit 7d82f74, no license · at the source
Overview
- Department Neurology, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, USA
- Department Radiology, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, USA
- Pathology and Laboratory Medicine, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, USA
Abstract
Globular glial tauopathy is a 4-repeat tauopathy associated with heterogenous clinical syndromes, including primary progressive aphasia. Iron-reactive gliosis in mid-to-deep cortical layers has previously been reported in this disorder, but detailed anatomic localization and its relationship to clinical symptoms is understudied, particularly within the anatomic framework of primary progressive aphasia. In a series of five autopsy-confirmed patients with globular glial tauopathy and one healthy control, we utilize ultra-high-resolution whole-hemisphere ex vivo 7 Telsa MRI and digital pathology to study whole-hemisphere and local laminar/
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.
picsl-ftdc-computational-pathology/ftdc_ggt_paper
7d82f7436f6d773d65d0367e580bfc795d54efa2, 13 January 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
2 files
- process_ggt_data.ipynb, Jupyter, 343 lines, 1 match
- README.md, Text, 2 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:
- 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;
- 1 match 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
- doi:10.5061/
dryad.dbrv15fgk , at Dryad; found in DataCite
Data availability
All MRI imaging data that support this study are openly available via Dryad at the following link: https://
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, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 20 authors, 5 keywords, 1 funder, 29 references, 1 RRID.
Cite
This paper
Irwin, D. J., Emrani, S., Ohm, D. T., Trotman, W., Bahena, A., Teunissen-Bermeo, E., Sabatini, P., Das, S. R., Mizsei, G., Prabhakaran, K., Ittyerah, R., Coslett, H. B., Massimo, L., Wolk, D. A., Detre, J. A., Gee, J. C., Lee, E. B., Yushkevich, P., McMillan, C. T., & Tisdall, M. D. (2026). Clinicoanatomic localization of iron-rich gliosis in aphasic presentations of globular glial tauopathy. Brain communications, 8(3), fcag169. https://
BibTeX
@article{irwin2026clinic
author = {Irwin, David J and Emrani, Sheina and Ohm, Daniel T and Trotman, Winifred and Bahena, Alejandra and Teunissen-Bermeo, Eric and Sabatini, Philip and Das, Sandhitsu R and Mizsei, Gabor and Prabhakaran, Karthik and Ittyerah, Ranjit and Coslett, H Branch and Massimo, Lauren and Wolk, David A and Detre, John A and Gee, James C and Lee, Edward B and Yushkevich, Paul and McMillan, Corey T and Tisdall, M Dylan},
title = {{Clinicoanatomic localization of iron-rich gliosis in aphasic presentations of globular glial tauopathy}},
journal = {Brain communications},
year = {2026},
month = jun,
volume = {8},
number = {3},
pages = {fcag169},
publisher = {Oxford University Press},
issn = {2632-1297},
doi = {10.1093/
url = {https://
pmid = {42238478},
pmcid = {PMC13227947}
}
RIS
TY - JOUR
AU - Irwin, David J
AU - Emrani, Sheina
AU - Ohm, Daniel T
AU - Trotman, Winifred
AU - Bahena, Alejandra
AU - Teunissen-Bermeo, Eric
AU - Sabatini, Philip
AU - Das, Sandhitsu R
AU - Mizsei, Gabor
AU - Prabhakaran, Karthik
AU - Ittyerah, Ranjit
AU - Coslett, H Branch
AU - Massimo, Lauren
AU - Wolk, David A
AU - Detre, John A
AU - Gee, James C
AU - Lee, Edward B
AU - Yushkevich, Paul
AU - McMillan, Corey T
AU - Tisdall, M Dylan
TI - Clinicoanatomic localization of iron-rich gliosis in aphasic presentations of globular glial tauopathy
T2 - Brain communications
J2 - Brain Commun
PY - 2026
DA - 2026/
VL - 8
IS - 3
SP - fcag169
SN - 2632-1297
PB - Oxford University Press
DO - 10.1093/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1093/
"type": "article-journal",
"title": "Clinicoanatomic localization of iron-rich gliosis in aphasic presentations of globular glial tauopathy",
"container-title": "Brain communications",
"author": [
{
"family": "Irwin",
"given": "David J"
},
{
"family": "Emrani",
"given": "Sheina"
},
{
"family": "Ohm",
"given": "Daniel T"
},
{
"family": "Trotman",
"given": "Winifred"
},
{
"family": "Bahena",
"given": "Alejandra"
},
{
"family": "Teunissen-Bermeo",
"given": "Eric"
},
{
"family": "Sabatini",
"given": "Philip"
},
{
"family": "Das",
"given": "Sandhitsu R"
},
{
"family": "Mizsei",
"given": "Gabor"
},
{
"family": "Prabhakaran",
"given": "Karthik"
},
{
"family": "Ittyerah",
"given": "Ranjit"
},
{
"family": "Coslett",
"given": "H Branch"
},
{
"family": "Massimo",
"given": "Lauren"
},
{
"family": "Wolk",
"given": "David A"
},
{
"family": "Detre",
"given": "John A"
},
{
"family": "Gee",
"given": "James C"
},
{
"family": "Lee",
"given": "Edward B"
},
{
"family": "Yushkevich",
"given": "Paul"
},
{
"family": "McMillan",
"given": "Corey T"
},
{
"family": "Tisdall",
"given": "M Dylan"
}
],
"container-title-short":
"volume": "8",
"issue": "3",
"page": "fcag169",
"DOI": "10.1093/
"PMID": "42238478",
"PMCID": "PMC13227947",
"ISSN": "2632-1297",
"publisher": "Oxford University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
2
]
]
}
}
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.1002/hipo.70027 [code]
- Developing an Anatomically Valid Segmentation Protocol for Anterior Regions of the Medial Temporal Lobe for Neurodegenerative Diseases.Journal: HippocampusIn common: NiBabel, pandas, Matplotlib, 1 other tool, Alzheimer's / dementia, structural MRI / diffusion, 3 authors
- [2] doi:10.1093/braincomms/fcad147 [code]
- Antemortem network analysis of spreading pathology in autopsy-confirmed frontotemporal degeneration.Journal: Brain communicationsIn common: pandas, SciPy, Matplotlib, 1 other tool, Alzheimer's / dementia, structural MRI / diffusion, 2 references, 2 authors
- [3] doi:10.1038/s41467-024-49205-0 [code]
- Postmortem imaging reveals patterns of medial temporal lobe vulnerability to tau pathology in Alzheimer's disease.Journal: Nature communicationsIn common: NiBabel, pandas, SciPy, 2 other tools, Alzheimer's / dementia, structural MRI / diffusion, 1 reference, 2 authors
- [4] doi:10.1093/brain/awad145 [code]
- Data-driven neuropathological staging and subtyping of TDP-43 proteinopathies.Journal: Brain : a journal of neurologyIn common: pandas, SciPy, Matplotlib, 1 other tool, Alzheimer's / dementia, 1 reference, 2 authors
- [5] doi:10.1186/s40478-025-02030-y [code]
- Operationalizing postmortem pathology-MRI association studies in Alzheimer's disease and related disorders with MRI-guided histology sampling.Journal: Acta neuropathologica communicationsIn common: OpenCV, NiBabel, pandas, 3 other tools, Alzheimer's / dementia, structural MRI / diffusion, 2 references, author Edward B Lee
- [6] doi:10.1093/brain/awaf279 [code]
- Connectivity as a universal predictor of tau progression in atypical Alzheimer's disease.Journal: Brain : a journal of neurologyIn common: Alzheimer's / dementia, 2 references, 2 authors
- [7] doi:10.1016/j.nicl.2022.103285 [code]
- Event-based modeling of T1-weighted MRI is related to pathology in frontotemporal lobar degeneration due to tau and TDP.Journal: NeuroImage. ClinicalIn common: pandas, SciPy, Matplotlib, 1 other tool, Alzheimer's / dementia, structural MRI / diffusion, 2 references, author Edward B Lee
- [8] doi:10.1038/s41467-025-59216-0
- Deciphering distinct genetic risk factors for FTLD-TDP pathological subtypes via whole-genome sequencing.Journal: Nature communicationsIn common: Alzheimer's / dementia, 1 reference, 2 authors
- [9] doi:10.1002/alz.71649 [code]
- Postmortem brain MRI reveals differential associations of subcortical and limbic volumes with cortical thinning and neurodegenerative pathologies.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: OpenCV, NiBabel, pandas, 3 other tools, Alzheimer's / dementia, structural MRI / diffusion, cellular / molecular, 2 references
- [10] doi:10.1093/brain/awag105 [code]
- Medial temporal lobe tau-neurodegeneration mismatch from structural imaging and plasma biomarkers.Journal: Brain : a journal of neurologyIn common: NiBabel, pandas, SciPy, 2 other tools, Alzheimer's / dementia, structural MRI / diffusion, author Paul A Yushkevich
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 1 match 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:b34708596c5c3344…
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.1093/braincomms/fcag169)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1093/braincomms/fcag169.svg
:target: https://openscicode.org/badge/doi/10.1093/braincomms/fcag169
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/braincomms/fcag169"><img src="https://openscicode.org/badge/doi/10.1093/braincomms/fcag169.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.
