OSCR

Multiscale analysis of the adult human superior hypogastric plexus and hypogastric nerve.

Code ↔ Paper

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

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 236 lines · 7.7 KB · CC-BY-NC-4.0

  1. #!/usr/bin/env python3
  2. # SPDX-License-Identifier: CC-BY-NC-4.0
  3. # Copyright (c) 2026 Ziying (Alicia) Yang and contributors
  4. """Export raw image slices and mask slices from a syGlass project.
  5. The script reads a syGlass ``.syg`` project in Z chunks and writes:
  6. * one TIFF file per raw-image channel per Z slice
  7. * one TIFF mask-label file per Z slice
  8. Default outputs are written to ``raw_images`` and ``masks``. The workflow is
  9. chunked along Z to avoid loading the full 3D image volume into memory.
  10. """
  11. from __future__ import annotations
  12. import argparse
  13. import logging
  14. from pathlib import Path
  15. from typing import Optional, Sequence, Tuple
  16. import numpy as np
  17. import tifffile
  18. from tqdm import tqdm
  19. try:
  20. import syglass as sy
  21. from syglass import pyglass
  22. except ImportError as exc: # pragma: no cover - requires a local syGlass install
  23. raise ImportError(
  24. "Could not import the syGlass Python package. Install or activate the "
  25. "Python environment supplied with your syGlass installation before "
  26. "running this script."
  27. ) from exc
  28. LOGGER = logging.getLogger(__name__)
  29. def configure_logging(verbose: bool = False) -> None:
  30. """Configure console logging."""
  31. logging.basicConfig(
  32. level=logging.DEBUG if verbose else logging.INFO,
  33. format="%(levelname)s: %(message)s",
  34. )
  35. def parse_args(argv: Optional[Sequence[str]] = None) -> argparse.Namespace:
  36. """Parse command-line arguments."""
  37. parser = argparse.ArgumentParser(
  38. description="Export raw image slices and mask slices from a syGlass project."
  39. )
  40. parser.add_argument(
  41. "project_dir",
  42. type=Path,
  43. help="Folder containing the <project_name>.syg project directory.",
  44. )
  45. parser.add_argument(
  46. "project_name",
  47. help="Project name without the .syg suffix, for example: my_project.",
  48. )
  49. parser.add_argument(
  50. "--raw-output-dir",
  51. type=Path,
  52. default=None,
  53. help="Output folder for raw image slices. Default: <project_dir>/raw_images.",
  54. )
  55. parser.add_argument(
  56. "--mask-output-dir",
  57. type=Path,
  58. default=None,
  59. help="Output folder for mask slices. Default: <project_dir>/masks.",
  60. )
  61. parser.add_argument(
  62. "--z-chunk-size",
  63. type=int,
  64. default=16,
  65. help="Number of Z slices to load per chunk. Default: 16.",
  66. )
  67. parser.add_argument(
  68. "--resolution-level",
  69. type=int,
  70. default=-1,
  71. help=(
  72. "syGlass resolution level to export. Default: -1, which is the "
  73. "last available resolution level."
  74. ),
  75. )
  76. parser.add_argument(
  77. "--verbose",
  78. action="store_true",
  79. help="Print additional diagnostic information.",
  80. )
  81. return parser.parse_args(argv)
  82. def resolve_output_dir(
  83. output_dir: Optional[Path], project_dir: Path, default_name: str
  84. ) -> Path:
  85. """Return an output directory path and create it if needed."""
  86. resolved = output_dir if output_dir is not None else project_dir / default_name
  87. resolved = resolved.expanduser().resolve()
  88. resolved.mkdir(parents=True, exist_ok=True)
  89. return resolved
  90. def get_project_resolution(project: object, resolution_level: int) -> Tuple[int, np.ndarray]:
  91. """Return the resolved resolution level and volume shape as ``(Z, Y, X)``."""
  92. resolution_map = project.get_resolution_map()
  93. resolution_count = len(resolution_map)
  94. if not -resolution_count <= resolution_level < resolution_count:
  95. raise ValueError(
  96. f"Invalid resolution level {resolution_level}. Project has "
  97. f"{resolution_count} levels."
  98. )
  99. level_index = resolution_level % resolution_count
  100. block_size = project.get_block_size()
  101. block_count = resolution_map[level_index]
  102. blocks_per_dimension = round(block_count ** (1.0 / 3.0))
  103. resolution = (block_size * blocks_per_dimension).astype(np.uint64)
  104. return level_index, resolution
  105. def export_syglass_project(
  106. project_dir: Path,
  107. project_name: str,
  108. raw_output_dir: Path,
  109. mask_output_dir: Path,
  110. z_chunk_size: int = 16,
  111. resolution_level: int = -1,
  112. ) -> None:
  113. """Export raw-image and mask slices from a syGlass project."""
  114. if z_chunk_size <= 0:
  115. raise ValueError("--z-chunk-size must be a positive integer.")
  116. project_path = project_dir / f"{project_name}.syg"
  117. if not project_path.exists():
  118. raise FileNotFoundError(f"Project directory not found: {project_path}")
  119. LOGGER.info("Opening syGlass project: %s", project_path)
  120. project = sy.get_project(str(project_path))
  121. syglass_project_name = project.get_name()
  122. timepoint_count = project.get_timepoint_count()
  123. if timepoint_count > 1:
  124. LOGGER.warning(
  125. "Timeseries projects are not fully supported by this tool. "
  126. "Only timepoint 0 will be exported."
  127. )
  128. level_index, resolution = get_project_resolution(project, resolution_level)
  129. z_size, y_size, x_size = [int(value) for value in resolution]
  130. LOGGER.info("Loaded project: %s", syglass_project_name)
  131. LOGGER.info("Resolution level: %d", level_index)
  132. LOGGER.info("Export volume shape: Z=%d, Y=%d, X=%d", z_size, y_size, x_size)
  133. LOGGER.info("Raw output folder: %s", raw_output_dir)
  134. LOGGER.info("Mask output folder: %s", mask_output_dir)
  135. mask_extractor = pyglass.MaskOctreeRasterExtractor(None)
  136. for z0 in tqdm(range(0, z_size, z_chunk_size), desc="Exporting Z chunks"):
  137. z1 = min(z0 + z_chunk_size, z_size)
  138. current_chunk_size = z1 - z0
  139. raw_block = project.get_custom_block(
  140. 0,
  141. level_index,
  142. np.asarray([z0, 0, 0]),
  143. [current_chunk_size, y_size, x_size],
  144. ).data
  145. if raw_block.ndim != 4:
  146. raise ValueError(
  147. f"Expected raw block with shape (Z, Y, X, C), got {raw_block.shape}."
  148. )
  149. z_chunk, _, _, channel_count = raw_block.shape
  150. mask_block = mask_extractor.GetCustomBlock(
  151. project.impl,
  152. 0,
  153. level_index,
  154. pyglass.vec3(0, 0, float(z0)),
  155. pyglass.vec3(float(x_size), float(y_size), float(z_chunk)),
  156. )
  157. mask_np = pyglass.GetRasterAsNumpyArray(mask_block)
  158. if mask_np.ndim != 4:
  159. raise ValueError(
  160. f"Expected mask block with shape (Z, Y, X, 1), got {mask_np.shape}."
  161. )
  162. for local_z, global_z in enumerate(range(z0, z1)):
  163. for channel_index in range(channel_count):
  164. raw_filename = (
  165. f"{syglass_project_name}_Image_{global_z:05d}_ch{channel_index}.tiff"
  166. )
  167. tifffile.imwrite(
  168. raw_output_dir / raw_filename,
  169. raw_block[local_z, :, :, channel_index],
  170. )
  171. mask_filename = f"{syglass_project_name}_Mask_{global_z:05d}.tiff"
  172. tifffile.imwrite(
  173. mask_output_dir / mask_filename,
  174. mask_np[local_z, :, :, 0],
  175. )
  176. LOGGER.info("Export complete.")
  177. def main(argv: Optional[Sequence[str]] = None) -> None:
  178. """Command-line entry point."""
  179. args = parse_args(argv)
  180. configure_logging(args.verbose)
  181. project_dir = args.project_dir.expanduser().resolve()
  182. raw_output_dir = resolve_output_dir(args.raw_output_dir, project_dir, "raw_images")
  183. mask_output_dir = resolve_output_dir(args.mask_output_dir, project_dir, "masks")
  184. export_syglass_project(
  185. project_dir=project_dir,
  186. project_name=args.project_name,
  187. raw_output_dir=raw_output_dir,
  188. mask_output_dir=mask_output_dir,
  189. z_chunk_size=args.z_chunk_size,
  190. resolution_level=args.resolution_level,
  191. )
  192. if __name__ == "__main__":
  193. main()

