Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.04.27.721136

A motif for domain-specific analysis applets that are easy to learn, reuse, test, and to compose into pipelines: application to vision science

Abstract

Scientific progress depends on the analysis of primary data, yet the small, domain-specific programs that perform most scientific analyses are typically poorly documented, narrowly tested, and difficult to reuse outside the lab that created them. General-purpose pipeline tools address the problem of running steps in order but do not enforce documentation, testing, or standardized outputs. We describe a motif for building domain-specific analysis applets, which we call calculators, that constrains developer choices in order to produce code that is readable, tested, and reusable almost as a byproduct of following the template. Calculators operate on a typed, searchable database of documents, eliminating the need to explicitly wire inputs and outputs together; instead, each calculator searches the database for documents it can operate on and adds its results as new typed documents. Calculators must provide documentation in a standard location, self-tests that can be run and inspected interactively, adjustable input parameters, a single well-defined output document type, and a default plotting method. Sets of calculators compose naturally into pipelines whose outputs satisfy FAIR principles at every stage. We demonstrate the motif by implementing calculators for common analyses in vision science, including orientation and direction selectivity, contrast tuning, spatial and temporal frequency tuning, speed tuning, and Hartley reverse correlation. These calculators have been used in published work and are in active use across collaborating laboratories. We discuss the design principles of the motif, its advantages and limitations, and its applicability to domain-specific computation across neuroscience and beyond. Significance StatementScientists often must write small programs to analyze their own data. These programs are usually poorly documented, lightly tested, and hard for other labs to reuse. Mistakes in this kind of code have even caused well-known papers to be retracted. We describe a simple pattern for writing these programs, which we call a calculator. The pattern requires the programmer to include clear documentation, built-in tests, adjustable settings, and a standard form of output. Calculators work by searching a shared database for data they know how to handle, so many calculators can be chained together into a pipeline without extra setup. We show how this works by building calculators for common visual neuroscience analyses that other labs are already using.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Lepsky, A. A., Severson, M. K., Wang, R., Cheng, X., Rodriguez, R. L., Gong, R., Van Hooser, S. D.. 2026-04-30. A motif for domain-specific analysis applets that are easy to learn, reuse, test, and to compose into pipelines: application to vision science. https://doi.org/10.64898/2026.04.27.721136

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Cofilin Suppresses Tau-Induced Defects in Dense-Core Granule Formation and Aβ-Induced Neurodegeneration

Intracellular neurofibrillary tangles formed from hyperphosphorylated tau and extracellular amyloid plaques containing aggregated A{beta}-peptides, specific cleavage products of the Amyloid Precursor Protein (APP), are the primary histopathological hallmarks of Alzheimers Disease (AD), the leading cause of dementia in humans. However, the initiating steps that lead to these pathologies and early neurodegeneration, and the mechanisms by which tau- and A{beta}-induced effects might be linked remain unclear. Using the prostate-like secondary cell (SC) in Drosophila, we recently showed that A{beta} modulates normal APP- and membrane-associated protein aggregation in the dense-core granule (DCG) compartments of the regulated secretory pathway by interfering with subsequent membrane:DCG dissociation. This disrupts endolysosomal trafficking and propagates the resulting endolysosomal defects to other cells that endocytose the secreted abnormal DCG proteins. Here we show that overexpressing human tau also disrupts DCG aggregation and membrane:DCG dissociation inside SC secretory compartments, leading to increased endolysosomal targeting of these compartments. In a genetic screen, we find that knockdown of cofilin, which encodes an actin-severing protein required for dynamic remodelling of microfilaments, generates a similar phenotype. Consistent with this, overexpression of Cofilin, which is known to suppress tau-induced neurodegeneration in flies, reduces tau-induced DCG defects in SCs. Indeed, we find that Cofilin overexpression also suppresses A{beta}-induced degeneration in the fly eye. We conclude that membrane:DCG aggregate dissociation in DCG compartments is disrupted by both tau- and A{beta}-induced genetic changes that are relevant to AD, and this partially involves inhibition of actin cytoskeleton dynamics. Increasing actin remodelling activity can suppress neurodegeneration induced by both tau and A{beta}, suggesting that this process provides an important functional link between them that might be targeted therapeutically.

neuroscience↗

Lactate Promotes an Anti-Inflammatory Phenotype in Activated Microglia

Microglial activation is a central component of neuroinflammatory responses in many brain pathologies. Increasing evidence indicates that microglial phenotype is tightly linked to cellular metabolism, with pro-inflammatory activation associated with enhanced glycolytic flux. Lactate, traditionally considered a metabolic substrate, has recently emerged as a signaling molecule capable of modulating immune responses. However, its direct impact on microglial inflammatory activation remains incompletely understood. In the present study, we investigated the effects of lactate on microglial phenotype under inflammatory conditions using primary rat microglial cultures stimulated with lipopolysaccharide (LPS). Microglial activation was assessed through the expression of phenotypic markers, cytokine production, and secreted chemokine profiles. LPS stimulation induced a strong pro-inflammatory response characterized by increased CD86 expression, elevated TNF-alpha secretion, and enhanced release of several pro-inflammatory chemokines. Post-treatment with sodium L-lactate significantly attenuated these inflammatory responses, reducing pro-inflammatory marker expression and cytokine secretion, while restoring the anti-inflammatory marker CD206. To explore the relevance of these findings in a pathological context, the effects of lactate were further examined in a neonatal rat model of hypoxia-ischemia. Sodium L-lactate administration after injury reduced microglial activation and promoted a shift toward an anti-inflammatory phenotype in cortical regions, whereas hippocampal microglia showed a more limited response. Together, these results demonstrate that lactate directly modulates microglial inflammatory activation and cytokine production in vitro and suggest that lactate-mediated metabolic signaling may contribute in vivo to the regulation of neuroinflammatory responses.

neuroscience↗

Different hippocampal subfield volumes predict source memory performance and general cognitive ability in an adult lifespan sample

Modest positive associations between episodic memory performance and whole hippocampal and hippocampal subfield volumes have been reported in numerous prior studies. A smaller number of studies have reported associations between hippocampal volume and performance on tests of non-mnemonic cognition. The present study examined whether these associations were evident in a lifespan sample of cognitively healthy adults. Of particular interest was whether any identified associations were sensitive to age, and whether associations between subfield volumes and mnemonic and non-mnemonic performance were subfield dependent. We acquired high-resolution T1- and T2-weighted structural images from 163 adults (18-87 years of age). Participants also undertook a comprehensive neuropsychological test battery and an in-scanner test of source memory. Principal components analysis was employed to reduce the neuropsychological test scores to 5 cognitive components. Two components reflected memory performance while the other three reflected different aspects of non-mnemonic cognition. Hippocampal subfields (Cornu Ammonis (CA)1, CA2-3, dentate gyrus (DG) and subiculum) were segmented and measured with the Automated Segmentation of Hippocampus Subfields (ASHS) package. Source memory performance was selectively associated across participants with CA2-3 volume. By contrast, both mnemonic and non-mnemonic component scores derived from the test battery were associated exclusively with the volume of the DG. All associations were age-invariant. The findings indicate that different cognitive domains can be dissociated by virtue of their associations with different hippocampal subfields. Of importance, these associations appear to be life-long and hence are unlikely to reflect individual differences in age-related decline in structural integrity.

neuroscience↗