OSCR

Association Between Anterior Hippocampal Gyrification and Episodic Memory Performance in Neurotypical Young Adults.

Code ↔ Paper

2 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.

2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 2 matches
  1. [1] § Materials and Methods › Hippocampal Segmentation Using HippUnfold ↔ hippunfold/workflow/scripts/seg_synthseg.py, lines 497 to 522 · score 0.56 · SynthSeg, UNet, network, model, HippUnfold, nn · block oscr:b:1R6G4307NQQSG-9 · Report a mismatch
  2. [2] § Materials and Methods › Hippocampal Segmentation Using HippUnfold ↔ nnunetv2/experiment_planning/experiment_planners/default_experiment_planner.py, lines 155 to 196 · score 0.50 · lower resolution, artifacts, anisotropic, smaller, voxel, trained · block oscr:b:SZRQXPZYKQVXF-G · 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

Python · 636 lines · 19 KB · MIT · 1 match

  1. #!/usr/bin/env python3
  2. """
  3. Fully isolated SynthSeg inference script for hippocampus segmentation.
  4. This script contains all necessary code and does not require local imports.
  5. Author: Mahmoud Yaser (mahmoud1yaser)
  6. """
  7. import argparse
  8. import os
  9. import time
  10. from collections.abc import Sequence
  11. import nibabel as nib
  12. import numpy as np
  13. import torch
  14. from cornucopia import LoadTransform
  15. from cornucopia.utils import warps # original sampling ops
  16. from torch import nn
  17. # utils.ensure_list equivalent
  18. def _ensure_list(x, size=None, crop=True):
  19. if not isinstance(x, (list, tuple, range)):
  20. x = [x]
  21. elif not isinstance(x, list):
  22. x = list(x)
  23. if size and len(x) < size:
  24. x += x[-1:] * (size - len(x))
  25. if size and crop:
  26. x = x[:size]
  27. return x
  28. # === Modules (subset of learn2synth.modules) ===
  29. class ConvBlockBase(nn.Sequential):
  30. """Original ConvBlockBase (order auto-fix, norm channel inference)."""
  31. def __init__(
  32. self,
  33. ndim,
  34. in_channels,
  35. out_channels,
  36. opt_conv=None,
  37. activation="LeakyReLU",
  38. norm=None,
  39. dropout=False,
  40. order="cand",
  41. ):
  42. super().__init__()
  43. self.order = self._fix_order(order)
  44. conv_cls = getattr(nn, f"Conv{ndim}d")
  45. opt_conv = dict(opt_conv or {})
  46. opt_conv.setdefault("kernel_size", 3)
  47. opt_conv.setdefault("bias", True)
  48. opt_conv.setdefault("padding", "same")
  49. conv = conv_cls(in_channels, out_channels, **opt_conv)
  50. act = self._make_activation(activation)
  51. drop = self._make_dropout(dropout, ndim)
  52. norm_mod = self._make_norm(norm, ndim, conv, self.order)
  53. for ch in self.order:
  54. if ch == "n" and norm_mod is not None:
  55. self.add_module("norm", norm_mod)
  56. elif ch == "c":
  57. self.add_module("conv", conv)
  58. elif ch == "d" and drop is not None:
  59. self.add_module("dropout", drop)
  60. elif ch == "a" and act is not None:
  61. self.add_module("activation", act)
  62. @staticmethod
  63. def _fix_order(order):
  64. order = order.lower()
  65. for ch in "ncda":
  66. if ch not in order:
  67. order += ch
  68. return order
  69. @staticmethod
  70. def _make_activation(activation):
  71. if not activation:
  72. return None
  73. if isinstance(activation, str):
  74. activation = getattr(nn, activation)
  75. return activation() if isinstance(activation, type) else activation
  76. @staticmethod
  77. def _make_dropout(dropout, ndim):
  78. if not dropout:
  79. return None
  80. if isinstance(dropout, (int, float)):
  81. return getattr(nn, f"Dropout{ndim}d")(p=float(dropout))
  82. return dropout() if isinstance(dropout, type) else dropout
  83. @staticmethod
  84. def _make_norm(norm, ndim, conv, order):
  85. if not norm:
  86. return None
  87. if isinstance(norm, bool) and norm:
  88. norm = "batch"
  89. idx_n = order.index("n")
  90. idx_c = order.index("c")
  91. in_ch = conv.in_channels if idx_n < idx_c else conv.out_channels
  92. if isinstance(norm, str):
  93. if "instance" in norm.lower():
  94. norm_cls = getattr(nn, f"InstanceNorm{ndim}d")
  95. return norm_cls(in_ch)
  96. if "batch" in norm.lower():
  97. norm_cls = getattr(nn, f"BatchNorm{ndim}d")
  98. return norm_cls(in_ch)
  99. if "layer" in norm.lower():
  100. return nn.GroupNorm(in_ch, in_ch)
  101. return norm() if isinstance(norm, type) else norm
  102. class ConvBlock(ConvBlockBase):
  103. def __init__(
  104. self,
  105. ndim,
  106. in_channels,
  107. out_channels,
  108. kernel_size=3,
  109. bias=True,
  110. activation="LeakyReLU",
  111. norm="instance",
  112. dropout=0,
  113. order="cand",
  114. ):
  115. super().__init__(
  116. ndim,
  117. in_channels,
  118. out_channels,
  119. opt_conv={"kernel_size": kernel_size, "bias": bias, "padding": "same"},
  120. activation=activation,
  121. norm=norm,
  122. dropout=dropout,
  123. order=order,
  124. )
  125. class ConvGroup(nn.Sequential):
  126. """Original ConvGroup logic (handles in/mid/out transitions, residual)."""
  127. def __init__(
  128. self,
  129. ndim,
  130. in_channels,
  131. mid_channels=None,
  132. out_channels=None,
  133. kernel_size=3,
  134. nb_conv=2,
  135. residual=False,
  136. activation="LeakyReLU",
  137. norm="instance",
  138. dropout=0,
  139. order="cand",
  140. ):
  141. self.residual = residual
  142. mid_channels = mid_channels or in_channels
  143. out_channels = out_channels or mid_channels
  144. nb_conv = (
  145. nb_conv - (in_channels != mid_channels) - (out_channels != mid_channels)
  146. )
  147. layers = []
  148. if in_channels != mid_channels:
  149. layers.append(
  150. ConvBlock(
  151. ndim,
  152. in_channels,
  153. mid_channels,
  154. kernel_size,
  155. activation=activation,
  156. norm=norm,
  157. dropout=dropout,
  158. order=order,
  159. )
  160. )
  161. for _ in range(nb_conv):
  162. layers.append(
  163. ConvBlock(
  164. ndim,
  165. mid_channels,
  166. mid_channels,
  167. kernel_size,
  168. activation=activation,
  169. norm=norm,
  170. dropout=dropout,
  171. order=order,
  172. )
  173. )
  174. if out_channels != mid_channels:
  175. layers.append(
  176. ConvBlock(
  177. ndim,
  178. mid_channels,
  179. out_channels,
  180. kernel_size,
  181. activation=activation,
  182. norm=norm,
  183. dropout=dropout,
  184. order=order,
  185. )
  186. )
  187. super().__init__(*layers)
  188. def forward(self, x):
  189. if self.residual:
  190. for layer in self:
  191. ident = x
  192. x = layer(x)
  193. if x.shape[1] == ident.shape[1]:
  194. x = x + ident
  195. return x
  196. return super().forward(x)
  197. class Downsample(nn.Module):
  198. """Original warps-based Downsample."""
  199. def __init__(self, factor=2, anchor="center"):
  200. super().__init__()
  201. self.factor = factor
  202. self.anchor = anchor
  203. def forward(self, x, shape=None):
  204. factor = None if shape else self.factor
  205. return warps.downsample(x, factor, shape, self.anchor)
  206. class Upsample(nn.Module):
  207. """Original warps-based Upsample."""
  208. def __init__(self, factor=2, anchor="center"):
  209. super().__init__()
  210. self.factor = factor
  211. self.anchor = anchor
  212. def forward(self, x, shape=None):
  213. factor = None if shape else self.factor
  214. return warps.upsample(x, factor, shape, self.anchor)
  215. class ConvBlockDown(nn.Sequential):
  216. """Original ConvBlockDown (downsample + conv group)."""
  217. def __init__(
  218. self,
  219. ndim,
  220. in_channels,
  221. out_channels,
  222. factor=2,
  223. kernel_size=3,
  224. activation="LeakyReLU",
  225. norm="instance",
  226. dropout=0,
  227. order="cand",
  228. ):
  229. super().__init__()
  230. self.downsample = Downsample(factor=factor)
  231. self.conv = ConvBlock(
  232. ndim,
  233. in_channels,
  234. out_channels,
  235. kernel_size=kernel_size,
  236. activation=activation,
  237. norm=norm,
  238. dropout=dropout,
  239. order=order,
  240. )
  241. def forward(self, x):
  242. return self.conv(self.downsample(x))
  243. class ConvBlockUp(nn.Module):
  244. """Original ConvBlockUp (conv + upsample + skip combine)."""
  245. def __init__(
  246. self,
  247. ndim,
  248. in_channels,
  249. out_channels,
  250. factor=2,
  251. kernel_size=3,
  252. activation="LeakyReLU",
  253. norm="instance",
  254. dropout=0,
  255. order="cand",
  256. combine="cat",
  257. ):
  258. super().__init__()
  259. self.conv = ConvBlock(
  260. ndim,
  261. in_channels,
  262. out_channels,
  263. kernel_size=kernel_size,
  264. activation=activation,
  265. norm=norm,
  266. dropout=dropout,
  267. order=order,
  268. )
  269. self.upsample = Upsample(factor=factor)
  270. self.combine = combine
  271. def forward(self, x, skip=None):
  272. shape = None if skip is None else skip.shape[2:]
  273. x = self.conv(x)
  274. x = self.upsample(x, shape)
  275. if skip is not None:
  276. x = torch.cat([x, skip], dim=1) if self.combine == "cat" else x + skip
  277. return x
  278. class EncoderBlock(nn.Sequential):
  279. def __init__(self, down, conv):
  280. super().__init__()
  281. self.down = down
  282. self.conv = conv
  283. def forward(self, x):
  284. return self.conv(self.down(x))
  285. class DecoderBlock(nn.Sequential):
  286. def __init__(self, conv, up):
  287. super().__init__()
  288. self.conv = conv
  289. self.up = up
  290. def forward(self, x, skip=None):
  291. x = self.conv(x)
  292. return self.up(x, skip)
  293. class UNet(nn.Module):
  294. """Original-style UNet (encoder/decoder pyramids with warps sampling)."""
  295. class defaults:
  296. nb_levels = 6
  297. nb_features = (16, 24, 32, 48, 64, 96, 128, 192, 256, 320)
  298. nb_conv = 2
  299. kernel_size = 3
  300. activation = "LeakyReLU"
  301. norm = "instance"
  302. dropout = 0
  303. residual = False
  304. factor = 2
  305. use_strides = False
  306. order = "cand"
  307. combine = "cat"
  308. def __init__(self, ndim, **kwargs):
  309. super().__init__()
  310. # load defaults
  311. for k, v in UNet.defaults.__dict__.items():
  312. if not k.startswith("_"):
  313. kwargs.setdefault(k, v)
  314. for k, v in kwargs.items():
  315. setattr(self, k, v)
  316. self.ndim = ndim
  317. self.nb_features = _ensure_list(self.nb_features, self.nb_levels)
  318. self.in_channels = self.out_channels = self.nb_features[0]
  319. # encoder
  320. i, o = self.nb_features[0], self.nb_features[0]
  321. encoder = [self._conv_block(i, o)]
  322. for n in range(1, len(self.nb_features) - 1):
  323. i, o = self.nb_features[n - 1], self.nb_features[n]
  324. encoder.append(EncoderBlock(self._down_block(i, o), self._conv_block(o)))
  325. if self.nb_levels > 1:
  326. i, o = self.nb_features[-2], self.nb_features[-1]
  327. encoder.append(self._down_block(i, o))
  328. self.encoder = nn.Sequential(*encoder)
  329. # decoder
  330. decoder = []
  331. for n in range(len(self.nb_features) - 1):
  332. i, o = self.nb_features[-n - 1], self.nb_features[-n - 2]
  333. m = i
  334. if self.combine == "cat" and n > 0:
  335. i *= 2
  336. decoder.append(DecoderBlock(self._conv_block(i, m), self._up_block(m, o)))
  337. i, o = self.nb_features[0], self.nb_features[0]
  338. if self.nb_levels > 1 and self.combine == "cat":
  339. i *= 2
  340. decoder.append(self._conv_block(i, o))
  341. self.decoder = nn.Sequential(*decoder)
  342. def _conv_block(self, i, o=None):
  343. return ConvGroup(
  344. self.ndim,
  345. i,
  346. o or i,
  347. kernel_size=self.kernel_size,
  348. nb_conv=self.nb_conv,
  349. activation=self.activation,
  350. norm=self.norm,
  351. dropout=self.dropout,
  352. order=self.order,
  353. residual=self.residual,
  354. )
  355. def _down_block(self, i, o=None):
  356. return ConvBlockDown(
  357. self.ndim,
  358. i,
  359. o or i,
  360. factor=self.factor,
  361. kernel_size=1,
  362. activation=self.activation,
  363. norm=self.norm,
  364. dropout=self.dropout,
  365. order=self.order,
  366. )
  367. def _up_block(self, i, o=None):
  368. return ConvBlockUp(
  369. self.ndim,
  370. i,
  371. o or i,
  372. factor=self.factor,
  373. kernel_size=1,
  374. activation=self.activation,
  375. norm=self.norm,
  376. dropout=self.dropout,
  377. order=self.order,
  378. combine=self.combine,
  379. )
  380. def forward(self, x):
  381. nb_levels = len(self.encoder)
  382. if any(s < 2**nb_levels for s in x.shape[2:]):
  383. raise ValueError(
  384. f"UNet with {nb_levels} levels requires input spatial dims >= {2**nb_levels}"
  385. )
  386. skips = []
  387. for layer in self.encoder:
  388. x = layer(x)
  389. skips.append(x)
  390. x = skips.pop(-1)
  391. for n in range(len(self.decoder) - 1):
  392. x = self.decoder[n].conv(x)
  393. x = self.decoder[n].up(x, skips.pop(-1))
  394. x = self.decoder[-1](x)
  395. return x
  396. class SegNet(nn.Sequential):
  397. def __init__(
  398. self,
  399. ndim,
  400. in_channels,
  401. out_channels,
  402. kernel_size=3,
  403. activation="Softmax",
  404. backbone="UNet",
  405. kwargs_backbone=None,
  406. ):
  407. if isinstance(backbone, str):
  408. backbone_cls = globals()[backbone]
  409. backbone = backbone_cls(ndim, **(kwargs_backbone or {}))
  410. act = None
  411. if (
  412. activation
  413. and isinstance(activation, str)
  414. and activation.lower() == "softmax"
  415. ):
  416. act = nn.Softmax(1)
  417. feat = ConvBlock(
  418. ndim,
  419. in_channels,
  420. backbone.in_channels,
  421. kernel_size=kernel_size,
  422. activation=None,
  423. norm=None,
  424. )
  425. pred = ConvBlock(
  426. ndim,
  427. backbone.out_channels,
  428. out_channels,
  429. kernel_size=1,
  430. activation=act,
  431. norm=None,
  432. )
  433. super().__init__(feat, backbone, pred)
  434. class SynthSeg(nn.Module):
  435. def __init__(self, segnet):
  436. super().__init__()
  437. self.segnet = segnet
  438. def forward(self, x):
  439. return self.segnet(x)
  440. class Model(nn.Module):
  441. def __init__(
  442. self,
  443. ndim: int = 3,
  444. nb_classes: int = 9,
  445. seg_nb_levels: int = 6,
  446. seg_features: Sequence[int] = (16, 24, 32, 48, 64, 96),
  447. seg_activation: str = "LeakyReLU",
  448. seg_nb_conv: int = 2,
  449. seg_norm: str | None = "instance",
  450. **kwargs,
  451. ):
  452. super().__init__()
  453. backbone = UNet(
  454. ndim,
  455. nb_levels=seg_nb_levels,
  456. nb_features=seg_features,
  457. nb_conv=seg_nb_conv,
  458. activation=seg_activation,
  459. norm=seg_norm,
  460. )
  461. segnet = SegNet(ndim, 1, nb_classes, backbone=backbone, activation=None)
  462. self.network = SynthSeg(segnet)
  463. def forward(self, x):
  464. return self.network(x)
  465. # add Real synth patch class and apply after instantiation
  466. class Real(torch.nn.Module):
  467. def __init__(self, synth):
  468. super().__init__()
  469. self.synth = synth
  470. def forward(self, slab, img, lab):
  471. mask = (lab >= 1001) & (lab <= 1008)
  472. new_lab = torch.zeros_like(lab)
  473. new_lab[mask] = lab[mask] - 1000
  474. return img, new_lab, img, new_lab
  475. # ==============================================================================
  476. # MAIN SCRIPT LOGIC
  477. # ==============================================================================
  478. def load_nifti(path, device="cpu"):
  479. """Load NIfTI file using cornucopia LoadTransform - the working method."""
  480. load_transform = LoadTransform(ndim=3, dtype=torch.float32, device=device)
  481. tensor = load_transform(path)
  482. print(f"Loaded image - shape: {tensor.shape}, dtype: {tensor.dtype}")
  483. print(f"Data range: [{tensor.min():.6f}, {tensor.max():.6f}]")
  484. return tensor
  485. def save_nifti(pred, output_path, reference_path):
  486. """Save prediction as NIfTI file - matching working inference.py exactly"""
  487. # Get affine from reference image if available
  488. affine = np.eye(4)
  489. if reference_path and os.path.exists(reference_path):
  490. try:
  491. reference_img = nib.load(reference_path)
  492. affine = reference_img.affine
  493. except (nib.spatialimages.ImageFileError, OSError) as e:
  494. # Catching specific errors satisfies BLE001
  495. print(f"Warning: Could not load affine: {e}")
  496. # Convert to numpy and ensure correct data type
  497. pred_np = pred.cpu().numpy()
  498. # CRITICAL: Apply the same processing as in the working inference.py
  499. # Flip over x-axis (axis=0) to maintain same alignment as input image
  500. if pred_np.shape and pred_np.shape[0] > 0:
  501. pred_np = np.flip(pred_np, axis=0)
  502. # Create NIfTI image with the same affine as the reference
  503. nii_img = nib.Nifti1Image(pred_np.astype(np.uint8), affine)
  504. # Save as NIfTI
  505. nib.save(nii_img, output_path)
  506. def main():
  507. start_total_time = time.time()
  508. parser = argparse.ArgumentParser(
  509. description="SynthSeg hippocampus segmentation inference"
  510. )
  511. parser.add_argument("input", help="Input NIfTI file (.nii or .nii.gz)")
  512. parser.add_argument("checkpoint", help="Model checkpoint (.ckpt file)")
  513. parser.add_argument(
  514. "-o", "--output", required=True, help="Output segmentation file"
  515. )
  516. parser.add_argument("--device", default="auto", choices=["auto", "cpu", "cuda"])
  517. args = parser.parse_args()
  518. if not os.path.exists(args.input):
  519. raise FileNotFoundError(f"Input file not found: {args.input}")
  520. if not os.path.exists(args.checkpoint):
  521. raise FileNotFoundError(f"Checkpoint file not found: {args.checkpoint}")
  522. device = torch.device(
  523. "cuda"
  524. if (args.device == "auto" and torch.cuda.is_available())
  525. else (args.device if args.device != "auto" else "cpu")
  526. )
  527. print(f"Using device: {device}")
  528. output_dir = os.path.dirname(args.output)
  529. if output_dir:
  530. os.makedirs(output_dir, exist_ok=True)
  531. print("Loading original model...")
  532. model = Model()
  533. # patch synth like original inference
  534. if hasattr(model.network, "synth"):
  535. model.network.synth = Real(getattr(model.network, "synth", None))
  536. first_param = next(model.parameters()).clone().detach()
  537. checkpoint = torch.load(args.checkpoint, map_location="cpu")
  538. if "state_dict" in checkpoint:
  539. model.load_state_dict(checkpoint["state_dict"])
  540. print("Loaded state_dict from checkpoint")
  541. else:
  542. model.load_state_dict(checkpoint)
  543. print("Loaded checkpoint directly")
  544. if torch.allclose(first_param, next(model.parameters())):
  545. print("WARNING: parameters unchanged after loading checkpoint")
  546. model.to(device).eval()
  547. print("Loading input image...")
  548. img = LoadTransform(ndim=3, dtype=torch.float32, device=device)(args.input)
  549. if img.dim() == 4:
  550. img = img.unsqueeze(0) # (1,1,D,H,W)
  551. else:
  552. raise ValueError(f"Unexpected input shape {img.shape}")
  553. start_inference_time = time.time()
  554. with torch.no_grad():
  555. pred_logits = model(img)
  556. inference_time = time.time() - start_inference_time
  557. pred = pred_logits.argmax(dim=1) if pred_logits.shape[1] > 1 else pred_logits
  558. pred = pred[0]
  559. print(f"Model inference time: {inference_time:.3f} s")
  560. save_nifti(pred, args.output, args.input)
  561. total_time = time.time() - start_total_time
  562. print("Saved segmentation:", args.output)
  563. print(f"Total processing time: {total_time:.3f} s")
  564. if __name__ == "__main__":
  565. main()

