Temporal pole blurring in hippocampal sclerosis reflects seizure-disrupted myelination
The 3 matches
- [1] § Materials and methods › Surface-based and volumetric features › T1w intensity scores ↔ notebooks/plot_examples_reports.ipynb, lines 261–316 · score 0.55 · left hemispheric, right hemispheric, inter, brain, asymmetry, harmonised
- [2] § Materials and methods › Surface-based and volumetric features › T1w intensity scores ↔ scripts/manage_results/plot_prediction_report.py, lines 498–557 · score 0.55 · left hemispheric, right hemispheric, inter, brain, asymmetry, harmonised
- [3] § Materials and methods › Clinical relationships ↔ figure_generation/FIG2/fig_2.py, lines 99–116 · score 0.53 · FCD IIIa, temporopolar blurring score, correlation, duration, HS, onset
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
Jupyter notebook · 488 lines · 18 KB · other · 1 match
- # %% [markdown]
- # ## Notebook to plot example reports
- #
- # plot prediction, saliencies and MRI
- #
- # need to have run pipeline beforehand to get back prediction in native space
- # %%
- import os
- import sys
- import numpy as np
- import h5py
- import matplotlib_surface_plotting as msp
- import matplotlib.pyplot as plt
- from matplotlib.gridspec import GridSpec
- import nibabel as nb
- import meld_graph.experiment
- from meld_classifier.paths import BASE_PATH
- from meld_classifier.meld_cohort import MeldCohort,MeldSubject
- # %%
- def load_prediction(subject,hdf5,dset='prediction_clustered'):
- results={}
- with h5py.File(hdf5, "r") as f:
- for hemi in ['lh','rh']:
- results[hemi] = f[subject][hemi][dset][:]
- return results
- # %% [markdown]
- # ### plot salient vertices and saliencies
- # %%
- from meld_graph.dataset import GraphDataset
- from meld_graph.evaluation import Evaluator
- import matplotlib as mpl
- import matplotlib.cm as cm
- from meld_graph.data_preprocessing import Preprocess
- from meld_graph.confidence import get_confidence
- import matplotlib_surface_plotting as msp
- from meld_classifier.meld_plotting import trim
- from PIL import Image
- # %%
- def get_subj_data(subject_id, eva):
- #load data for that subject
- data_dictionary = eva.load_data_from_file(subject_id, keys=['result','cluster_thresholded','input_features'],
- split_hemis=True, )
- features_vals = data_dictionary['input_features']
- predictions = data_dictionary['cluster_thresholded']
- #find thresholds used if two thresholds
- if isinstance(eva.threshold, np.ndarray):
- if max(data_dictionary['result']['left'].max(), data_dictionary['result']['right'].max()) > eva.threshold[1]:
- threshold_text = "high confidence cluster"
- else :
- threshold_text = "No high confidence cluster\nLow confidence cluster given instead"
- else:
- threshold_text = ""
- #find clusters and load saliencies and confidence
- list_clust = {}
- confidences = {}
- saliencies = {}
- for hemi in ['left','right']:
- list_clust[hemi] = set(predictions[hemi])
- list_clust[hemi].remove(0.0)
- keys = [f'saliencies_{cl}' for cl in list_clust[hemi]] + [f'mask_salient_{cl}' for cl in list_clust[hemi]]
- saliencies.update(eva.load_data_from_file(subject_id,
- keys=keys,
- split_hemis=True))
- for cl in list_clust[hemi]:
- mask_salient = saliencies[f'mask_salient_{cl}'][hemi].astype(bool)
- confidence_cl_salient = np.max(data_dictionary['result'][hemi][mask_salient])
- confidences[f'confidence_{cl}'] = confidence_cl_salient
- return list_clust, features_vals, predictions, threshold_text, saliencies, confidences
- def load_cmap():
- """ create the colors dictionarry for the clusters"""
- from matplotlib.colors import ListedColormap
- import numpy as np
- colors = [
- [255,0,0], #red
- [255,215,0], #gold
- [0,0,255], #blue
- [0,128,0], #green
- ]
- colors=np.array(colors)/255
- dict_c = dict(zip(np.arange(1, len(colors)+1), colors))
- cmap = ListedColormap(colors)
- return cmap, dict_c
- def create_surface_plots(surf,prediction,c, base_size=20):
- """plot and reload surface images"""
- cmap, colors = load_cmap()
- tmp_file = 'tmp.png'
- msp.plot_surf(surf['coords'],
- surf['faces'],prediction,
- rotate=[90],
- mask=prediction==0,pvals=np.ones_like(c.cortex_mask),
- colorbar=False,vmin=1,vmax=len(colors) ,cmap=cmap,
- base_size=base_size,
- filename=tmp_file)
- im = Image.open(tmp_file)
- im = trim(im)
- im = im.convert("RGBA")
- im1 = np.array(im)
- msp.plot_surf(surf['coords'],
- surf['faces'],prediction,
- rotate=[270],
- mask=prediction==0,pvals=np.ones_like(c.cortex_mask),
- colorbar=False,vmin=1,vmax=len(colors),cmap=cmap,
- base_size=base_size,
- filename=tmp_file)
- im = Image.open(tmp_file)
- im = trim(im)
- im = im.convert("RGBA")
- im2 = np.array(im)
- plt.close('all')
- os.remove(tmp_file)
- return im1,im2
- def get_key(dic, val):
- # function to return key for any value in dictionnary
- for key, value in dic.items():
- if val == value:
- return key
- return "No key for value {}".format(val)
- def define_atlas():
- file = os.path.join(BASE_PATH, "fsaverage_sym", "label", "lh.aparc.annot")
- atlas = nb.freesurfer.io.read_annot(file)
- vertex_i = np.array(atlas[0]) - 1000 # subtract 1000 to line up vertex
- rois_prop = [
- np.count_nonzero(vertex_i == x) for x in set(vertex_i)
- ] # proportion of vertex per rois
- rois = [x.decode("utf8") for x in atlas[2]] # extract rois label from the atlas
- rois = dict(zip(rois, range(len(rois)))) # extract rois label from the atlas
- rois.pop("unknown") # roi not part of the cortex
- rois.pop("corpuscallosum") # roi not part of the cortex
- return rois, vertex_i, rois_prop
- def get_cluster_location(cluster_array):
- cluster_array = np.array(cluster_array)
- rois, vertex_i, rois_prop = define_atlas()
- pred_rois = list(vertex_i[cluster_array])
- pred_rois = np.array([[x, pred_rois.count(x)] for x in set(pred_rois) if x != 0])
- ind = pred_rois[np.where(pred_rois == pred_rois[:,1].max())[0]][0][0]
- location = get_key(rois,ind)
- return location
- # %%
- dataset = 'H101' # ""test" or "H101"
- # subjects=[
- # 'MELD_H16_3T_FCD_004',
- # # 'MELD_H4_3T_FCD_0011'
- # ]
- subjects=[
- #'MELD_H101_3T_FCD_00068' # low confidence one , not used anymore removed
- # 'MELD_H101_3T_FCD_00138', # high confidence, MRI+ve H101
- # 'MELD_H101_3T_FCD_00062', # low confidence, MRI-ve H101
- 'MELD_H101_3T_FCD_00108', # high confidence, MRI-ve H101
- 'MELD_H101_3T_FCD_00121', # low confidence, MRI-ve H101
- ]
- # %%
- # load experiment
- model_graph = 'experiments_graph/kw350/23-10-30_LVHZ_dcp/s_0/fold_all_newthreshold'
- exp = meld_graph.experiment.Experiment.from_folder(model_graph)
- exp.data_parameters["augment_data"] = {}
- #load trainval dataset
- split = "test"
- # if load subjects from test
- if dataset == 'H101':
- save_dir = 'experiments_graph/kw350/23-10-30_LVHZ_dcp/s_0/fold_all_newthreshold/test_H27H28H101'
- cohort = MeldCohort(
- hdf5_file_root="{site_code}_{group}_featurematrix_combat_freesurfer_harmonised_NewSite.hdf5",
- dataset='MELD_dataset_NewSiteH27H28H101_freesurfer.csv',
- )
- else:
- save_dir=None
- cohort = MeldCohort(
- hdf5_file_root=exp.data_parameters["hdf5_file_root"],
- dataset=exp.data_parameters["dataset"],
- )
- features = exp.data_parameters["features"]
- dataset = GraphDataset(subjects, cohort, exp.data_parameters, mode="test")
- save_prediction_suffix=""
- # create evaluator
- eva = Evaluator(
- experiment=exp,
- checkpoint_path=model_graph,
- make_images=True,
- dataset=dataset,
- save_dir=save_dir,
- cohort=cohort,
- subject_ids=subjects,
- mode="test",
- thresh_and_clust=True,
- threshold='slope_threshold',
- )
- # %%
- # # plot prediction and lesion
- # eva.plot_subjects_prediction()
- # %%
- # # calculate saliencies if does not exists
- # eva.calculate_saliency(save_prediction_suffix="")
- # %%
- input_dir = 'meld_data/Example_pts_graph/input'
- output_dir = 'meld_data/Example_pts_graph/output'
- # %%
- # setup parameters
- base_feature_sets = [
- ".on_lh.gm_FLAIR_0.5.sm3.mgh",
- ".on_lh.wm_FLAIR_1.sm3.mgh",
- ".on_lh.curv.sm3.mgh",
- ".on_lh.pial.K_filtered.sm20.mgh",
- ".on_lh.sulc.sm3.mgh",
- ".on_lh.thickness_regression.sm3.mgh",
- ".on_lh.w-g.pct.sm3.mgh",
- ]
- feature_names_sets = [
- "GM FLAIR (50%)",
- "WM FLAIR (1mm)",
- "Mean curvature",
- "Intrinsic Curvature",
- "Sulcal depth",
- "Cortical thickness",
- "Grey-white contrast",
- ]
- NVERT=293804
- for subject_id in subjects:
- subject = MeldSubject(subject_id, cohort=cohort)
- #create results folder
- os.makedirs(os.path.join(output_dir,subject_id,'reports'), exist_ok=True)
- # initialise parameter for plot
- fig = plt.figure(figsize=(15, 8), constrained_layout=True)
- if subject.has_flair:
- base_features = base_feature_sets
- feature_names = feature_names_sets
- else:
- base_features = base_feature_sets[2:]
- feature_names = feature_names_sets[2:]
- # load predictions and data subject
- list_clust, features_vals, predictions, threshold_text, saliencies, confidences = get_subj_data(subject_id, eva)
- # Loop over hemi
- for i, hemi in enumerate(["left", "right"]):
- # prepare grid plot
- gs1 = GridSpec(2, 3, width_ratios=[1, 1, 1], wspace=0.1, hspace=0.1)
- gs2 = GridSpec(2, 4, height_ratios=[1, 3], width_ratios=[1, 1, 0.5, 2], wspace=0.1)
- gs3 = GridSpec(1, 1)
- # plot predictions on inflated brain
- im1, im2 = create_surface_plots(cohort.surf, prediction=predictions[hemi], c=cohort)
- if hemi == "right":
- im1 = im1[:, ::-1]
- im2 = im2[:, ::-1]
- ax = fig.add_subplot(gs1[i, 1])
- ax.imshow(im1)
- ax.axis("off")
- title = 'Left hemisphere' if hemi=='left' else 'Right hemisphere'
- ax.set_title(title, loc="left", fontsize=20)
- ax = fig.add_subplot(gs1[i, 2])
- ax.imshow(im2)
- ax.axis("off")
- # initiate params for saliencies
- prefixes = [".combat", ".inter_z.intra_z.combat", ".inter_z.asym.intra_z.combat"]
- cmap = mpl.colors.LinearSegmentedColormap.from_list(
- "grpr",
- colors=[
- "#276419",
- "#FFFFFF",
- "#8E0152",
- ],
- )
- labels = ["Harmonised", "Normalised", "Asymmetry"]
- hatching = ["\\\\", "//", "--"]
- # loop over clusters
- for cluster in list_clust[hemi]:
- fig2 = plt.figure(figsize=(17, 9))
- # get and plot saliencies
- saliencies_cl = saliencies[f'saliencies_{cluster}'][hemi]
- saliencies_cl = saliencies_cl * (NVERT/2)
- # plot prediction and salient vertices
- mask = np.array([predictions[hemi] == cluster])[0]
- mask_salient = saliencies[f'mask_salient_{cluster}'][hemi].astype(bool)
- mask_comb = mask.astype(int)+mask_salient.astype(int)
- lims_saliencies_cl = 1.1*np.max([np.max(np.mean(saliencies_cl[mask_salient], axis=0)),-np.min(np.mean(saliencies_cl[mask_salient], axis=0))])
- norm = mpl.colors.Normalize(vmin=-lims_saliencies_cl, vmax=lims_saliencies_cl)
- m = cm.ScalarMappable(norm=norm, cmap=cmap)
- im1, im2 = create_surface_plots(cohort.surf, prediction=mask_comb, c=cohort, base_size=10)
- if hemi == "right":
- im1 = im1[:, ::-1]
- im2 = im2[:, ::-1]
- ax2 = fig2.add_subplot(gs2[1, 0])
- ax2.imshow(im1)
- ax2.axis("off")
- ax2 = fig2.add_subplot(gs2[1, 1])
- ax2.imshow(im2)
- ax2.axis("off")
- # ax2.set_title('Predicted cluster and\n20% most salient vertices', loc="left", fontsize=15)
- ax2 = fig2.add_subplot(gs2[:, 3],)
- for pr, prefix in enumerate(prefixes):
- cur_data = np.zeros(len(base_features))
- cur_err = np.zeros(len(base_features))
- saliency_data = np.zeros(len(base_features))
- for b, bf in enumerate(base_features):
- cur_data[b] = np.mean(
- np.array(features_vals[hemi][mask_salient, features.index(prefix + bf)])
- )
- cur_err[b] = np.std(
- np.array(features_vals[hemi][mask_salient, features.index(prefix + bf)])
- )
- saliency_data[b] = np.mean(
- saliencies_cl[mask_salient ,features.index(prefix + bf)]
- )
- ax2.barh(
- y=np.array(range(len(base_features))) - pr * 0.3,
- width=cur_data,
- hatch=hatching[pr],
- height=0.3,
- edgecolor="k",
- xerr=cur_err,
- label=labels[pr],
- color=m.to_rgba(saliency_data),
- )
- limvals = np.max([np.max(cur_data+cur_err),-np.min(cur_data-cur_err)])+0.5
- ax2.set_xlim([-limvals, limvals])
- # ax2.set_xticks([])
- ax2.set_yticks(np.array(range(len(base_features))) - 0.23)
- ax2.set_yticklabels(feature_names, fontsize=16)
- ax2.set_xlabel("Z score", fontsize=16)
- ax2.legend(loc="upper center", bbox_to_anchor=(0.5, 1.17), fontsize=16)
- fig2.colorbar(m, ax=ax2).set_label(label='Saliency',size=18,weight='bold')
- ax2.set_autoscale_on(True)
- ## display info cluster
- # get size
- size_clust = np.sum(cohort.surf_area[predictions[hemi] == cluster]) / 100
- size_clust = round(size_clust, 3)
- # get location
- location = get_cluster_location(predictions[hemi] == cluster)
- # get confidence
- confidence = round(confidences[f'confidence_{cluster}'].mean(),2)
- # plot info in text box in upper left in axes coords
- textstr = "\n".join(
- (
- f" Cluster {int(cluster)} on the {hemi} hemisphere",
- " ",
- f" Cluster size = {size_clust} cm2",
- " ",
- f" Cortical region = {location}",
- " ",
- f" Confidence score = {confidence}",
- " ",
- f"-{threshold_text}",
- )
- )
- props = dict(boxstyle="round", alpha=0.5)
- ax2 = fig2.add_subplot(gs2[0, 0:2])
- ax2.text(0.05, 0.95, textstr, transform=ax2.transAxes, fontsize=18, verticalalignment="top", bbox=props)
- ax2.axis("off")
- fig2.savefig(f"{output_dir}/{subject_id}/reports/saliency_{subject.subject_id}_{hemi}_c{int(cluster)}_combat.png", facecolor='white')
- # %%
- ### plot MRI
- import glob
- from nilearn import plotting, image
- from nilearn.image import new_img_like
- from nilearn._utils.numpy_conversions import as_ndarray
- subject_id= 'MELD_H101_3T_FCD_00121'
- # Open their MRI data if available
- t1_file = glob.glob(os.path.join(input_dir,subject_id,'T1', '*.nii.gz'))[0]
- prediction_file = glob.glob(os.path.join(output_dir, subject_id, "predictions", "prediction*"))[0]
- # load image
- imgs = {
- "anat": nb.load(t1_file),
- "pred": nb.load(prediction_file),
- }
- # # Resample and move to same shape and affine than t1
- imgs["pred"] = image.resample_img(
- imgs["pred"],
- target_affine=imgs["anat"].affine,
- target_shape=imgs["anat"].shape,
- interpolation="nearest",
- copy=True,
- order="F",
- clip=False,
- fill_value=0,
- force_resample=False,
- )
- # initialise parameter for plot
- fig = plt.figure(figsize=(15, 8), constrained_layout=True)
- # Loop over hemi
- for i, hemi in enumerate(["left", "right"]):
- # prepare grid plot
- gs3 = GridSpec(1, 1)
- for cluster in list_clust[hemi]:
- # plot cluster on anat MRI volume
- fig3 = plt.figure(figsize=(15, 8))
- ax3 = fig3.add_subplot(gs3[0])
- min_v = cluster - 1
- max_v = cluster + 1
- mask = image.math_img(f"(img < {max_v}) & (img > {min_v})", img=imgs[f"pred"])
- coords = plotting.find_xyz_cut_coords(mask)
- vmax = np.percentile(imgs["anat"].get_fdata(), 99)
- display = plotting.plot_anat(
- t1_file, colorbar=False, cut_coords=coords,
- draw_cross=False, radiological=True,
- figure=fig3, axes=ax3, vmax=vmax
- )
- for cut_ax in display.axes.values():
- slices_x = np.linspace(cut_ax.ax.get_xlim()[0], cut_ax.ax.get_xlim()[1],100)
- cut_ax.ax.set_xlim(slices_x[12], slices_x[-12])
- slices_y = np.linspace(cut_ax.ax.get_ylim()[0], cut_ax.ax.get_ylim()[1],100)
- cut_ax.ax.set_ylim(slices_y[12], slices_y[-12])
- fig3.savefig(f"{output_dir}/{subject_id}/reports/mri_{subject_id}_{hemi}_c{int(cluster)}_rawT1.png")
- #display cluster
- data = imgs["pred"].get_fdata()
- map_img = new_img_like(imgs["pred"], as_ndarray((data==cluster) | (data==cluster*100)).astype(float), imgs["pred"].affine)
- display.add_contours(
- map_img,
- levels=[0.5],
- colors=["red"],
- filled=True,
- alpha=0.7,
- linestyles="solid",
- )
- # display cluster salient vertices
- map_img = new_img_like(imgs["pred"], as_ndarray(data==cluster*100).astype(float), imgs["pred"].affine)
- display.add_contours(
- map_img,
- levels=[0.5],
- colors=["yellow"],
- filled=True,
- alpha=0.7,
- linestyles="solid",
- )
- fig3.savefig(f"{output_dir}/{subject_id}/reports/mri_{subject_id}_{hemi}_c{int(cluster)}_T1pred.png")
- # display FLAIR if exists
- flair_file = glob.glob(os.path.join(input_dir,subject_id,'FLAIR', '*.nii.gz'))[0]
- if os.path.isfile(flair_file):
- fig4 = plt.figure(figsize=(15, 8))
- ax4 = fig4.add_subplot(gs3[0])
- vmax = np.percentile(nb.load(flair_file).get_fdata(), 99)
- display2 = plotting.plot_anat(
- flair_file, colorbar=False, cut_coords=coords,
- draw_cross=False, radiological=True,
- figure=fig4, axes=ax4, vmax=vmax
- )
- for cut_ax in display2.axes.values():
- slices_x = np.linspace(cut_ax.ax.get_xlim()[0], cut_ax.ax.get_xlim()[1],100)
- cut_ax.ax.set_xlim(slices_x[12], slices_x[-12])
- slices_y = np.linspace(cut_ax.ax.get_ylim()[0], cut_ax.ax.get_ylim()[1],100)
- cut_ax.ax.set_ylim(slices_y[12], slices_y[-12])
- fig4.savefig(f"{output_dir}/{subject_id}/reports/mri_{subject_id}_{hemi}_c{int(cluster)}_raw_FLAIR.png")
plot_examples_reports.ipynb at commit 45f332d, under other · at the source
Overview
- UCL Queen Square Institute of Neurology, UCL, London, UK
- UCL Great Ormond Street Institute of Child Health, UCL, London, UK
- School of Biomedical Engineering & Imaging Sciences, King’s College London, London, UK
- Great Ormond Street Hospital, London, UK
- Beijing Tiantan Hospital, Capital Medical University, Beijing, China
- Epilepsy Center, Neurological Institute, Cleveland Clinic, Cleveland, USA
- Department of Medicine, Division of Neurology, Queen’s University, Kingston, Canada
Abstract
Blurring of the grey–white matter boundary in the ipsilateral temporal pole is frequently reported but poorly understood in patients with hippocampal sclerosis (HS). It is unclear whether it reflects seizure-driven disruption of myelination during development (developmental disruption hypothesis), degeneration from chronic seizures (seizure-driven degeneration hypothesis), or an extension of the primary HS pathology (shared pathology hypothesis). Prior studies have relied on reader-dependent, visual classification of blurring in small cohorts that were exclusively paediatric or adult.
We quantified MRI blurring and tested these three hypotheses in a cross-sectional cohort of 154 patients with histopathologically-conf
The three competing models for temporopolar blurring gave rise to distinct subject-level and topographic predictions. Developmental disruption would predict more pronounced blurring in patients with earlier epilepsy onset and in later myelinating areas. For seizure-driven degeneration, blurring should increase with duration of epilepsy and functional connectivity to the hippocampus. Finally, a shared pathology would predict increased blurring in those with focal cortical dysplasia (FCD) type IIIa compared to HS only, particularly affecting cortical regions with a similar molecular profile. Four topographic predictors: regional myelination timing, geodesic proximity, molecular similarity and functional connectivity to the hippocampus, were combined in a regression analysis and their relative importance was evaluated using dominance analysis.
Grey-white matter contrast was reduced in the ipsilateral temporal pole and entorhinal cortex, with 90% of patients below the 5th centile in controls. This was primarily driven by a white matter hypointensity 1mm below the grey–white matter boundary (U=
Temporopolar blurring is common in HS and driven by superficial white matter changes. It is best explained by early seizures disrupting ongoing myelination in cortex near the affected hippocampus, rather than a progressive consequence of chronic epilepsy or extension of the underlying hippocampal pathology.
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.
MELDProject/meld_graph
45f332d87d609a93cc965492cd684ab38df73a62, 23 September 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
108 files
- docs/
conf.py , Python, 67 lines - entrypoint.sh, Shell, 8 lines
- meld_graph/
__init__.py , Python, 3 lines - meld_graph/
augment.py , Python, 221 lines - meld_graph/
confidence.py , Python, 209 lines - meld_graph/
data_preprocessing.py , Python, 1,453 lines - meld_graph/
dataset.py , Python, 346 lines - meld_graph/
distributedCombat.py , Python, 288 lines - meld_graph/
distributedCombat_helper , Python, 443 liness.py - meld_graph/
download_data.py , Python, 53 lines - meld_graph/
ensemble.py , Python, 31 lines - meld_graph/
evaluation.py , Python, 1,208 lines - meld_graph/
experiment.py , Python, 389 lines - meld_graph/
freebrowse_viewer.py , Python, 223 lines - meld_graph/
graph_tools.py , Python, 95 lines - meld_graph/
hdf5_utils.py , Python, 57 lines - meld_graph/
icospheres.py , Python, 332 lines - meld_graph/
meld_cohort.py , Python, 698 lines - meld_graph/
meld_plotting.py , Python, 94 lines - meld_graph/
mesh_tools.py , Python, 643 lines - meld_graph/
models.py , Python, 537 lines - meld_graph/
paths.py , Python, 87 lines - meld_graph/
resampling_meshes.py , Python, 121 lines - meld_graph/
spiralconv.py , Python, 61 lines - meld_graph/
test/ , Python, 50 linestest_data_exists.py - meld_graph/
test/ , Python, 93 linestest_dataset.py - meld_graph/
test/ , Python, 178 linestest_experiment.py - meld_graph/
test/ , Python, 32 linestest_freesurfer.py - meld_graph/
test/ , Python, 188 linestest_meld_cohort.py - meld_graph/
test/ , Python, 31 linestest_meld_license.py - meld_graph/
test/ , Python, 91 linestest_meld_subject.py - meld_graph/
test/ , Python, 95 linestest_predict_newsubject. py - meld_graph/
test/ , Python, 233 linestest_script_run.py - meld_graph/
test/ , Python, 55 linesutils.py - meld_graph/
tools_pipeline.py , Python, 153 lines - meld_graph/
training.py , Python, 838 lines - meldgraph.sh, Shell, 12 lines
- meldsetup.sh, Shell, 9 lines
- notebooks/
analysis_dataset_mrineg_ , Jupyter, 310 lineshisto.ipynb - notebooks/
analysis_lesion_mask.ipy , Jupyter, 133 linesnb - notebooks/
analysis_predictions.ipy , Jupyter, 748 linesnb - notebooks/
auc_comparisons.ipynb , Jupyter, 76 lines - notebooks/
combat_subsampling.ipynb , Jupyter, 303 lines - notebooks/
compare_results_MLP.ipyn , Jupyter, 828 linesb - notebooks/
demographics_table.ipynb , Jupyter, 351 lines - notebooks/
plot_confidence_calibrat , Jupyter, 142 linesion.ipynb - notebooks/
plot_examples_prediction , Jupyter, 145 lines.ipynb - notebooks/
plot_examples_reports.ip , Jupyter, 488 lines, 1 matchynb - scripts/
__init__.py , Python, 3 lines - scripts/
classifier/ , Python, 100 linescalculate_dropout_confid ence.py - scripts/
classifier/ , Python, 135 linescalculate_thresholds.py - scripts/
classifier/ , Python, 119 linescreate_config.py - scripts/
classifier/ , Python, 97 linescreate_ensemble.py - scripts/
classifier/ , Python, 26 linescross_val_aucs.py - scripts/
classifier/ , Python, 141 linesevaluate_single_model.py - scripts/
classifier/ , Python, 29 linestrain.py - scripts/
config_files/ , Python, 168 lines23-10-30_LVHZ_dcp/ fold_00/ s_0.py - scripts/
config_files/ , Python, 168 lines24-08-01_MRIN_dcp/ fold_00/ s_0.py - scripts/
config_files/ , Python, 168 lines24-08-01_MRIN_dcp/ fold_01/ s_0.py - scripts/
config_files/ , Python, 168 lines24-08-01_MRIN_dcp/ fold_02/ s_0.py - scripts/
config_files/ , Python, 168 lines24-08-01_MRIN_dcp/ fold_03/ s_0.py - scripts/
config_files/ , Python, 168 lines24-08-01_MRIN_dcp/ fold_04/ s_0.py - scripts/
config_files/ , Python, 165 linesbase_config.py - scripts/
config_files/ , Python, 254 linesexample_experiment_confi g.py - scripts/
config_files/ , Python, 148 linesfinal_ablation_baseline_ nnunet.py - scripts/
config_files/ , Python, 150 linesfinal_ablation_cop.py - scripts/
config_files/ , Python, 150 linesfinal_ablation_dco.py - scripts/
config_files/ , Python, 150 linesfinal_ablation_dcop.py - scripts/
config_files/ , Python, 150 linesfinal_ablation_dcp.py - scripts/
config_files/ , Python, 149 linesfinal_ablation_dop.py - scripts/
config_files/ , Python, 150 linesfinal_ablation_full_with _combat.py - scripts/
config_files/ , Python, 239 linesfold_var.py - scripts/
config_files/ , Python, 366 linesfold_var_subsampling.py - scripts/
data_preparation/ , Python, 126 linescalculate_feature_means_ stds.py - scripts/
data_preparation/ , Python, 98 linescreate_icospheres.py - scripts/
data_preparation/ , Python, 66 linescreate_scaling_parameter s.py - scripts/
data_preparation/ , Python, 63 linescurvature_regression.py - scripts/
data_preparation/ , Python, 29 linesextract_features/ create_identity_reg.py - scripts/
data_preparation/ , Python, 72 linesextract_features/ create_training_data_hdf 5.py - scripts/
data_preparation/ , Python, 81 linesextract_features/ create_xhemi.py - scripts/
data_preparation/ , Python, 177 linesextract_features/ io_meld.py - scripts/
data_preparation/ , Python, 44 linesextract_features/ lesion_labels.py - scripts/
data_preparation/ , Python, 90 linesextract_features/ move_to_xhemi_flip.py - scripts/
data_preparation/ , Python, 164 linesextract_features/ sample_FLAIR_smooth_feat ures.py - scripts/
data_preparation/ , Python, 200 linesmsm_registrations.py - scripts/
data_preparation/ , Python, 208 linesmsm_registrations_all.py - scripts/
data_preparation/ , Python, 67 linessave_curv_sulc.py - scripts/
data_preparation/ , Python, 54 linessave_flipping_parameters _icospheres.py - scripts/
data_preparation/ , Python, 55 linessave_spinning_parameters _icospheres.py - scripts/
data_preparation/ , Python, 66 linessave_transform_parameter s_nearest.py - scripts/
data_preparation/ , Python, 59 linessave_warping_parameters_ icospheres.py - scripts/
data_preparation/ , Python, 43 linestransfer_lesions_to_msm. py - scripts/
env_setup.py , Python, 31 lines - scripts/
manage_results/ , Python, 92 linesmove_predictions_to_mgh. py - scripts/
manage_results/ , Python, 873 lines, 1 matchplot_prediction_report.p y - scripts/
manage_results/ , Python, 108 linesregister_back_to_xhemi.p y - scripts/
new_patient_pipeline/ , Python, 120 linescreate_qc_viewer_html.py - scripts/
new_patient_pipeline/ , Python, 143 linesmerge_predictions_t1.py - scripts/
new_patient_pipeline/ , Python, 206 linesnew_pt_pipeline.py - scripts/
new_patient_pipeline/ , Python, 79 linesnew_pt_qc_script.py - scripts/
new_patient_pipeline/ , Python, 81 linesnew_pt_qc_script_standal one.py - scripts/
new_patient_pipeline/ , Python, 108 linesprepare_classifier.py - scripts/
new_patient_pipeline/ , Python, 271 linesrun_script_prediction.py - scripts/
new_patient_pipeline/ , Python, 386 linesrun_script_preprocessing .py - scripts/
new_patient_pipeline/ , Python, 557 linesrun_script_segmentation. py - setup.py, Python, 22 lines
- LICENSE.md, License, 131 lines
- README.md, Text, 108 lines
AliAfsharmoqaddam/NeoHipp
660af4cd7757fcf93215cc2a404fcc3c1b49bc73, 23 July 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
16 files
- figure_generation/
FIG1/ , Python, 100 linesfig_1a.py - figure_generation/
FIG1/ , Python, 41 linesfig_1b.py - figure_generation/
FIG1/ , Python, 139 linesfig_1c.py - figure_generation/
FIG1/ , Python, 364 linesfig_1d+supp.py - figure_generation/
FIG2/ , Python, 401 lines, 1 matchfig_2.py - figure_generation/
FIG3/ , Python, 191 linesfig_3.py - figure_generation/
SUPP/ , Python, 244 linessupp_fig_2.py - preprocessing/
T1_sampling.py , Python, 85 lines - preprocessing/
clipping.py , Python, 98 lines - preprocessing/
combat_harmonise.py , Python, 31 lines - preprocessing/
hdf5.py , Python, 159 lines - preprocessing/
normalisation.py , Python, 28 lines - preprocessing/
smoothing.py , Python, 31 lines - preprocessing/
xhemi_register.py , Python, 105 lines - LICENSE, License, 21 lines
- README.md, Text, 375 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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 120 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 and Code availability
Code is available at 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, journal, dates, 14 authors, 5 keywords, 2 funders, 49 references.
Cite
This paper
Afsharmoqaddam, A., Ripart, M., Eriksson, M. H., Piper, R. J., Mo, J., Su, T.-Y., Kochi, R., Clark, C. A., Zhang, K., Winston, G. P., Wang, I., Duncan, J. S., Adler, S., & Wagstyl, K. (2026). Temporal pole blurring in hippocampal sclerosis reflects seizure-disrupted myelination. medRxiv (preprint). https://
BibTeX
@article{afsharmoqaddam2
author = {Afsharmoqaddam, Ali and Ripart, Mathilde and Eriksson, Maria H. and Piper, Rory J. and Mo, Jiajie and Su, Ting-Yu and Kochi, Ryuzaburo and Clark, Chris A and Zhang, Kai and Winston, Gavin P. and Wang, Irene and Duncan, John S. and Adler, Sophie and Wagstyl, Konrad},
title = {{Temporal pole blurring in hippocampal sclerosis reflects seizure-disrupted myelination}},
journal = {medRxiv (preprint)},
year = {2026},
month = aug,
publisher = {medRxiv},
doi = {10.64898/
url = {https://
}
RIS
TY - JOUR
AU - Afsharmoqaddam, Ali
AU - Ripart, Mathilde
AU - Eriksson, Maria H.
AU - Piper, Rory J.
AU - Mo, Jiajie
AU - Su, Ting-Yu
AU - Kochi, Ryuzaburo
AU - Clark, Chris A
AU - Zhang, Kai
AU - Winston, Gavin P.
AU - Wang, Irene
AU - Duncan, John S.
AU - Adler, Sophie
AU - Wagstyl, Konrad
TI - Temporal pole blurring in hippocampal sclerosis reflects seizure-disrupted myelination
T2 - medRxiv (preprint)
J2 - medRxiv
PY - 2026
DA - 2026/
PB - medRxiv
DO - 10.64898/
UR - https://
ER -
CSL-JSON
{
"id": "10.64898/
"type": "article",
"title": "Temporal pole blurring in hippocampal sclerosis reflects seizure-disrupted myelination",
"container-title": "medRxiv (preprint)",
"author": [
{
"family": "Afsharmoqaddam",
"given": "Ali"
},
{
"family": "Ripart",
"given": "Mathilde"
},
{
"family": "Eriksson",
"given": "Maria H."
},
{
"family": "Piper",
"given": "Rory J."
},
{
"family": "Mo",
"given": "Jiajie"
},
{
"family": "Su",
"given": "Ting-Yu"
},
{
"family": "Kochi",
"given": "Ryuzaburo"
},
{
"family": "Clark",
"given": "Chris A"
},
{
"family": "Zhang",
"given": "Kai"
},
{
"family": "Winston",
"given": "Gavin P."
},
{
"family": "Wang",
"given": "Irene"
},
{
"family": "Duncan",
"given": "John S."
},
{
"family": "Adler",
"given": "Sophie"
},
{
"family": "Wagstyl",
"given": "Konrad"
}
],
"container-title-short":
"DOI": "10.64898/
"publisher": "medRxiv",
"URL": "https://
"issued": {
"date-parts": [
[
2026,
8,
21
]
]
}
}
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.1007/s00234-026-04103-8 [code]
- Enhanced detection of subtle cortical abnormalities in focal epilepsy using 7 T MRI surface-based models and graph neural networks.Journal: NeuroradiologyIn common: neuroCombat, PyBIDS, statannotations, 14 other tools, epilepsy, structural MRI / diffusion, 5 references
- [2] doi:10.1038/s41467-026-71270-w [code]
- Spatiotemporal dynamics of the human cortical functional hierarchy across the lifespan.Journal: Nature communicationsIn common: PyBIDS, BrainSpace, FreeSurfer, 10 other tools, 3 references
- [3] doi:10.1038/s41467-026-74153-2 [code]
- Regional, functional and transcriptomic decoding of multidimensional brain structure alterations in obsessive-compulsive disorder.Journal: Nature communicationsIn common: neuroCombat, BrainSpace, FreeSurfer, 7 other tools, cellular / molecular, 5 references
- [4] doi:10.21203/rs.3.rs-9326213/v1 [code]
- Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brainJournal: Research Square (preprint)In common: statannotations, FreeSurfer, Nilearn, 10 other tools, 2 references
- [5] doi:10.64898/2026.03.09.710558 [code]
- Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brainJournal: bioRxiv (preprint)In common: statannotations, FreeSurfer, Nilearn, 10 other tools, 2 references
- [6] doi:10.1002/epi4.70336 [code]
- Quantifying extra-lesional interhemispheric cortical asymmetry in focal cortical dysplasia type II.Journal: Epilepsia openIn common: statannotations, Nilearn, NiBabel, 7 other tools, epilepsy, structural MRI / diffusion, 3 references
- [7] doi:10.1002/agm2.70073 [code]
- Foreign Language Learning in Older Adults Modifies Resting-State Functional Connectivity Between the Subcortical Structures and the Cortex.Journal: Aging medicine (Milton (N.S.W))In common: BrainSpace, FreeSurfer, Nilearn, 11 other tools
- [8] doi:10.1038/s41467-026-75959-w [code]
- Charting higher-order models of brain function beyond pairwise interactions.Journal: Nature communicationsIn common: BrainSpace, Nilearn, h5py, 8 other tools, 4 references
- [9] doi:10.1038/s41467-026-71719-y [code]
- Brain functional-structural gradient coupling reflects development, behavior and genetic influences.Journal: Nature communicationsIn common: BrainSpace, FreeSurfer, Nilearn, 8 other tools, 3 references
- [10] doi:10.1016/j.isci.2026.117446 [code]
- Volume-inflation registration (INFREG) for morphometric analysis of human focal cortical dysplasia type II.Journal: iScienceIn common: PyTorch Geometric, FreeSurfer, NiBabel, 5 other tools, epilepsy, structural MRI / diffusion, 4 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.
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: 2 repositories of the authors' code, each at its verified commit and with its license, 120 scripts, and 3 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:cf8c0e644d1cf754…
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.
