Figures
Abstract
The C. elegans ventral nerve cord (VNC) provides a genetically tractable model for investigating the developmental mechanisms involved in neuronal positioning and organization. The VNC of newly hatched larvae contains a set of 22 motoneurons organized into three distinct classes (DD, DA, and DB) that show consistent positioning and arrangement. This organization arises from the action of multiple convergent genetic pathways, which are poorly understood. To better understand these pathways, accurate and efficient methods for quantifying motoneuron cell body positions within large microscopy datasets are required. Here, we present VNC-Dist (Ventral Nerve Cord Distances), a software toolkit that replaces manual measurements with a faster and more accurate computer-assisted approach, combining machine learning and other tools, to quantify neuron cell body positions in the VNC. The VNC-Dist pipeline integrates several components: manual neuron cell body localization using Fiji’s multipoint tool, deep learning-based worm segmentation with modified Segment Anything Model (SAM), accurate spline-based measurements of neuronal distances along the VNC, and built-in tools for statistical analysis and graphing. To demonstrate the robustness and versatility of VNC-Dist, we applied it to several genetic mutants known to disrupt neuronal positioning in the VNC. This toolbox will enable batch acquisition and analysis of large datasets across genotypes, thereby advancing investigations into the cellular and molecular mechanisms that govern VNC neuronal positioning and arrangement.
Citation: Saharkhiz S, Chan W, Kirezi CB, Petite M, Roenspies T, Perkins TJ, et al. (2025) VNC-Dist: A machine learning-based semi-automated pipeline for quantification of neuronal position in the C. elegans ventral nerve cord. PLoS One 20(8): e0331188. https://doi.org/10.1371/journal.pone.0331188
Editor: Erik A. Lundquist, University of Kansas College of Liberal Arts and Sciences, UNITED STATES OF AMERICA
Received: June 12, 2025; Accepted: August 12, 2025; Published: August 28, 2025
Copyright: © 2025 Saharkhiz et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the manuscript and its Supporting Information files. We have included a spreadsheet with all measurement data in supporting information. We also have a Code Availability section in the manuscript: The reviewed version of the VNC-Dist pipeline, including the code, GUI, and future updates, is available on GitHub under a permissive open-source license at https://github.com/C-elegans-VNC/VNC-Dist. Additionally, test data, including TIF images and the corresponding CSV coordinates, were provided to facilitate testing and evaluation of the pipeline.
Funding: This work was supported by grants from the: Canadian Institutes of Health Research (CIHR FRN 123513 and 156160) to A.C. and Natural Sciences and Engineering Research Council of Canada (NSERC) (2018-06790) to A.C., and an NSERC grant (2019-06604) to T.J.P. NSERC https://www.nserc-crsng.gc.ca/index_eng.asp CIHR https://www.cihr-irsc.gc.ca/e/193.html. The funders did not play any role in the study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
1. Introduction
Fluorescent reporters have become invaluable tools for investigating nervous system connectivity and function in C. elegans [1]. In the adult C. elegans hermaphrodite, the nervous system contains 302 neurons, organized into sensory neurons, interneurons, and motoneurons, with most cell bodies clustered in the nerve ring, retrovesicular ganglion (RVG), preanal ganglion (PAG), and along the ventral nerve cord (VNC) [2–4]. The position, morphology, and connectivity of different sets of these neurons can be readily visualized using distinct colours of cell-specific fluorescent markers [5]. However, accurately and reproducibly identifying and quantifying cells remains challenging and time-consuming, particularly when analyzing large sample sizes or conducting high-throughput genetic screens [6–8].
At hatching (L1 stage), the C. elegans VNC contains three classes of motoneurons: 6 GABAergic inhibitory DD, 9 cholinergic excitatory DA, and 7 cholinergic excitatory DB, arranged in a highly stereotyped manner that includes repeating DD-DB-DA motor pools innervating body wall muscles [9] (Fig 1a, b).
(a) Max‐intensity‐projected fluorescence micrograph of the C. elegans ventral nerve cord (VNC) expressing nuclear‐targeted reporters: mCherry labels DD neurons (magenta; original red channel pseudocolored to magenta in Fiji), mNeonGreen labels DA, SAB, and I5 neurons (green), and co-expression of mScarlet and mNeonGreen labels DB neurons (white). Tail epithelial cells also express the DB reporter. Reference points are SABVL (0% anterior) and the rectum (100% posterior); Anterior (A; head) and posterior (P; tail) are marked at the respective ends of the worm. Scale bar, 15 µm (1 µm = 6.82 pixels). (b) Diagram of a wild type (WT) C. elegans at L1 highlighting key structures: the nerve ring (NR), ventral nerve cord (VNC), DD, DA, and DB, SAB (SABVL, SABVR, SABD), and I5 neurons. The retrovesicular ganglion (RVG) contains SAB, DA1, DB1, DB2, and DD1 neurons; the preanal ganglion (PAG) contains DA8, DA9, and DD6. Dorsal–ventral (D–V) and anterior–posterior (A–P) axes are shown. The worm’s body is modeled as a parametric spline function S(t) (magenta), with the VNCL1 spline (dashed black) running along the ventral side of S(t), depicted in parallel to the VNC (green).
This organization is largely established between the bean and 2-fold stages of embryonic development, during which DD, DA, and DB progenitors, initially located on both the left and right, undergo convergent extension to move medially and position themselves along the anterior-posterior axis, while also engaging in poorly understood cell sorting, and separation movements that form the VNC [10]. Notably, aspects of this process share molecular and cellular mechanisms with neural tube formation in vertebrates, suggesting that the VNC may serve as a genetically tractable model for studying the underlying cell and molecular biology [11].
During embryonic VNC assembly, disruptions in the migration of DD, DA, and DB progenitors result in the misplacement of motoneuron cell bodies in newly hatched L1 larvae. One example involves disruption of a planar cell polarity-like pathway mediated by vang-1/VangL and prkl-1/Prickle, along with a parallel sax-3/Robo pathway, which together act redundantly to promote convergent extension of progenitors during VNC assembly [10]. Disruption of either pathway alone interferes with VNC assembly and causes motoneuron cell bodies to adopt abnormal positions at hatching. When both pathways are disrupted, convergent extension is severely compromised, resulting in a striking anterior displacement of most motoneuron cell bodies [10]. These findings indicate that motoneuron position and pattern in the L1 VNC provide a clear and accessible readout of defects that arise during embryonic VNC formation. Previous studies have primarily relied on manually measuring the positions of DD motoneurons [10]. However, a more complete understanding of VNC assembly requires accurately quantifying the position and pattern of all 22 DD, DA, and DB motoneurons [12–14]. To accomplish this, the DD, DA, and DB motoneuron classes must be distinctly labeled, and an efficient, high-throughput semi-automated workflow is needed to quantify their cell body positions along the VNC.
Current methods for quantifying complex curved biological structures, such as Neurite Tracer [15], NeuroQuantify [16], AniLength [17], SNT [18] and NeuronJ [19] typically depend on traced path analysis, generating low-precision discrete approximations that fail to capture continuous curve lengths. In contrast, Nellie’s pipeline employs hierarchical deconstruction and feature extraction to robustly analyze complex organelle architectures [20]. However, most of them demand substantial manual input and often fail to generalize to models like C. elegans, leaving researchers reliant on time-consuming manual tools, such as Fiji’s segmented line tool (Fig 2) [21], which may lack consistency across users.
A wild-type L1 larva expressing nuclear fluorescent reporters was analyzed in Fiji by drawing three separate segmented-line traces along the VNC to capture distances from SABVL to the rectum for SAB and DA neurons (3 SAB + 9 DA; green), DD neurons (6; pseudocolored magenta) and DB neurons (7; white). In this example, following the DD neuron path required approximately 70 clicks to approximate the ventral curve. Bracketed labels d1–d7 denote sequential segment lengths from SABVL (d1, 0) to the rectum (d1 + … + d7; total length) corresponding pixel measurements appear in the Results window. Scale bar, 15 µm.
Visually detecting shifts in VNC neuron positioning and patterning across genetic mutants or individual C. elegans is challenging due to the large number of neurons involved, the wide range of patterns that can result from disrupted VNC assembly, and the subtle or variably penetrant phenotypes that often accompany such disruptions [10]. Here, we introduce VNC-Dist (Ventral Nerve Cord Distances), a robust pipeline tailored for labs studying neuron positioning in C. elegans. VNC-Dist addresses these challenges through a mathematical algorithm that calculates the curve lengths along the VNCL1 spline, which is a parametric curve tracing the VNC along the worm’s ventral outline [22] (Fig 1b). This pipeline enables rapid and precise batch analysis of 3D fluorescent images, significantly outperforming manual methods. We demonstrated its versatility across mutants like vang-1/Van Gogh and sax-3/Robo, which are known to cause VNC assembly defects [10]. VNC-Dist integrates SAM [23–25] for worm segmentation, OpenCV [26] for shape extraction and contour detection, and numerical analysis for accurate neuron-distance measurements [27]. We evaluated VNC-Dist with three graduate students of varying Fiji measurement experience, a beginner (master’s student with one year), an intermediate (PhD student with two years), and an expert (senior PhD student with six years). All three showed consistent learning curves in processing time, whereas manual length measurements were both slower and highly variable. All users completed tasks more quickly and accurately with VNC-Dist, underscoring its robustness. This advantage stems primarily from the manual approach requiring numerous clicks per neuron class using Fiji’s Segmented Line tool [21] to trace the worm’s ventral edge, making it significantly more laborious for high-throughput analysis.
2. Materials and methods
2.1. C. elegans strains, reporters, and imaging
2.1.1. Strains.
Worms were maintained at 20°C, and all strains were derived from the N2 genetic background. We used the following alleles and transgenes organized by the linkage group (LG): LGX: vang-1(tm1422) and sax-3(zy5). LGII: unc-4(zy123[unc-4::mNG]) and zySi2[unc-30p::mcherry::H2B::unc-30]. LGIII: vab-7(zy137[vab-7::mNG::3xFlag]), and vab-7(zy142[vab-7::mNG::T2A::mScarlet-I::H2B]). LGIV: prkl-1(ok3182).
2.1.2. Construction of DD, DA, DB fluorescent reporter strains.
To label DD, DA, and DB motoneurons at the L1 stage, we used class-specific promoters to drive fluorescent reporters: unc-30 (DD1–6), unc-4 (DA1–9, SAB), and vab-7 (DB1–7). zySi2 [unc-30p::mCherry::H2B::unc-30 3’UTR + unc-119(+)] was made using Mos1-mediated single-copy insertion (MosSCI) [28]. The MosSCI LGII ttTi5605 targeting and selection plasmid (pAC661) was constructed using Gibson Assembly to combine four PCR fragments: a ~ 2.5 kb unc-30 promoter from N2 genomic DNA, a ~ 1.25 kb mCherry::H2B cassette from pOD2046 (Addgene #89367), a 410 bp unc-30 3’UTR from N2 genomic DNA, and a ~ 7.4 kb MOS targeting and selection cassette from pCFJ151. CRISPR/Cas9 gene editing, utilizing the self-excising selection cassette (SEC) method, was used to knock-in mNeonGreen (mNG) at the C-terminus of the endogenous unc-4 and vab-7 genes [29]. Guide sequences for C-terminal insertion were identified using the IDT guide design tool at www.idtdna.com/site/order/designtool/index/CRISPR_SEQUENCE. The sequences were cloned into the Cas9–sgRNA plasmid pDD162 (Addgene #47549) using the NEB Q5 Site-Directed Mutagenesis Kit. unc-4 and vab-7 homology arms were cloned into the mNG-SEC plasmid pDD268 (Addgene #132523).
A co-CRISPR approach [30] was used to swap the 3xFlag sequence in vab-7(zy137[vab-7::mNG::3xFlag]) with a T2A::mScarlet-I::H2B cassette to generate vab-7(zy142[vab-7::mNG::T2A::mScarlet-I::H2B*zy137]). A homologous repair plasmid (pAC798) containing 5’ and 3’ homology arms PCR amplified from zy132 and a T2A::mScarlet-I::H2B cassette ordered as an IDT gBlocks gene fragment. An sgRNA targeting a site within the 3xFlag sequence was generated using pDD162 as described [29].
Primers are listed in S1 Table. Sequence files for pAC661 and pAC798 are included in the supplemental materials.
2.1.3. Image acquisition.
Images of VNC neurons were acquired using a Zeiss Axio Imager M2 widefield fluorescence microscope with a 40 × /1.4 NA oil immersion objective. Images were saved as.czi files in a four-dimensional format (CZYX: two channels, 11–17 z-slices, 1216 × 1920 pixels). The channels and z-stacks were combined using maximum intensity projection and presented as 8-bit 2D images in TIFF format. Imaging resolutions were optimized for neuron diameters—mScarlet (0.258 µm), mNG (0.225 µm), mCherry (0.266 µm)—with an overall merged image resolution of approximately 0.266 µm and an isotropic voxel size of 0.146 μm. During image acquisition, worms exhibiting twisting, hooking, or coiling were excluded, as such deformations could compromise the segmentation accuracy and data reliability. For sample preparation, newly hatched L1 stage worms were mounted on 2% agarose pad slides containing 0.1 μg/μL of the paralytic Levamisole in M9 buffer.
2.2. VNC-Dist pipeline
2.2.1. Overall pipeline design.
Fiji’s multipoint tool is used to annotate neuron cell bodies and the rectum in anterior-to-posterior order using counter numbers (1: DAs, SABs, rectum; 2: DDs; 3: DBs), producing X–Y coordinates of all identified neurons and the rectum from the in-focus z-slices as a CSV file (Fig 3a).
(a) Neurons between SABVL (0% reference point) to the rectum (100% reference point) are annotated using Fiji Annotator (multipoint tool) and classified into three groups based on Counter numbers (1: DAs, SABs, rectum; 2: DDs; 3: DBs). Their X-Y coordinates are exported to CSV, and in-focus z-slices are merged and collapsed into 2D TIFF images. Panel 2, which is not used for annotation, highlights the nerve ring (NR) via enhanced red‑channel (pseudocolored magenta) intensity. (b) The SAM-Plus GUI for GPU-based batch segmentation of representative worms, with results exportable as a zip file and interactive correction or manual segmentation for coiled worms. (c) VNC-Quant GUI, which maps normalized neuron positions along the VNC’s AP axis and generates a spreadsheet of neuron positions (DDs, DBs, DAs, SABs) per genotype, with Tabs offering various data visualizations.
The in-focus slices are then merged and collapsed into 2D TIFF images for segmentation by SAM-Plus. Finally, normalized relative distances along the ventral nerve cord’s anterior–posterior axis are computed by tracing the ventral boundary (VNCL1) (Fig 1b).
All components of VNC-Dist were implemented in Python, with core functions built upon open-source libraries (SciPy [31],https://scipy.org/; NumPy [32],https://numpy.org/ for numerical analysis; scikit-image [33],https://scikit-image.org/; Pillow [34],https://python-pillow.org/; OpenCV [26],https://opencv.org/ for image processing; pandas [35],https://pandas.pydata.org/; Matplotlib [36],https://matplotlib.org/ for output visualization). To make the pipeline easier to use, we packaged VNC-Dist as a graphical user interface (GUI) using the Python-based Streamlit framework [37] (https://streamlit.io/), deployed within a Docker container on Linux/Ubuntu 24.04 LTS. This pipeline begins with a modified deep learning model, SAM-Plus, for segmenting 2D TIFF images of worms from noisy fluorescent micrographs. This model, which comprises approximately 636.12 million parameters, operates on a CUDA-enabled GPU on a compute cluster or on a dedicated GPU (e.g., GeForce RTX) to batch process images and accelerate throughput. The VNC-Dist pipeline includes two user-friendly GUIs (Fig 3b):
- a) SAM-Plus (GPU-based), an optimized version of SAM for precise worm segmentations, output as PNG masks.
- b) VNC-Quant (CPU-based), a custom mathematical algorithm for mapping the neurons along the VNCL1, (generating annotated PNG images, and then calculating normalized relative distances as percentages, which it outputs as both individual and concatenated CSV files. It also provides different tabs for visualizing the data and for statistical analysis.
VNC-Quant and SAM-Plus each launch in a web browser at distinct ports (http://localhost:8501 for VNC-Quant and http://localhost:8502 for SAM-Plus), accessible via command line or desktop launcher. Both GUIs are fully compatible with macOS, Linux, and Windows through Docker, and support batch processing for rapid, and efficient high-throughput data analysis.
2.2.2. Details of Worm segmentation with SAM-Plus.
SAM-Plus built upon the original Segment Anything Model (SAM) architecture and was integrated into VNC‑Dist without any additional training [38]. SAM-Plus comprises three tightly coupled modules: first, the “image encoder”, which uses the largest Vision Transformer backbone (ViT‑H) pretrained as a masked autoencoder (MAE) to convert each input image into dense spatial image embedding [39,40]; second, the “prompt encoder”, which transforms user‑provided prompts (points) into vectors that spotlight the targeted regions; and third, the “mask decoder”, a lightweight transformer‑style network [41] that fuses those image and prompt embeddings via cross-attention and upsampling to generate a precise, high-resolution binary segmentation mask (Fig 4a).
Maximum‐intensity projection (MIP) of collapsed, merged CZI images is first generated. Neuronal nuclei are manually annotated in Fiji with the multipoint tool (Counters: 1 for green points with rectum, 2 for magenta, 3 for pastel purple). These data are then processed with VNC-Dist in two steps: (a) SAM‑Plus builds upon the original SAM architecture to segment the worm body by feeding a uniform grid of two prompt points per side (white) into the prompt encoder, which turns them into spatial embeddings. These embeddings guide the MAE‑pretrained ViT‑H image encoder and lightweight mask decoder—via cross‑attention and upsampling—to generate an initial worm‑body mask, which is then post‑processed (artifacts removed and edges smoothed) to produce a precise, refined contour. (b) VNC-Quant uses OpenCV to extract the pixel-level worm outline (magenta dotted line), fits a parametric cubic spline S(t) (green) to these points, and projects orthogonally each neuron onto this VNCL1 spline. Neuron positions are calculated via adaptive Gaussian quadrature, from the anterior (projected SABVL, 0%) to the posterior (rectum, 100%). Anterior (A) and posterior (P) orientations are shown. Outputs include a CSV of relative distances and annotated images with mapped neuron positions.
SAM provides two segmentation modes: automatic (grid-based) and interactive (user-prompted). To achieve full automation, we used automatic mode.
The automatic SAM mask generator was configured with two grid points per side to guide attention toward the worm, a prediction IoU threshold of 0.98, a stability score threshold of 0.98, one crop layer, a downscale factor of 1 (no downsampling), and a minimum mask region area of 99,000 pixels to discard smaller regions. We processed batches of 2D merged and collapsed micrographs as inputs for SAM. Initial SAM-generated masks were binarized and inverted to emphasize the foreground, then smoothed with a 21 × 21 Gaussian blur, a 33 × 33 median filter and a bilateral filter (d = 9, σColor = 75, σSpace = 75), and finally subjected to morphological erosion (19 × 19 kernel) followed by closing (21 × 21 kernel). The refined segmented worms were saved as PNG files named to match their corresponding images. Due to the computational intensity of the process, an independent GUI version of the segmentation model, “SAM-Plus,” was developed using a Docker container and the Streamlit Python package [37] (Fig 3b). This version was specifically optimized for execution on a dedicated GPU. Although imaging coiled worms is not recommended, separate tabs in the SAM-Plus GUI allow for interactive correction of the segmented worms.
2.2.3. Contour detection and spline fitting with VNC-Quant.
VNC-Quant constructs a spline S(t), a smooth closed curve in image coordinates, that represents the boundary of the worm. First, OpenCV’s contour finder is applied to the SAM-Plus binary mask, producing a counterclockwise list of N control points
which by default begin at the top-leftmost pixel (Fig 4b). To ensure the spline starts at the SABVL landmark, the boundary points C are circularly shifted before fitting any splines. The pipeline computes:
where the divisor 2.24 is an empirically estimated ratio of L1 VNC length to full worm perimeter. Thus, the pipeline replaces C with the sequence
shifting the list by positions so that the first point lies at SABVL. This guarantees motoneuron projections follow a continuous anterior-to-posterior order without wrap-around. Next, each (shifted) point is assigned the uniformly spaced parameter
and fitted separate cubic splines and
through and
, respectively, using SciPy’s FITPACK solver with a curvature penalty. The resulting smooth closed curve
provides a reproducible boundary trace, starting at SABVL, for projecting neuronal coordinates and computing normalized distances along the VNC.
The fitted spline below is defined by minimizing the sum of squared deviations from the N contour points plus a λ-weighted curvature penalty and is computed in O(N) time using SciPy’s FITPACK cubic smoothing‐spline solver. Here, λ = 900 was chosen by visual inspection to balance fidelity to the sampled control points against penalization of curvature, producing a smooth boundary that is not required to interpolate every .
Let MN = (MNx, MNy) be the image coordinates of a given motoneuron. We projected it onto the spline S(t) by finding
so that its spline coordinates are
In particular, S(t*SABVL) locates the foot of the perpendicular from the SABVL landmark onto S(t). Because all motoneurons lie on the worm’s ventral surface, we defined the VNCL1 spline as the segment of the closed curve S(t) that lies closest to their projected coordinates. To measure the distance along this ventral spline from SABVL at (at t*SABVL) to any other neuron at (at t*k), we numerically integrate the arc length
using SciPy’s adaptive Gaussian quadrature with an absolute tolerance of 10−6 and a maximum of 100 subintervals (Fig 4b).
Therefore, if we have a sequence of K motoneurons whose projections onto the spline occur at
we first set
at the SABVL reference point. Then the arc length between the (i – 1)th and ith motoneuron is
and the cumulative distance from SABVL up to the Kth motoneuron is
Finally, the normalized percent‐of‐path for the kth motoneuron is
where Lref is the total ventral‐spline length from SABVL to rectum.
2.3. Statistical analysis
All analyses and graphing were performed in Python 3.10 using custom in-house scripts, which are also available through the user-friendly VNC-Dist GUI. Normality of neuron position distributions in wild-type (WT) and mutant strains was assessed via a three-step approach—box–violin plots, Q–Q plots, and the Shapiro–Wilk test (p ≥ 0.05). In the Q–Q plots, all genotypes were overlaid per neuron and compared by their fitted lines , where the intercept approximates the neuron position mean and the slope the standard deviation (S1–S3 Figs). Pairwise WT versus mutant comparisons (n > 30 per group) employed two‐sample t-tests: Student’s t-test when Levene’s test indicated equal variances, or Welch’s t-test otherwise. Effect sizes were quantified by Cohen’s d, with d ≥ 0.7 deemed significant. This effect size threshold corresponds to the minimal positional variability observed for DA8 and DA9 in PCP and sax-3/Robo mutants. For WT neurons, we built a correlation network using Pearson’s r ≥ 0.7 (p ≤ 0.05) to identify spatial clusters of motoneurons. To control for multiple comparisons in the VNC extension defect analyses, p-values were adjusted using the Bonferroni correction. We also assessed allometric scaling by fitting an ordinary least squares regression to the log‑transformed normalized neuron positions and absolute SABVL–rectum lengths in WT [42,43], then applied a Wald test to determine whether the estimated slope deviates significantly from 1 (isometry).
Finally, to evaluate performance across user experience levels, we computed the three-way mean absolute deviation (MAD) of neuron position measurements and processing time to assess inter-user variability, and both Pearson and intraclass correlation coefficients (ICC) to measure consistency between manual and VNC-Dist measurements. The overall mean absolute error (MAE) was also calculated to quantify accuracy.
3. Results
3.1. Multiplexed fluorescence imaging of DA, DD, and DB motoneurons
To label the DD, DA, and DB motoneuron classes at the L1 stage, we used transcription factors with class-specific expression: unc-30 in DD1–6, unc-4 in SAB and DA1–9, and vab-7 in DB1–7 neurons [44–46]. Promoter sequences from these genes were used to drive red and green fluorophores, enabling distinct nuclear labeling of each motoneuron class. We used the MosSCI procedure [28] to insert a single copy of an unc-30 promoter-driven mCherry::H2B transgene into the ttTi5605 site on chromosome II. CRISPR/Cas9 gene editing was used to endogenously tag the C-terminus of unc-4 with mNeonGreen (mNG) and the C-terminus of vab-7 with a dual-colour tag, mNG::T2A::mScarlet-I::H2B. The T2A self-cleaving peptide [47] enables co-expression of mNG and mScarlet markers. Histone H2B fused to mScarlet-I and mCherry was used to localize these fluorescent proteins to nuclei. In addition to DAs, unc-4 is also expressed in three SAB neurons, SABVL, SABVR, and SABD, located in the RVG [46]. When used in WT and in vang-1, prkl-1, sax-3, and double mutant combinations, this reporter system enables visualization of DD nuclei in red, SAB and DA nuclei in green, and DB nuclei in yellow at the L1 stage (Figs 1a and 6a).
(a) Merged and collapsed micrograph showing motoneurons along the AP axis (dashed line). Green arrows: DAs and SABs; magenta arrows: DDs; white arrows: DBs. Scale bar, 15 µm. (b) Dot plot of mean neuron positions normalized to SABVL (0%) and rectum (100%) for n = 49. Error bars represent mean ± 95% CI. (c) Mean sequential spacing of neurons along the AP axis, with segmented bar plots (top). Error bars represent SD. (d) Diagram showing the anterior-to-posterior order of all 22 motoneurons, grouped by class. (e) Correlation network analysis using motoneurons as nodes and significant relative distances (p < 0.05, Pearson r ≥ 0.75) as edges to group neurons into VNC, RVG, and PAG relative to SABVL (0%).
(a) Representative fluorescent images of vang-1(tm1422), vang-1(tm1422) sax-3(zy5), sax-3(zy5), prkl-1(ok3182) and vang-1(tm1422); prkl-1(ok3182) mutants respectively. Green arrows: DAs and SABs; magenta arrows: DDs; white arrows: DBs. The dashed white line represents the VNCL1 curve. Scale bar, 15 µm. (b) Dot plot of mean neuron positions normalized to SABVL (0%) and rectum (100%). Mean position of DD (psuedocolored magenta), DA (green), and DB (white) neurons are compared to WT. Arrows indicate statistically significant, high-magnitude shifts (Cohen’s d ≥ 0.7) from WT to mutant. Significance is indicated by asterisks (* and **) and arrows (***). Error bars represent mean neuron positions ± 95% confidence intervals (CI) and gray error bars in mutants indicate WT mean ± 95% CI. ***P < 0.001, **P < 0.01, *P < 0.05. (c) Diagrams showing the anterior-to-posterior order of all 22 motoneurons in single mutants, grouped by class. White spaces indicate overlapping neuron positions. (d) A measure of VNC extension is plotted as the mean position of the last neuron (excluding DA8 and DA9) relative to SABVL (0%) and rectum (100%) for each genotype (which, in these PCP and sax-3/Robo mutants corresponds to DD6). Pairwise comparisons between each mutant and WT were performed using Welch’s t-test with Bonferroni correction (α = 0.05). Significance levels are indicated as ***p < 0.001; ns, not significant. Boxplot showing median (magenta line) with overlaid mean ± 95% CI (black T‑bars).
3.2. Overview of the VNC-Dist pipeline
Figs 1–3 establish the foundation for our approach: Fig 1 illustrates the anatomical landmarks and spline model for motoneuron mapping, Fig 2 compares manual Fiji measurements with our semi-automated tool, and Fig 3 details the VNC-Dist GUI. Building on this groundwork, VNC-Dist offers a robust and standardized pipeline for the quantification of VNC neuronal positioning. This pipeline comprises two components. First, GPU-accelerated batch processing segments worms in micrographs using the state-of-the-art Segment Anything Model (SAM) (Fig 4a). Second, CPU-based processing measures the normalized relative position of projected DD, DA, and DB nuclei along the VNCL1 spline, which is on the ventral side of S(t), using SABVL (anterior) and the rectum (posterior) as reference points (Fig 4b).
Anchoring measurements to the SABVL–rectum axis provided a reference scale for robust cross-genotype comparisons. SABVL–rectum lengths varied moderately among genotypes, with coefficients of variation (CV) ranging from 15.2 to 19.1% (WT: 16.8%, sax-3: 17.8%, vang-1: 19.1%, prkl-1: 16.0%, vang-1 sax-3: 15.7%, vang-1;prkl-1: 15.2%,), which exceeds the 6.7% CV of total body length in synchronized L1 larvae (WormSizer [48]) and is comparable to the approximately 10.2% CV in unsynchronized cohorts [49]. Normalizing neuron positions to SABVL–rectum instead of absolute distances minimized size-dependent variability and enabled direct, quantitative comparisons of genotype-specific effects on neuron positioning. Indeed, the average CV across neurons for absolute versus normalized measurements falls from 24.4% to 17.9% in WT, 20.96% to 9.45% in sax-3, 18.38% to 10.58% in vang-1, 20.01% to 12.39% in prkl-1, 20.75% to 14.04% in vang-1 sax-3, and 17.56% to 9.09% in vang-1;prkl-1. However, double‐logarithmic regressions in WT revealed that no neuron position scales isometrically with SABVL–rectum length, each slope differs significantly from 1 (95% confidence interval excludes 1, Wald test p < 0.05). This confirms that, although normalization removes the primary size‑dependent effect (as seen in the marked CV reduction), it cannot fully eliminate the subtler, second‑order allometric bias. Consequently, although we did not synchronize genotypes at L1 in this study, future work should apply rigorous L1 synchronization to fully eliminate size-dependent confounding and maximize the precision of phenotype detection.
To validate the relative distance measurements, the toolkit produces annotated images that display the projection of neurons onto the ventral side of the worm (VNCL1) along with the corresponding t-values for each neuron. This visualization confirms whether the ordering of t-values accurately reflects the anterior-to-posterior sequence of the projected neurons according to the reference points (Fig 4b). In addition, VNC-Dist supports batch processing. The pipeline process is as follows:
First, neuronal coordinates are determined using the Fiji multipoint tool by manually selecting the centers of nuclei in 3D z-slices. Three distinct “Counter” numbers are assigned per class (1: DAs, SABs, and rectum; 2: DDs; 3: DBs), and the extracted X-Y coordinates are saved as CSV files (Fig 4b). Next, worm images are segmented using the SAM-Plus. The VNC-Quant, a mathematical algorithm, then extracts the worm’s contours and fits a smooth cubic spline, S(t). Neurons are projected onto the spline segment between the SABVL and rectum, termed VNCL1, and their positions are normalized as percentages of the curve length (with SABVL at 0% and the rectum at 100%). This method accurately reflects the actual ventral nerve cord, which runs parallel to VNCL1 (Fig 1b).
3.3. Performance evaluation
To evaluate the efficacy of worm segmentation in the VNC-Dist pipeline, we applied it to images of WT, vang-1, prkl-1, and sax-3 single and double-mutant. The pipeline successfully segmented over 290 images using SAM-Plus, and VNC-Quant quantified spline-assigned positions for more than 7,000 DD, DA, and DB nuclei relative to SABVL and rectum. Before conducting further analysis of VNC neuronal positioning to investigate VNC assembly, we manually reviewed each annotated image to ensure correct neuron projection and accurate anterior-to-posterior ordering of t-values. This manual review confirmed that all neuron projections and t-value orderings were correct and accurate, ensuring the validity of our subsequent analyses.
We next compared manual neuron position measurements with those obtained with VNC-Dist. To compare processing-time, we performed measurements of prkl-1(ok3182), a mutant with strong neuron position defects [10]. This analysis showed that measurements obtained with VNC-Dist were on average 1.78 times faster than the manual method across three users with beginner, intermediate, and expert Fiji experience. For this prkl-1 mutant, inter-user variability in processing time, measured by three-way MAD, fell from 25.3 min with manual analysis to 7.1 min using VNC-Dist (a 3.6-fold reduction). Manual processing times were 83, 127, and 153 min for expert, intermediate, and beginner users, respectively, compared to 56, 70, and 74 min with VNC-Dist. Likewise, three-way MAD in neuron-position measurements across users was just 0.27% with VNC-Dist, compared with 0.42% for the manual method, indicating substantially greater inter-user variability in manual measurements. Three-way Pearson correlation and intraclass correlation coefficient (ICC) values averaged 0.99, reflecting excellent agreement between the neuron position measurements of the two methods. The overall mean absolute error (MAE) between manual and VNC-Dist neuron position measurements averaged 1.1%.
Together, these metrics demonstrate the speed, precision, and reproducibility of our semi-automated tool for high-throughput analysis.
3.4. Key outputs from VNC-Dist
We used VNC-Dist to quantify motoneuron positions in the WT VNC at L1. As expected, the neuronal positions in WT exhibited normal distributions, as confirmed by the Shapiro-Wilk test (p ≥ 0.05) and further supported by the Q–Q plot and violin-box plot analyses (S1–S3 Figs). This data allowed us to quantify multiple aspects of motoneuron positioning and patterning in WT. First, plotting the mean positions of DD, DA, and DB nuclei relative to SABVL and the rectum confirmed the consistency in their positioning along the VNC (Fig 5a, b).
Notably, DA and DB cell bodies (nuclei) are more widely spaced in the middle of the VNC and closer to each other at either end, whereas the DD cell bodies are roughly equally spaced regardless of where they occur in the VNC (Fig 5c). Second, plotting the sequential order of motoneurons from anterior to posterior confirmed that their arrangement along the AP axis is highly stereotyped. Despite some variability in the most anterior DD and DB positions and excluding the most posterior DA8 and DA9, which lie opposite each other on the left and right, the DD, DA, and DB cell bodies display a consistent alternating pattern, with no two cells of the same motoneuron class positioned next to each other (Fig 5d). Correlation network analysis (P < 0.05, Pearson r ≥ 0.75), which quantifies pairwise spatial similarity, delineated three clusters matching the VNC’s anatomical subdivisions. The VNC neurons formed one cluster with minimal variation in the central region of the network, while the remaining two clusters consisted of neurons in the RVG and PAG (Fig 5e). These observations suggest that the positioning of middle VNC neurons may involve mechanisms distinct from those regulating neurons in the more tightly packed RVG and PAG regions.
We next extended our analysis to PCP and Robo pathway mutants, which are known to affect motoneuron positioning in the VNC [10]. To assess the impact of vang-1, prkl-1, and sax-3 mutations on neuronal positioning, we used our semi-automated pipeline to quantify the mean position (with 95% confidence intervals) of neurons relative to SABVL and the rectum in the following strains: vang-1(tm1422), prkl-1(ok3182), and sax-3(zy5) single mutants, as well as vang-1(tm1422) sax-3(zy5), and vang-1(tm1422); prkl-1(ok3182) double mutants. Violin–box plots and Q–Q plots were used to examine neuronal position distributions across mutant strains, with some approximating a normal distribution and others showing departures from normality (S1 and S2 Figs). DA neurons, and to a slightly lesser extent DB neurons, may remain normally distributed, signaling robust guidance, while DD neurons often deviate, revealing greater sensitivity to the PCP and Robo pathways (S2 Fig).
It is important to note that motoneurons of each class are numbered sequentially from anterior to posterior based on their plotted position and not by terminal lineage identity, which may be unknown in mutants due to position shifts. As expected, compared to WT, PCP and Robo mutants exhibited pronounced disruptions in neuronal positioning and organization (Fig 6a, b).
vang-1 and prkl-1 single mutants exhibited significant anterior shifts in the mean positions of many DD, DA, and DB cell bodies, with prkl-1 mutants showing significantly more severe defects than vang-1 mutants. These shifts were less pronounced in sax-3 single mutants, with only DD2 and DD6 showing significant anterior shifts in their mean positions (Fig 6b). However, an examination of individual neuron position distributions (S1 Fig) reveals anterior displacements in a subset of neurons, such as DD4, that are not evident when considering mean position values. In all three mutant backgrounds, these positional defects are accompanied by changes in the arrangement or pattern of motoneurons within the VNC of individual worms (Fig 6c). In vang-1; prkl-1 double mutants, the anterior shifts in mean neuron position more closely resemble the milder phenotype observed in vang-1 single mutants than the stronger defects seen in prkl-1 mutants, suggesting that, for some aspects of VNC assembly, VANG-1 acts downstream of PRKL-1. This epistatic interaction was noted previously when only DD neuron positions were assessed [10].
As expected, disruption of both the PCP-like and Robo pathways in the vang-1; sax-3 double mutants showed the most pronounced anterior shifts, consistent with severe convergent extension defects during embryonic VNC assembly that likely interfered with the posterior migration of neuronal progenitors. This convergent extension defect is evident in a plot of the mean position of the most posterior motoneuron, excluding DA8 and DA9, which appear less affected by the disruption (Fig 6d).
These results indicate that VNC-Dist can replicate previous findings from manual measurements, which focused exclusively on DD neuron positions, but in a way that is less labor-intensive and likely more reproducible across users. Furthermore, by examining all L1 VNC motoneurons, it extends these observations to include DA and DB neurons, providing a more comprehensive view of the perturbations occurring during embryonic VNC assembly.
4. Discussion
Taken together, our microscopy and software pipeline for quantifying neuron cell body positions within the L1 VNC provides precise reproducible measurements crucial for understanding genetic factors influencing neuronal organization and positioning in C. elegans. This high-throughput interactive pipeline integrates deep learning with numerical analysis methods to robustly quantify neuron spacing along the VNC.
Our pipeline analyzed fluorescence micrographs from various mutant strains, including vang-1, prkl-1, sax-3, and their double mutant combinations, revealing distinct patterns of neuronal displacement. These findings underscore the critical role of these genes in establishing the spatial order of motoneurons during VNC assembly. VNC-Dist is a niche pipeline that is distinct from other generalist platforms such as NeuroPAL [50] or CellProfiler [51], because it is optimized for VNC motoneuron positioning at L1 stage. In the future, VNC-Dist could be adapted to analyze cell positioning in C. elegans at other developmental stages, quantifying ventral, dorsal, and midline cell positioning along the AP axis. By using parametric spline fitting with numerical analysis for continuous curve length calculation, and deep learning for worm outline extraction, the method yields robust and precise quantification across diverse worm shape and cell positioning scenarios. The VNC neurons were projected onto the ventral outline rather than the spine line [52], as it offers both true absolute cell-to-cell distances and normalized distances based on the anterior and posterior reference points (SABVL as 0% and rectum as 100%), providing a more biologically representative model of the VNC.
The primary objective of this study was to develop VNC-Dist, a user-friendly tool designed to replace the time-consuming, laborious, and error-prone manual measurement of VNC motoneuron positions. We envision further enhancement of the VNC-Dist into a fully automated pipeline. Using both state-of-the-art nuclei segmentation [53] and classical image processing techniques, future versions will aim to identify automatically all motoneuron nuclei at scale, including DA, DD, and DB types, thereby eliminating the need for manual annotation in Fiji to extract the positional information. Furthermore, the segmentation component of VNC-Dist, SAM-Plus, does not require training dataset generation or model training. However, it can be fine-tuned using the mask decoder of Meta AI’s SAM algorithm with human-verified ground truth generated by SAM to facilitate the segmentation of challenging coiled worms.
Consequently, VNC-Dist offers a powerful platform that combines mathematical precision with deep learning to produce accurate results in a time-efficient manner. High-throughput analysis of VNC neuron types from diverse fluorescence images and genotypes advances our understanding of the molecular and cellular mechanisms that govern neuronal positioning.
5. Code availability
The reviewed version of the VNC-Dist pipeline, including the code, GUI, and future updates, is available on GitHub under a permissive open-source license at https://github.com/C-elegans-VNC/VNC-Dist. Additionally, test data, including TIF images and the corresponding CSV coordinates, were provided to facilitate testing and evaluation of the pipeline.
Supporting information
S1 Fig. Visualization (violin plot overlaid a box plot) of DD, DA and DB neuronal positions across genotypes.
Mutant strains (prkl-1(ok3182), sax-3(zy5), vang-1(tm1422), vang-1;prkl-1, vang-1 sax-3) exhibit altered anteroposterior neuron positioning compared to WT. Distributions assess normality and highlight genotype specific effects on neuron positioning along the AP axis, with median (black) and mean (blue) indicated by vertical lines.
https://doi.org/10.1371/journal.pone.0331188.s002
(TIF)
S2 Fig. Normality assessment of neuron positions for DA, DD, and DB neurons in WT and mutants.
Q–Q plots with Shapiro–Wilk tests assess the normality of DA, DD and DB neuron position distributions in WT and five mutant genotypes (P: prkl-1(ok3182), V: vang-1(tm1422), S: sax-3(zy5), VP: vang-1;prkl-1, VS: vang-1 sax-3). Deviations from the diagonal indicate non-normality. Legend entries “Genotype (Y/N)” report Shapiro–Wilk test outcomes (Y = normal; N = non-normal) and are color-coded by genotype. VS (cyan) consistently has the lowest intercept (most anterior shift) across neurons, with P (pink) a close second, and VS’s markedly steeper slope reflects its larger variance.
https://doi.org/10.1371/journal.pone.0331188.s003
(TIF)
S3 Fig. Shapiro–Wilk test results for normality of neuron positions in WT.
(a) Neurons with p-values > 0.05 are considered normally distributed. (b) Although DA2, DA3, DA8, DA9, DB1, DD1, DD2, and DD6 showed significant deviations from normality (p < 0.05), their Shapiro statistics, histograms, and Q–Q plots suggest they can be reasonably assumed to follow a normal distribution (n = 49).
https://doi.org/10.1371/journal.pone.0331188.s004
(TIF)
S1 Dataset. Excel spreadsheet of neuron positions normalized to SABVL (0%) and rectum (100%).
https://doi.org/10.1371/journal.pone.0331188.s005
(XLSX)
Acknowledgments
Some strains were provided by the Caenorhabditis Genetics Center, which is funded by the National Institutes of Health Office of Research Infrastructure Programs (P40 OD010440). The authors acknowledge the Cell Biology and Image Acquisition Core (RRID: SCR_021845) funded by the University of Ottawa, Ottawa, Natural Sciences and Engineering Research Council of Canada (NSERC), and the Canada Foundation for Innovation.
References
- 1.
Hutter H. Fluorescent protein methods: strategies and applications. Methods in cell biology. Elsevier; 2012: 67–92.
- 2. White JG, Southgate E, Thomson JN, Brenner S. The structure of the ventral nerve cord of Caenorhabditis elegans. Philos Trans R Soc Lond B Biol Sci. 1976;275(938):327–48. pmid:8806
- 3. Smith JJ, Taylor SR, Blum JA, Feng W, Collings R, Gitler AD, et al. A molecular atlas of adult C. elegans motor neurons reveals ancient diversity delineated by conserved transcription factor codes. Cell Rep. 2024;43(3).
- 4. Cook SJ, Jarrell TA, Brittin CA, Wang Y, Bloniarz AE, Yakovlev MA, et al. Whole-animal connectomes of both Caenorhabditis elegans sexes. Nature. 2019;571(7763):63–71. pmid:31270481
- 5. Taylor SR, Santpere G, Weinreb A, Barrett A, Reilly MB, Xu C, et al. Molecular topography of an entire nervous system. Cell. 2021;184(16):4329–47.e23. pmid:34237253
- 6. Sprague DY, Rusch K, Dunn RL, Borchardt JM, Ban S, Bubnis G. Unifying community whole-brain imaging datasets enables robust neuron identification and reveals determinants of neuron position in C. elegans. Cell Rep Methods. 2025.
- 7. Long F, Peng H, Liu X, Kim SK, Myers E. A 3D digital atlas of C. elegans and its application to single-cell analyses. Nat Methods. 2009;6(9):667–72. pmid:19684595
- 8. Hailstone M, Waithe D, Samuels TJ, Yang L, Costello I, Arava Y, et al. CytoCensus, mapping cell identity and division in tissues and organs using machine learning. Elife. 2020;9:e51085. pmid:32423529
- 9. Lu Y, Ahamed T, Mulcahy B, Meng J, Witvliet D, Guan SA, et al. Extrasynaptic signaling enables an asymmetric juvenile motor circuit to produce symmetric undulation. Curr Biol. 2022;32(21):4631-4644.e5. pmid:36182701
- 10. Shah PK, Tanner MR, Kovacevic I, Rankin A, Marshall TE, Noblett N, et al. PCP and SAX-3/Robo pathways cooperate to regulate convergent extension-based nerve cord assembly in C. elegans. Dev Cell. 2017;41(2):195–203.
- 11.
Frith TJR, Briscoe J, Boezio GLM. From signalling to form: the coordination of neural tube patterning. 2023.
- 12. Chan W, Evans J, Roenspies T, Rumley JD, Murray JI, Colavita A. Notch-mediated regulation of β-Catenin-TCF activity instructs anteroposterior neuron positioning in C. elegans. bioRxiv. 2025;2023.
- 13. Noblett N, Roenspies T, Flibotte S, Colavita A. Nuclear hormone receptor regulation of Caudal mediates ventral nerve cord assembly in C. elegans. bioRxiv. 2025;2023.
- 14. Noblett N, Roenspies T, Flibotte S, Colavita A. IPPK-1 and IP6 contribute to ventral nerve cord assembly in C. elegans. bioRxiv. 2024;2023.
- 15. Longair MH, Baker DA, Armstrong JD. Simple Neurite Tracer: open source software for reconstruction, visualization and analysis of neuronal processes. Bioinformatics. 2011;27(17):2453–4. pmid:21727141
- 16. Dang KM, Zhang YJ, Zhang T, Wang C, Sinner A, Coronica P, et al. NeuroQuantify - An image analysis software for detection and quantification of neuron cells and neurite lengths using deep learning. J Neurosci Methods. 2024;411:110273. pmid:39197681
- 17. Jung SK. AniLength: GUI-based automatic worm length measurement software using image processing and deep neural network. SoftwareX. 2021;15:100795.
- 18. Arshadi C, Günther U, Eddison M, Harrington KIS, Ferreira TA. SNT: a unifying toolbox for quantification of neuronal anatomy. Nat Methods. 2021;18(4):374–7. pmid:33795878
- 19. Meijering E, Jacob M, Sarria J-CF, Steiner P, Hirling H, Unser M. Design and validation of a tool for neurite tracing and analysis in fluorescence microscopy images. Cytometry A. 2004;58(2):167–76. pmid:15057970
- 20.
Lefebvre AEYT, Sturm G, Lin TY, Stoops E, Lopez MP, Kaufmann-Malaga B. Nellie: Automated organelle segmentation, tracking, and hierarchical feature extraction in 2D/3D live-cell microscopy. 2024.
- 21. Schindelin J, Arganda-Carreras I, Frise E, Kaynig V, Longair M, Pietzsch T, et al. Fiji: an open-source platform for biological-image analysis. Nat Methods. 2012;9(7):676–82. pmid:22743772
- 22. Vincent S, Forsey D. Fast and accurate parametric curve length computation. J Graphics Tools. 2001;6(4):29–39.
- 23. Ma J, He Y, Li F, Han L, You C, Wang B. Segment anything in medical images. Nature Commun. 2024;15(1):654.
- 24. Archit A, Freckmann L, Nair S, Khalid N, Hilt P, Rajashekar V. Segment anything for microscopy. Nature Methods. 2025.
- 25. Ravi N. SAM 2: segment anything in images and videos. ArXiv. 2024.
- 26. Culjak I, Abram D, Pribanic T, Dzapo H, Cifrek M. A brief introduction to OpenCV. In: 2012 proceedings of the 35th international convention MIPRO, 2012. 1725–30.
- 27.
Süli E, Mayers DF. An introduction to numerical analysis. Cambridge University Press; 2003.
- 28. Frøkjaer-Jensen C, Davis MW, Hopkins CE, Newman BJ, Thummel JM, Olesen S-P, et al. Single-copy insertion of transgenes in Caenorhabditis elegans. Nat Genet. 2008;40(11):1375–83. pmid:18953339
- 29. Dickinson DJ, Pani AM, Heppert JK, Higgins CD, Goldstein B. Streamlined genome engineering with a self-excising drug selection cassette. Genetics. 2015;200(4):1035–49. pmid:26044593
- 30. Arribere JA, Bell RT, Fu BXH, Artiles KL, Hartman PS, Fire AZ. Efficient marker-free recovery of custom genetic modifications with CRISPR/Cas9 in Caenorhabditis elegans. Genetics. 2014;198(3):837–46. pmid:25161212
- 31. Virtanen P, Gommers R, Oliphant TE, Haberland M, Reddy T, Cournapeau D, et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat Methods. 2020;17(3):261–72. pmid:32015543
- 32. Harris CR, Millman KJ, van der Walt SJ, Gommers R, Virtanen P, Cournapeau D, et al. Array programming with NumPy. Nature. 2020;585(7825):357–62. pmid:32939066
- 33. van der Walt S, Schönberger JL, Nunez-Iglesias J, Boulogne F, Warner JD, Yager N, et al. scikit-image: image processing in Python. PeerJ. 2014;2:e453. pmid:25024921
- 34.
Clark A. Pillow (pil fork) documentation. 2015. https://readthedocs.org
- 35.
McKinney W. Data structures for statistical computing in Python. SciPy. 2010: 51–6.
- 36. Hunter JD. Matplotlib: A 2D graphics environment. Comput Sci Eng. 2007;9(03):90–5.
- 37. Khorasani M, Abdou M, Hernández Fernández J. Web application development with streamlit. Softw Dev. 2022:498–507.
- 38. Kirillov A, Mintun E, Ravi N, Mao H, Rolland C, Gustafson L. Segment anything. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. 2023: 4015–26.
- 39. He K, Chen X, Xie S, Li Y, Dollár P, Girshick R. Masked autoencoders are scalable vision learners. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 2022: 16000–9.
- 40. Kraus O, Kenyon-Dean K, Saberian S, Fallah M, McLean P, Leung J. Masked autoencoders for microscopy are scalable learners of cellular biology. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2024: 11757–68.
- 41. Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN. Attention is all you need. Adv Neural Inf Process Syst. 2017;30.
- 42. Shingleton A. Allometry: the study of biological. Nature Educ Knowledge. 2010;3(10):1–7.
- 43. McInally SG, Kondev J, Goode BL. Scaling of subcellular actin structures with cell length through decelerated growth. Elife. 2021;10:e68424. pmid:34114567
- 44.
Esmaeili B, Ross JM, Neades C, Miller DM III, Ahringer J. The C. elegans even-skipped homologue, vab-7, specifies DB motoneurone identity and axon trajectory. 2002.
- 45. Jin Y, Hoskins R, Horvitz HR. Control of type-D GABAergic neuron differentiation by C. elegans UNC-30 homeodomain protein. Nature. 1994;372(6508):780–3. pmid:7997265
- 46. Miller DM 3rd, Niemeyer CJ. Expression of the unc-4 homeoprotein in Caenorhabditis elegans motor neurons specifies presynaptic input. Development. 1995;121(9):2877–86. pmid:7555714
- 47. Liu Z, Chen O, Wall JBJ, Zheng M, Zhou Y, Wang L, et al. Systematic comparison of 2A peptides for cloning multi-genes in a polycistronic vector. Sci Rep. 2017;7(1):2193. pmid:28526819
- 48. Moore BT, Jordan JM, Baugh LR. WormSizer: high-throughput analysis of nematode size and shape. PLoS One. 2013;8(2):e57142. pmid:23451165
- 49. Baasch T, Reichert P, Lakämper S, Vertti-Quintero N, Hack G, Casadevall I Solvas X, et al. Acoustic compressibility of Caenorhabditis elegans. Biophys J. 2018;115(9):1817–25. pmid:30314654
- 50. Yemini E, Lin A, Nejatbakhsh A, Varol E, Sun R, Mena GE, et al. NeuroPAL: a multicolor atlas for whole-brain neuronal identification in C. elegans. Cell. 2021;184(1):272–88.
- 51. Stirling DR, Swain-Bowden MJ, Lucas AM, Carpenter AE, Cimini BA, Goodman A. CellProfiler 4: improvements in speed, utility and usability. BMC Bioinformatics. 2021;22(1):433. pmid:34507520
- 52. Andrews DGH. A new method for measuring the size of nematodes using image processing. Biol Methods Protoc. 2020;5(1):bpz020. pmid:32161812
- 53. Ma J, Xie R, Ayyadhury S, Ge C, Gupta A, Gupta R. The multimodality cell segmentation challenge: toward universal solutions. Nat Methods. 2024:1–11.