Hostname: page-component-89b8bd64d-72crv Total loading time: 0 Render date: 2026-05-06T06:04:07.338Z Has data issue: false hasContentIssue false

Contour: A semi-automated segmentation and quantitation tool for cryo-soft-X-ray tomography

Published online by Cambridge University Press:  17 May 2022

Kamal L. Nahas*
Affiliation:
Department of Pathology, University of Cambridge, Cambridge, United Kingdom Beamline B24, Diamond Light Source, Harwell Science and Innovation Campus, Didcot, United Kingdom
João Ferreira Fernandes
Affiliation:
MRC Human Immunology Unit, John Radcliffe Hospital, University of Oxford, Oxford, United Kingdom
Nina Vyas
Affiliation:
Beamline B24, Diamond Light Source, Harwell Science and Innovation Campus, Didcot, United Kingdom
Colin Crump
Affiliation:
Department of Pathology, University of Cambridge, Cambridge, United Kingdom
Stephen Graham
Affiliation:
Department of Pathology, University of Cambridge, Cambridge, United Kingdom
Maria Harkiolaki*
Affiliation:
Beamline B24, Diamond Light Source, Harwell Science and Innovation Campus, Didcot, United Kingdom
*
*Corresponding authors. E-mail: kln29@cam.ac.uk; maria.harkiolaki@diamond.ac.uk
*Corresponding authors. E-mail: kln29@cam.ac.uk; maria.harkiolaki@diamond.ac.uk
Rights & Permissions [Opens in a new window]

Abstract

Cryo-soft-X-ray tomography is being increasingly used in biological research to study the morphology of cellular compartments and how they change in response to different stimuli, such as viral infections. Segmentation of these compartments is limited by time-consuming manual tools or machine learning algorithms that require extensive time and effort to train. Here we describe Contour, a new, easy-to-use, highly automated segmentation tool that enables accelerated segmentation of tomograms to delineate distinct cellular compartments. Using Contour, cellular structures can be segmented based on their projection intensity and geometrical width by applying a threshold range to the image and excluding noise smaller in width than the cellular compartments of interest. This method is less laborious and less prone to errors from human judgement than current tools that require features to be manually traced, and it does not require training datasets as would machine-learning driven segmentation. We show that high-contrast compartments such as mitochondria, lipid droplets, and features at the cell surface can be easily segmented with this technique in the context of investigating herpes simplex virus 1 infection. Contour can extract geometric measurements from 3D segmented volumes, providing a new method to quantitate cryo-soft-X-ray tomography data. Contour can be freely downloaded at github.com/kamallouisnahas/Contour.

Information

Type
Software Report
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
© The Author(s), 2022. Published by Cambridge University Press
Figure 0

Figure 1. Semi-automated segmentation by analyzing the intensity and width of cellular features. (a) The mitochondria in a tomogram of a U2OS cell were segmented by applying a voxel intensity threshold (blue arrows) LD, lipid droplet; Mito, mitochondrion. This technique was highly sensitive as most of the mitochondria were included and only a few areas were missing (white arrows). However, intensity thresholding alone led to noise and non-specific features such as the outline of lipid droplets being included in the segmented volume (orange arrows). (b) In Contour, a width restriction was applied in addition to an intensity threshold to segment the mitochondria. Any voxels included in the threshold range would only be included in the product segmented volume if they formed part of a 10 × 10 voxel area or larger (I–IV). The segmented product was specific to mitochondria, with less noise and fewer unwanted elements. However, there were more falsely-excluded areas due to the higher specificity (white arrows). (c) The remaining non-specific elements were manually erased (red box) and local regions of interest containing the excluded areas were identified (white boxes) and (d) the analysis was reattempted with a smaller width restriction of 4 voxels (green fill). (e) The final segmented volume was rendered in 3D using 3D Viewer in Fiji(2).

Figure 1

Figure 2. Segmentation pipeline and decision tree in Contour. (a) Global and local segmentation algorithms can be applied to delineate cellular compartments from a cryoSXT Z stack or from smaller 3D regions of interest. Global segmentation is recommended if the cellular compartments are dispersed throughout the tomogram. For smaller regions of interest, the local algorithm can be used to discriminate features in crowded areas or features excluded from the global segmentation. The threshold range and width restriction parameters can be modified to optimize the specificity and sensitivity of the global segmentation. (b) Discrete segmented elements can be differentiated and their volumes and widths can be calculated. Any elements smaller in volume than a specified number of voxels can be filtered out and this can be used to eliminate small segments of noise in one step. (c) Final touches can be applied to improve the appearance of the segmented volumes. A smoothing function can be used to smoothen blocky edges in 2D slices and a Gaussian blur can be applied to reduce the appearance of layering in between slices of the segmented volume (Figure 4). Predicted lengths of time for each process can be found in Supplementary Table S1.

Figure 2

Table 1. Troubleshooting segmentation in Contour.

Figure 3

Figure 3. Segmentation and quantitation of cellular features. Contour can be used to segment high contrast features in U2OS cells such as (a) mitochondria, (b) lipid droplets, and (c) distinctive membrane topology at cell–cell junctions. Cyto, cytoplasm; Nuc, nucleus. Quantitative data can be extracted from the segmented volumes. (d) The mitochondria in this 9.46 × 9.46 μm2 field of view of a U2OS cell had a mean volume of 0.3 ± 0.48 μm3 SD. (e) The mean width along the longest axis of each lipid droplet in this 9.46 × 9.46 μm field of view of a U2OS cell was found to be 1.04 ± 0.51 μm SD. Scale bar = 1 μm. Error bars show mean ± SD.

Figure 4

Figure 4. Color-coding of differentiated elements and smoothing of the 3D volume. Segmented voxels are grouped together into separate elements that can be color-coded to help distinguish them from each other. A smoothing function can be applied to 2D arrays of voxels to smooth the edges of segmented elements. Because the smoothing is applied to the 2D slices, layering artefacts can be observed in between the slices. A Gaussian blur can be applied per 2D slice to reduce the appearance of layering artefacts. Scale bars = 1 μm.

Supplementary material: File

Nahas et al. supplementary material

Nahas et al. supplementary material

Download Nahas et al. supplementary material(File)
File 1.4 MB