seg_synthseg.py at commit ed5cd49, under MIT · at the source

Overview

Authors: Nima Talaei1,2, Jordan DeKraker3, Bradley G. Karat1,2, Ali R. Khan1,2,4,5, Stefan Köhler1,6
  1. Western Institute for Neuroscience, Centre for Brain and Mind, University of Western Ontario London Ontario Canada
  2. Robarts Research Institute, Schulich School of Medicine and Dentistry, University of Western Ontario London Ontario Canada
  3. McConnell Brain Imaging Centre, Montreal Neurological Institute and Hospital, McGill University, Montreal Quebec Canada
  4. School of Biomedical Engineering, the University of Western Ontario London Canada
  5. Department of Medical Biophysics, Schulich School of Medicine and Dentistry The University of Western Ontario London Canada
  6. Department of Psychology University of Western Ontario London Ontario Canada
Journal: Hippocampus, volume 36, issue 5, article e70124
Dates: received 14 November 2025; accepted 10 August 2026; published online 24 August 2026; in print September 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1002/hipo.70124 · PMID 42635459 · PMCID PMC13501942 · OpenAlex W7204104652
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: structural MRI / diffusion (modality), human (organism), healthy (population), cognitive (subfield)
Methods: Statistics, Machine learning, Connectivity
Keywords: episodic memory, gyrification, hippocampus, MRI, surface‐based morphometry
MeSH: Hippocampus*, Memory, Episodic*, Adolescent, Adult, Female, Humans, Image Processing, Computer-Assisted, Magnetic Resonance Imaging, Male, Neuropsychological Tests, Organ Size, Young Adult (* major topic)
Topic: Memory and Neural Mechanisms (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Canada Research Chairs (Chaires de recherche du Canada) (CRC‐2023‐00087); Natural Sciences and Engineering Research Council of Canada (RGPIN‐2023‐05558, RGPIN‐2026‐05465); Canada Foundation for Innovation (CFI) John R. Evans Leaders Fund (Project #37427); Canada First Research Excellence Fund (CFREF); Fondation Brain Canada
Citations: not cited yet (Europe PMC); 53 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.

Repositories

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

khanlab/hippunfold

License: MIT
State: the link answers, verified on 27 October 2026
Evidence: files inventoried
Commit: ed5cd4929c7f55dd10d6eadf0847ac1be326a95e, 25 October 2026
Languages: Python (59), Shell (6), MATLAB (1)
Size: 382 files, 66 scripts
Software Heritage: archived
Found in: “Data Availability Statement”
Holds: README, license file, environment (Dockerfile, pixi.lock, pyproject.toml, docs/requirements.txt), tests, continuous integration, documentation
Not found: CITATION.cff
Tools: NumPy (33 files), NiBabel (21 files), SciPy (10 files), Matplotlib (9 files), pandas (4 files), Nilearn (3 files), NetworkX (2 files), GIfTI library for MATLAB (1 file), Pillow (1 file), PyTorch (1 file), seaborn (1 file)
Availability: 2 checks, the latest on 27 October 2026: the link answers
  • 27 October 2026: the link answers
  • 26 September 2026: the link answers
68 files

mic-dkfz/nnunet

License: Apache-2.0
State: the link answers, verified on 27 October 2026
Evidence: files inventoried
Commit: 1489d746e084459581ff20382c1241d8cc2eb258, 22 October 2026
Languages: Python (228), Shell (7)
Size: 315 files, 235 scripts
Software Heritage: archived
Found in: the text, “Training a New Segmentation Model”
Holds: README, license file, environment (pyproject.toml, setup.py), tests, continuous integration, documentation
Not found: CITATION.cff
Tools: nnU-Net (136 files), NumPy (82 files), PyTorch (62 files), SimpleITK (15 files), scikit-image (7 files), SciPy (7 files), NiBabel (5 files), pandas (4 files), tifffile (4 files), Matplotlib (2 files), Pillow (1 file), pydicom (1 file), scikit-learn (1 file), seaborn (1 file)
Availability: 2 checks, the latest on 27 October 2026: the link answers
  • 27 October 2026: the link answers
  • 26 September 2026: the link answers
237 files

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;
  • 301 scripts, each with its path and the digest of its content;
  • 2 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

Datasets cited

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1002/hipo.70124.

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 3, 28 September 2026

  • Publisher: n/a → Wiley

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 5 keywords, 12 MeSH terms, 5 funders, 53 references.

Cite

This paper

Talaei, N., DeKraker, J., Karat, B. G., Khan, A. R., & Köhler, S. (2026). Association Between Anterior Hippocampal Gyrification and Episodic Memory Performance in Neurotypical Young Adults. Hippocampus, 36(5), e70124. https://doi.org/10.1002/hipo.70124

BibTeX

@article{talaei2026association,
author = {Talaei, Nima and DeKraker, Jordan and Karat, Bradley G. and Khan, Ali R. and Köhler, Stefan},
title = {{Association Between Anterior Hippocampal Gyrification and Episodic Memory Performance in Neurotypical Young Adults}},
journal = {Hippocampus},
year = {2026},
month = sep,
volume = {36},
number = {5},
pages = {e70124},
publisher = {Wiley},
issn = {1050-9631},
doi = {10.1002/hipo.70124},
url = {https://doi.org/10.1002/hipo.70124},
pmid = {42635459},
pmcid = {PMC13501942}
}

RIS

TY - JOUR
AU - Talaei, Nima
AU - DeKraker, Jordan
AU - Karat, Bradley G.
AU - Khan, Ali R.
AU - Köhler, Stefan
TI - Association Between Anterior Hippocampal Gyrification and Episodic Memory Performance in Neurotypical Young Adults
T2 - Hippocampus
J2 - Hippocampus
PY - 2026
DA - 2026/09/01
VL - 36
IS - 5
SP - e70124
SN - 1050-9631
PB - Wiley
DO - 10.1002/hipo.70124
UR - https://doi.org/10.1002/hipo.70124
LA - en
ER -

CSL-JSON

{
"id": "10.1002/hipo.70124",
"type": "article-journal",
"title": "Association Between Anterior Hippocampal Gyrification and Episodic Memory Performance in Neurotypical Young Adults",
"container-title": "Hippocampus",
"author": [
{
"family": "Talaei",
"given": "Nima"
},
{
"family": "DeKraker",
"given": "Jordan"
},
{
"family": "Karat",
"given": "Bradley G."
},
{
"family": "Khan",
"given": "Ali R."
},
{
"family": "Köhler",
"given": "Stefan"
}
],
"container-title-short": "Hippocampus",
"volume": "36",
"issue": "5",
"page": "e70124",
"DOI": "10.1002/hipo.70124",
"PMID": "42635459",
"PMCID": "PMC13501942",
"ISSN": "1050-9631",
"publisher": "Wiley",
"URL": "https://doi.org/10.1002/hipo.70124",
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
1
]
]
}
}

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.7554/elife.77945 [code]
Automated hippocampal unfolding for morphometry and subfield segmentation with HippUnfold.
Journal: eLife
In common: GIfTI library for MATLAB, Nilearn, NetworkX, 8 other tools, structural MRI / diffusion, 6 references, 2 authors
[2] doi:10.1002/hbm.26461 [code]
Mapping the macrostructure and microstructure of the in vivo human hippocampus using diffusion MRI.
Journal: Human brain mapping
In common: GIfTI library for MATLAB, Nilearn, NetworkX, 9 other tools, structural MRI / diffusion, 8 references, author Stefan Köhler
[3] doi:10.1038/s41467-024-49823-8 [code]
Hippocampal connectivity patterns echo macroscale cortical evolution in the primate brain.
Journal: Nature communications
In common: GIfTI library for MATLAB, tifffile, Nilearn, 11 other tools, cognitive, 9 references
[4] doi:10.7554/elife.88404 [code]
Evaluation of surface-based hippocampal registration using ground-truth subfield definitions.
Journal: eLife
In common: GIfTI library for MATLAB, Nilearn, NetworkX, 8 other tools, 7 references, author Jordan DeKraker
[5] doi:10.1038/s41592-025-02783-3 [code]
HippoMaps: multiscale cartography of human hippocampal organization.
Journal: Nature methods
In common: Nilearn, NiBabel, pandas, 3 other tools, structural MRI / diffusion, 10 references, author Jordan DeKraker
[6] doi:10.1016/j.neuroimage.2023.120182 [code]
An automated, geometry-based method for hippocampal shape and thickness analysis.
Journal: NeuroImage
In common: GIfTI library for MATLAB, Nilearn, NetworkX, 8 other tools, structural MRI / diffusion, 7 references
[7] doi:10.1186/s12880-026-02335-x [code]
Automatic lateral ventricle and choroid plexus segmentation method in infant brain MR images.
Journal: BMC medical imaging
In common: nnU-Net, pydicom, SimpleITK, 11 other tools, structural MRI / diffusion, 2 references
[8] doi:10.3389/fmed.2026.1875760 [code]
Adaptive multi-stage domain unlearning for white-matter lesion segmentation.
Journal: Frontiers in medicine
In common: nnU-Net, pydicom, SimpleITK, 11 other tools, structural MRI / diffusion, 2 references
[9] doi:10.1016/j.adro.2026.102092 [code]
Effect of Anatomic Contextual Information on the Performance of a Convolutional Neural Network Tasked With Brain Metastasis Detection.
Journal: Advances in radiation oncology
In common: nnU-Net, pydicom, SimpleITK, 11 other tools, 2 references
[10] doi:10.1038/s41597-024-03073-x [code]
Brain tumor segmentation using synthetic MR images - A comparison of GANs and diffusion models.
Journal: Scientific data
In common: nnU-Net, pydicom, SimpleITK, 11 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.1002/hipo.70124.svg)](https://openscicode.org/badge/doi/10.1002/hipo.70124)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1002/hipo.70124.svg
   :target: https://openscicode.org/badge/doi/10.1002/hipo.70124
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1002/hipo.70124"><img src="https://openscicode.org/badge/doi/10.1002/hipo.70124.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.