Multiscale analysis of the adult human superior hypogastric plexus and hypogastric nerve.
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
- #!/usr/bin/env python3
- # SPDX-License-Identifier: CC-BY-NC-4.0
- # Copyright (c) 2026 Ziying (Alicia) Yang and contributors
- """Export raw image slices and mask slices from a syGlass project.
- The script reads a syGlass ``.syg`` project in Z chunks and writes:
- * one TIFF file per raw-image channel per Z slice
- * one TIFF mask-label file per Z slice
- Default outputs are written to ``raw_images`` and ``masks``. The workflow is
- chunked along Z to avoid loading the full 3D image volume into memory.
- """
- from __future__ import annotations
- import argparse
- import logging
- from pathlib import Path
- from typing import Optional, Sequence, Tuple
- import numpy as np
- import tifffile
- from tqdm import tqdm
- try:
- import syglass as sy
- from syglass import pyglass
- except ImportError as exc: # pragma: no cover - requires a local syGlass install
- raise ImportError(
- "Could not import the syGlass Python package. Install or activate the "
- "Python environment supplied with your syGlass installation before "
- "running this script."
- ) from exc
- LOGGER = logging.getLogger(__name__)
- def configure_logging(verbose: bool = False) -> None:
- """Configure console logging."""
- logging.basicConfig(
- level=logging.DEBUG if verbose else logging.INFO,
- format="%(levelname)s: %(message)s",
- )
- def parse_args(argv: Optional[Sequence[str]] = None) -> argparse.Namespace:
- """Parse command-line arguments."""
- parser = argparse.ArgumentParser(
- description="Export raw image slices and mask slices from a syGlass project."
- )
- parser.add_argument(
- "project_dir",
- type=Path,
- help="Folder containing the <project_name>.syg project directory.",
- )
- parser.add_argument(
- "project_name",
- help="Project name without the .syg suffix, for example: my_project.",
- )
- parser.add_argument(
- "--raw-output-dir",
- type=Path,
- default=None,
- help="Output folder for raw image slices. Default: <project_dir>/raw_images.",
- )
- parser.add_argument(
- "--mask-output-dir",
- type=Path,
- default=None,
- help="Output folder for mask slices. Default: <project_dir>/masks.",
- )
- parser.add_argument(
- "--z-chunk-size",
- type=int,
- default=16,
- help="Number of Z slices to load per chunk. Default: 16.",
- )
- parser.add_argument(
- "--resolution-level",
- type=int,
- default=-1,
- help=(
- "syGlass resolution level to export. Default: -1, which is the "
- "last available resolution level."
- ),
- )
- parser.add_argument(
- "--verbose",
- action="store_true",
- help="Print additional diagnostic information.",
- )
- return parser.parse_args(argv)
- def resolve_output_dir(
- output_dir: Optional[Path], project_dir: Path, default_name: str
- ) -> Path:
- """Return an output directory path and create it if needed."""
- resolved = output_dir if output_dir is not None else project_dir / default_name
- resolved = resolved.expanduser().resolve()
- resolved.mkdir(parents=True, exist_ok=True)
- return resolved
- def get_project_resolution(project: object, resolution_level: int) -> Tuple[int, np.ndarray]:
- """Return the resolved resolution level and volume shape as ``(Z, Y, X)``."""
- resolution_map = project.get_resolution_map()
- resolution_count = len(resolution_map)
- if not -resolution_count <= resolution_level < resolution_count:
- raise ValueError(
- f"Invalid resolution level {resolution_level}. Project has "
- f"{resolution_count} levels."
- )
- level_index = resolution_level % resolution_count
- block_size = project.get_block_size()
- block_count = resolution_map[level_index]
- blocks_per_dimension = round(block_count ** (1.0 / 3.0))
- resolution = (block_size * blocks_per_dimension).astype(np.uint64)
- return level_index, resolution
- def export_syglass_project(
- project_dir: Path,
- project_name: str,
- raw_output_dir: Path,
- mask_output_dir: Path,
- z_chunk_size: int = 16,
- resolution_level: int = -1,
- ) -> None:
- """Export raw-image and mask slices from a syGlass project."""
- if z_chunk_size <= 0:
- raise ValueError("--z-chunk-size must be a positive integer.")
- project_path = project_dir / f"{project_name}.syg"
- if not project_path.exists():
- raise FileNotFoundError(f"Project directory not found: {project_path}")
- LOGGER.info("Opening syGlass project: %s", project_path)
- project = sy.get_project(str(project_path))
- syglass_project_name = project.get_name()
- timepoint_count = project.get_timepoint_count()
- if timepoint_count > 1:
- LOGGER.warning(
- "Timeseries projects are not fully supported by this tool. "
- "Only timepoint 0 will be exported."
- )
- level_index, resolution = get_project_resolution(project, resolution_level)
- z_size, y_size, x_size = [int(value) for value in resolution]
- LOGGER.info("Loaded project: %s", syglass_project_name)
- LOGGER.info("Resolution level: %d", level_index)
- LOGGER.info("Export volume shape: Z=%d, Y=%d, X=%d", z_size, y_size, x_size)
- LOGGER.info("Raw output folder: %s", raw_output_dir)
- LOGGER.info("Mask output folder: %s", mask_output_dir)
- mask_extractor = pyglass.MaskOctreeRasterExtractor(None)
- for z0 in tqdm(range(0, z_size, z_chunk_size), desc="Exporting Z chunks"):
- z1 = min(z0 + z_chunk_size, z_size)
- current_chunk_size = z1 - z0
- raw_block = project.get_custom_block(
- 0,
- level_index,
- np.asarray([z0, 0, 0]),
- [current_chunk_size, y_size, x_size],
- ).data
- if raw_block.ndim != 4:
- raise ValueError(
- f"Expected raw block with shape (Z, Y, X, C), got {raw_block.shape}."
- )
- z_chunk, _, _, channel_count = raw_block.shape
- mask_block = mask_extractor.GetCustomBlock(
- project.impl,
- 0,
- level_index,
- pyglass.vec3(0, 0, float(z0)),
- pyglass.vec3(float(x_size), float(y_size), float(z_chunk)),
- )
- mask_np = pyglass.GetRasterAsNumpyArray(mask_block)
- if mask_np.ndim != 4:
- raise ValueError(
- f"Expected mask block with shape (Z, Y, X, 1), got {mask_np.shape}."
- )
- for local_z, global_z in enumerate(range(z0, z1)):
- for channel_index in range(channel_count):
- raw_filename = (
- f"{syglass_project_name}_Image_{global_z:05d}_ch{channel_index}.tiff"
- )
- tifffile.imwrite(
- raw_output_dir / raw_filename,
- raw_block[local_z, :, :, channel_index],
- )
- mask_filename = f"{syglass_project_name}_Mask_{global_z:05d}.tiff"
- tifffile.imwrite(
- mask_output_dir / mask_filename,
- mask_np[local_z, :, :, 0],
- )
- LOGGER.info("Export complete.")
- def main(argv: Optional[Sequence[str]] = None) -> None:
- """Command-line entry point."""
- args = parse_args(argv)
- configure_logging(args.verbose)
- project_dir = args.project_dir.expanduser().resolve()
- raw_output_dir = resolve_output_dir(args.raw_output_dir, project_dir, "raw_images")
- mask_output_dir = resolve_output_dir(args.mask_output_dir, project_dir, "masks")
- export_syglass_project(
- project_dir=project_dir,
- project_name=args.project_name,
- raw_output_dir=raw_output_dir,
- mask_output_dir=mask_output_dir,
- z_chunk_size=args.z_chunk_size,
- resolution_level=args.resolution_level,
- )
- if __name__ == "__main__":
- main()
export_syglass_volume.py at commit 90a5232, under CC-BY-NC-4.0 · at the source
Overview
- Department of Anatomy and Physiology, University of Melbourne, Melbourne, Victoria, Australia
- IMAGINE UR‐UM 103, Faculté de Médecine Montpellier‐Nîmes, Montpellier, France
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/
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
90a5232119aee28f1ae21aac1e67fcba3a8b3c69, 16 July 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
4 files
- export_syglass_volume.py
, Python, 236 lines - extract_label_signal_sta
cks.py , Python, 355 lines - LICENSE.md, License, 13 lines
- README.md, Text, 219 lines
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 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/
BibTeX
@article{scotcher2026mul
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/
publisher = {Wiley},
issn = {0021-8782},
doi = {10.1111/
url = {https://
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/
SP - 10.1111/
SN - 0021-8782
PB - Wiley
DO - 10.1111/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1111/
"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":
"page": "10.1111/
"DOI": "10.1111/
"PMID": "42494090",
"PMCID": "PMC13396685",
"ISSN": "0021-8782",
"publisher": "Wiley",
"URL": "https://
"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 advancesIn 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 informaticsIn 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 communicationsIn common: tifffile, NumPy, 1 reference
- [4] doi:10.7554/elife.109717 [code]
- Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation.Journal: eLifeIn 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 reportsIn 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: NeuroinformaticsIn 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 neuropathologicaIn 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 methodsIn 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 biophotonicsIn 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 communicationsIn 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.
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, 2 scripts, and 0 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:862cf2fb989a0172…
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.