export_syglass_volume.py at commit 90a5232, under CC-BY-NC-4.0 · at the source

Overview

Authors: Kayleigh S Scotcher1, John‐Paul Fuller‐Jackson1, Peregrine B Osborne1, Martin M Bertrand2, Janet R Keast1
  1. Department of Anatomy and Physiology, University of Melbourne, Melbourne, Victoria, Australia
  2. IMAGINE UR‐UM 103, Faculté de Médecine Montpellier‐Nîmes, Montpellier, France
Journal: Journal of anatomy, article 10.1111/joa.70213
Dates: received 12 January 2026; accepted 1 July 2026; published online 23 July 2026; in print July 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.1111/joa.70213 · PMID 42494090 · PMCID PMC13396685 · OpenAlex W7170572325
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: histology / microscopy (modality), human (organism)
Methods: Machine learning
Keywords: light sheet microscopy, neuroanatomy, pelvic visceral organs, sympathetic ganglia, sympathetic nervous system, tissue clearing
Topic: Gastrointestinal motility and disorders (Gastroenterology, Medicine), according to OpenAlex
Citations: cited by 1 paper (Europe PMC); 90 references in the paper

Abstract

The superior hypogastric plexus (SHP) and hypogastric nerves (HN) are components of the autonomic nervous system required for sympathetic regulation of the pelvic viscera. Despite their functional importance, the three‐dimensional (3D) distribution and immunohistochemical composition of neurons in these structures remain poorly characterized. In this study, we used a multiscale imaging approach to generate a 3D anatomical and immunohistochemical characterization of the SHP and HN in adult humans. Both embalmed (body donor program) and unembalmed paraformaldehyde (PFA)‐fixed specimens (organ donor program) were cleared using a modified Adipo‐Clear/iDISCO protocol and imaged by light sheet fluorescence microscopy. Thousands of neuronal cell bodies were identified within the HN, demonstrating that this nerve does not function solely as a conduit for axons. In one HN sample analyzed along its whole length by immunohistochemistry, more than 90% of the neurons were tyrosine hydroxylase‐immunoreactive (TH‐IR), so presumed to be noradrenergic. Neuronal cell bodies in both the SHP and HN were arranged in clusters of diverse size, embedded within nerve tracts rather than in discrete ganglia. High‐resolution confocal microscopy of cryosections confirmed the presence of numerous TH‐IR (presumed noradrenergic) neuronal cell bodies and axons in the SHP and HN. Non‐noradrenergic axonal populations were also abundant. Putative afferent axons (calcitonin gene‐related peptide‐ and substance P‐immunoreactive) traversed the SHP and HN and occasionally encircled individual ganglion neurons, raising the possibility of direct sensory‐motor communication at these sites. Collectively, these findings provide a new 3D anatomical and immunohistochemical characterization of the SHP and HN in the adult human. This has important implications for understanding normal pelvic autonomic function and pathophysiology of genitourinary disorders. These data and further application of our imaging approach will inform the improvement of nerve‐sparing surgical techniques in the pelvic region and the development of targeted neuromodulation approaches.

