| Literature DB >> 31971963 |
Abstract
SWC files are a widely used format to store neuron morphologies, and are used to share digitally reconstructed neurons using NeuroMorpho.org as well as predict functional attributes using simulation environments such as NEURON. Here we set out to develop an easily accessible tool to validate and correct SWC formatted files with an emphasis on high throughput batch processing. SWC_BATCH_CHECK is a package that provides a suite of methods to parse and correct the syntactic structure of a directory of SWC files. This tool ensures that user specified structures such as the soma or basal dendrite are correctly connected while fixing morphological features. This tool will report on missing or invalid data values while also returning basic statistical features for each file. SWC_BATCH_CHECK was validated and tested using thousands of individual SWC files to benchmark runtime performance and efficacy in both reporting on and correcting disparate SWC file features. SWC_BATCH_CHECK is open source and freely available to all users without restriction with guidelines and requirements provided to ensure straightforward installation and execution.Entities:
Mesh:
Year: 2020 PMID: 31971963 PMCID: PMC6977721 DOI: 10.1371/journal.pone.0228091
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Fig 1Runtime performance testing of SWC_BATCH_CHECK.
(A) Directories containing different numbers of SWC formatted files were provided as input and ran using default settings. Directory sizes were: 0.000285MB, 0.000627MB, 2.320682MB, 5.773404MB, 17.037202MB, and 28.301MB. From this analysis the equation of the regression line was y = 2.631 + 0.023⋅x; correlation coefficient, r = 0.9469. (B) Validation testing of uncorrected SWC file containing an incorrectly connected basal and apical dendrite (left image) and a SWC file corrected using SWC_BATCH_CHECK (right image) that fixes the inconsistency of apical to basal connection. Images were rendered using SharkViewer [12].
Fig 2Testing SWC_BATCH_CHECK on real neuron reconstructions from NeuroMorpho.
(A) Full reconstruction of a CA1 pyramidal cell (NeuroMorpho ID NMO_00227; neuron name c91662) is shown in the leftmost image. Errors were introduced (arrowheads) to insert basal dendrite into the apical dendrite region (middle image). The apical region from the corrected output file using SWC_BATCH_CHECK with the correct apical dendrite syntactic structure is rendered in the rightmost image. (B) Reconstruction of a precentral gyrus layer 5 pyramidal cell (NeuroMorpho ID NMO_05515; neuron name 16-L5-na) is shown in the leftmost image. The radius was changed to zero for several compartments along the primary apical branch (upper middle image, arrowheads denote errors). The region containing these errors is shown in the full reconstruction (leftmost image) as a small dashed rectangle. Part of the corrected SWC file using SWC_BATCH_CHECK is shown as the rightmost upper image. Errors were also introduced into the axonal region (marked by arrowheads) of the cell by changing several axonal compartments to apical dendrite syntax (middle lower image). The resulting SWC file from SWC_BATCH_CHECK was visually rendered in rightmost lower image. For all images green indicates soma, red indicates apical dendrite, blue for basal dendrite, and orange for axon. SWC files for all images were rendered using neuTube [9] except for the upper images in (B) which were generated using SharkViewer [12].