Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.08.06.743221

MIRA: an open source and user-friendly software to automate counting and sizing of fungal spores

Abstract

BackgroundThe quantification of fungal spores constitutes a fundamental metric in phytopathology, serving as the primary variable for inoculum standardization and being used as a proxy for disease severity. Historically, spore quantification has relied on manual hemocytometry, which remains the most precise counting process to date, where chambers such as the Malassez slide are used to count a subsample of the inoculum. However, this method applied manually is highly labor-intensive, time-consuming, and can be prone to operator-dependent variability. To overcome these limitations, we introduce MIRA (Microscopy Image Recognition & Analysis), a novel open-source software integrating You Only Look Once (YOLO) deep learning algorithms. Featuring a user-friendly graphical interface, MIRA is adaptable to multiple camera systems and supports advanced object detection models, including YOLOv11 and YOLOv26. ResultsWe demonstrate that MIRA can be used to accurately detect and count spores from several phytopathogenic fungi, automatically measure spore surface area, and to differentiate spores across different genera. In an exhaustive comparative analysis using Pyricularia oryzae spores as an example, MIRA was benchmarked against manual gold-standard counting slides (Malassez and Kova) and indirect spectrophotometric methods (SPARK). The P. oryzae model loaded via MIRA achieved a strong correlation (R = 0.96) with manual gold standards while reducing processing time by over 90% for high-concentration samples (10 spores/mL). Beyond this benchmark, we also successfully tested specific YOLO models designed to recognize macro- and microconidia of Fusarium oxysporum f. sp. cubense, a model for Pseudocercospora fijiensis, and a single multiclass model capable of identifying six different rice pathogenic fungi. We provide comprehensive tutorials for operating the software and training custom detection models for free using Roboflow and Google Colab. MIRA is available both as open-source Python code and as standalone executables for Windows and Linux. ConclusionsMIRA provides a rapid, accurate, and highly reproducible alternative to manual spore counting, effectively removing a major bottleneck in phytopathology workflows. By combining advanced YOLO-based deep learning with an accessible interface and comprehensive training resources, MIRA makes accessible automated image analysis for researchers without programming expertise. Moreover, MIRA drastically improves the efficiency of high-throughput disease phenotyping and can be adapted for a wide range of microscopic quantification tasks across various biological disciplines.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Mejias, J., Adreit, H., Blanc, A., Lubin, N., Jolivet, C., Guyot, V., Brayle, O., Poncelet, N., Fournier, E., Wicker, E. P., Carlier, J., Tharreau, D., Ravel, S.. 2026-08-07. MIRA: an open source and user-friendly software to automate counting and sizing of fungal spores. https://doi.org/10.64898/2026.08.06.743221

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

KEEP EXPLORING

Related preprints

Ancestral polyploidy and non-linear dosage shifts define the photosynthetic transition in the Heliantheae alliance

Whole-genome duplications (WGDs) have played a central role in plant evolutionary innovation, yet their genome-wide influence on complex physiological traits such as carbon-concentrating mechanisms (CCMs) remains poorly resolved. Here, we present high-quality genome assemblies and annotations for 35 species within the Heliantheae alliance (Asteraceae), spanning the complex photosynthetic spectrum from C3 to C4. Ks-based analyses combined with gene tree-species tree reconciliation identified a shared paleopolyploid event (WGD-2) ~30 million years ago. Using phylogenetically informed association mapping with these species, we detected 451 functional MapMan BINs with copy number variation significantly associated with interspecific variation in the CO2 compensation point. Notably, 303 of these BINs contain greater than 10% WGD-2-derived genes, indicating a strong enrichment of duplicated loci within photosynthetically relevant functional modules. Effect-size analysis revealed that the C3-to-C4 transition is governed by threshold-dependent genomic architecture rather than gradual additive change. Substantial expansions in key transcription factor modules, including HD-ZIP, HSF, LOB, and TCP, were associated with strong non-linear physiological shifts, consistent with genomic tipping points. By integrating comparative genomics, physiological trait variation, and evolutionary analysis, this study establishes a mechanistic link between ancient polyploidy and contemporary photosynthetic diversification. These findings provide a framework for understanding the genetic basis of carbon concentrating mechanism evolution and inform future optimization of photosynthetic efficiency in Asteraceae crops such as sunflower.

plant biology↗

Heat-induced increases in xylem vulnerability: Experimental evidence and possible mechanisms

Hotter droughts driven by global warming are increasing tree mortality worldwide. Here, we propose a theoretical framework that explains how dissolved gas affects the stability of bubbles in xylem sap, and shows that in the presence of gas, sudden increases in temperature can accelerate embolism formation. We then provide experimental evidence that heat exposure can change xylem vulnerability to drought. Using data from seven Australian and European tree species, we assessed how elevated temperature (+15 and +20 {degrees}C above ambient) affects both xylem embolism resistance, measured with the Optical Vulnerability Technique, and VPD-corrected drying times. We found evidence for reduced embolism resistance and accelerated dehydration in heat-exposed plants. On average, trees reached the water potential at 50% loss of xylem function at 0.73 MPa less negative water potentials and 7.8 kPa h earlier, though responses were highly species-specific, and credibly different from zero only in the Australian species. Our results are consistent with the proposed framework and suggest that embolism resistance may not be a static trait, which has important repercussions for studies of plant vulnerability to drought. Further studies are necessary to assess the potential effects of heat-induced reductions in embolism resistance on tree mortality during heatwaves.

plant biology↗

Genome-wide latitudinal variation associated with defence and reproductive pathways linked to Norway spruce adaptation

Environmental cues modulate the natural variations in genes that outline local adaptation in plants for optimal survival. Genome-wide analysis using exome capture dataset in Norway spruce (Picea abies L. Kast) in Sweden revealed natural allelic variation in coding regions of genes associated with defence and reproductive pathways that follow a latitudinal cline, despite of the weak population structure with a low genetic differentiation. Steepest clines in the allele frequencies of missense SNPs from coding region (cSNPs) were detected in 60S RIBOSOMAL PROTEIN L18 (RPL18C), a gene involved in plant survival and defence/stress responses and LONG AFTER FAR-RED 3 (LAF3) that mediates light responses. This was closely followed by cline in ZINC 4 FINGER DNA 3'-PHOSPHOESTERASE (ZDP), involved in DNA repair and DNA demethylation pathways. Flowering genes that displayed latitudinal cline in cSNPs included BARELY ANY MERISTEM 1 (BAM1), REDUCED VERNALIZATION RESPONSE 1 (VRN1), FLOWERING CONTROL LOCUS A (FCA) and TERMINAL FLOWER 1 (TFL1) among few others. These variations may contribute to differential functioning of the defence/flowering genes, enabling the tree to thrive at its best under given local environmental conditions. The clines provide evidence towards local adaptation in these Norway spruce populations across Sweden; it coincides with the latitudinal variation in climatic conditions including temperature, day length and light quality, along with existing cline e.g. differential growth and defence response, and bud-burst/bud-set. The knowledge can be applied in forest industry to design future sustainable breeding strategies e.g. assisted migration, in the context of inevitable climate change.

plant biology↗