Reproduced under the paper's license (CC BY-NC), from the paper cited above.

Repository

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

alicia-ziying-yang/syglass-multichannel-io-utils

License: CC-BY-NC-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 90a5232119aee28f1ae21aac1e67fcba3a8b3c69, 16 July 2026
Languages: Python (2)
Size: 6 files, 2 scripts
Software Heritage: not archived
Found in: the text, “Cleared tissue: Light sheet fluorescence microsc”
Holds: README, license file, CITATION.cff, environment (requirements.txt)
Not found: tests, continuous integration, documentation
Tools: NumPy (2 files), tifffile (2 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
4 files

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 2 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data availability statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Reproduced under the paper's license (CC BY-NC), 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, pages, dates, 5 authors, 6 keywords, 90 references.

Cite

This paper

Scotcher, K. S., Fuller‐Jackson, J., Osborne, P. B., Bertrand, M. M., & Keast, J. R. (2026). Multiscale analysis of the adult human superior hypogastric plexus and hypogastric nerve. Journal of anatomy, 10.1111/joa.70213. https://doi.org/10.1111/joa.70213

BibTeX

@article{scotcher2026multiscale,
author = {Scotcher, Kayleigh S and Fuller‐Jackson, John‐Paul and Osborne, Peregrine B and Bertrand, Martin M and Keast, Janet R},
title = {{Multiscale analysis of the adult human superior hypogastric plexus and hypogastric nerve}},
journal = {Journal of anatomy},
year = {2026},
month = jul,
pages = {10.1111/joa.70213},
publisher = {Wiley},
issn = {0021-8782},
doi = {10.1111/joa.70213},
url = {https://doi.org/10.1111/joa.70213},
pmid = {42494090},
pmcid = {PMC13396685}
}

RIS

TY - JOUR
AU - Scotcher, Kayleigh S
AU - Fuller‐Jackson, John‐Paul
AU - Osborne, Peregrine B
AU - Bertrand, Martin M
AU - Keast, Janet R
TI - Multiscale analysis of the adult human superior hypogastric plexus and hypogastric nerve
T2 - Journal of anatomy
J2 - J Anat
PY - 2026
DA - 2026/07/23
SP - 10.1111/joa.70213
SN - 0021-8782
PB - Wiley
DO - 10.1111/joa.70213
UR - https://doi.org/10.1111/joa.70213
LA - en
ER -

CSL-JSON

{
"id": "10.1111/joa.70213",
"type": "article-journal",
"title": "Multiscale analysis of the adult human superior hypogastric plexus and hypogastric nerve",
"container-title": "Journal of anatomy",
"author": [
{
"family": "Scotcher",
"given": "Kayleigh S"
},
{
"family": "Fuller‐Jackson",
"given": "John‐Paul"
},
{
"family": "Osborne",
"given": "Peregrine B"
},
{
"family": "Bertrand",
"given": "Martin M"
},
{
"family": "Keast",
"given": "Janet R"
}
],
"container-title-short": "J Anat",
"page": "10.1111/joa.70213",
"DOI": "10.1111/joa.70213",
"PMID": "42494090",
"PMCID": "PMC13396685",
"ISSN": "0021-8782",
"publisher": "Wiley",
"URL": "https://doi.org/10.1111/joa.70213",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
23
]
]
}
}

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.1126/sciadv.aef9926 [code]
aDISCO: A clearing method to enable 3D microscopy of large archival paraffin-embedded human tissue blocks.
Journal: Science advances
In common: tifffile, NumPy, histology / microscopy, 2 references
[2] doi:10.1186/s40708-026-00298-x [code]
SegAnyNeuron: a neural image segmentation network with strong generalization performance by modeling image intensity variation.
Journal: Brain informatics
In common: tifffile, NumPy, 1 reference
[3] doi:10.1038/s41467-026-71418-8 [code]
Deep visual proteomics uncovers nociceptor diversity and pain targets.
Journal: Nature communications
In common: tifffile, NumPy, 1 reference
[4] doi:10.7554/elife.109717 [code]
Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation.
Journal: eLife
In common: tifffile, NumPy, 1 reference
[5] doi:10.1016/j.celrep.2026.117446 [code]
Circuit organization and transcriptomic heterogeneity of sympathetic circuits innervating cranial structures.
Journal: Cell reports
In common: 2 references
[6] doi:10.1007/s12021-026-09815-z [code]
BasNet: Attention U-Net-Based Automated Axon Segmentation in Bielschowsky Silver-Stained Histology.
Journal: Neuroinformatics
In common: tifffile, NumPy, histology / microscopy
[7] doi:10.1007/s00401-026-03039-w [code]
Correlative ultrastructural mapping of Lewy pathology reveals regional diversity in Parkinson's and dementia with Lewy bodies.
Journal: Acta neuropathologica
In common: tifffile, NumPy, histology / microscopy
[8] doi:10.1016/j.crmeth.2026.101476 [code]
Unsupervised deep learning enables blur-free resolution enhancement in two-photon microscopy.
Journal: Cell reports methods
In common: tifffile, NumPy, histology / microscopy
[9] doi:10.1002/jbio.70260 [code]
Cell-MICS: Detecting Immune Cells With Label-Free Two-Photon Autofluorescence and Deep Learning.
Journal: Journal of biophotonics
In common: tifffile, NumPy, histology / microscopy
[10] doi:10.1038/s41467-026-71595-6 [code]
A single-cell and spatial atlas of early human olfactory development.
Journal: Nature communications
In common: NumPy, histology / microscopy, 1 reference

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.