$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
The ommatidia of Drosophila comprise a useful system for studying various biological functions and genetic diseases. The regularity of ommatidia is a good measurement to examine the effect of genetic mutations4. Even though several methods for calculating ommatidial regularity exist, such as manual ranking, these methods can be heavily biased. To overcome this biased approach, semi-automatic tools have been developed1,11.
For accurate eye quantification, fly preparation and setup must be optimized. While we understand each lab is going to have their setup, we are providing the following setup in our lab to give readers an idea on how to prepare flies for image acquisition. Flies are frozen and stored at -80 °C. We used a sample size of 3 because, in our experience, when GMR-GAL4 is combined with the S81L mutation, there is very little variation among the population. However, keep in mind, the sample size should be adjusted to perform null-hypothesis significance testing. To mount the flies for image acquisition, the fly head rests on a very small sheet of paper that acts as a pillow so that the center of the eye is roughly the focal plane (Supplemental Figure S1). Our lab uses a Z-stack microscope and camera (see Table of Materials) as this produces overall clearer images, allowing for the best visualization of the entire eye since the fly eye is dome-shaped. However, the Z-stack function is not a requirement for this protocol as we successfully used this method with an older stereomicroscope without the Z-stack function13. The ring light dial for brightness is turned no more than ¼ of the way up to avoid overexposure. The total thickness of our samples ranges between 300 and 450 microns.
In this study, we showed that the analysis of fly eyes with ilastik and Flynotyper generates unbiased and reliable ommatidia quantification results. We analyzed Drosophila ommatidia patterns using ilastik, a machine-learning-based bioimage analysis tool, to mark ommatidia, and then Flynotyper, a computational method used for measuring ommatidia regularity1,11. We prefer to use a ring light to obtain images for better qualitative evaluation. However, this approach does not allow Flynotyper to produce quantitative results using these images. Therefore, ilastik is implemented to preprocess these images, and these processed images were successfully used with Flynotyper to produce quantitative results. When the images were not preprocessed with ilastik before Flynotyper, overall P-Scores were similar between nondegenerative and degenerative eyes. This highlights the importance of using ilastik first when implementing a ring light for quantitative results.
There are some limitations in our methods. Settings in ilastik can vary greatly and can result in nonsignificant data. For example, we performed another set of analyses using the same images but adjusted the foreground sigma value in ilastik to 2.5 instead of 5. This resulted in a loss of sensitivity in moderately degenerative phenotypes (Supplemental Figure S2 and Supplemental Table S1). Another limitation is the loss of sensitivity in the eyes with too much degeneration. Compared to a 3x_S81L eye, an eye with necrotic patches is qualitatively much more degenerated. However, the average P-Score for 3x_S81L eyes was 60.2, while the average P-score for the eyes with necrotic patches was 60.9. Thus, eyes with too much degeneration, such as necrotic patches, can also result in loss of sensitivity (Supplemental Figure S3).
A critical step of this protocol is the selection of an appropriate standard image, which is used to train ilastik. A non-degenerated standard image with a distinct contrast between the ommatidia and the surrounding pigment cells, such as red or orange eyes, will result in more accurate quantification in Flynotyper. Another critical step is Feature Selection in ilastik where sensitivity, represented as sigma values, are selected to fine-tune the machine learning software (Figure 1D). The selection of too few features can reduce the sensitivity of ilastik, leading to inaccurate marking of the ommatidia. The selection of too many features will increase the length of time and processing power required to generate results, lowering the efficiency of the procedure. Alternatively, if there is noticeable qualitative degeneration of the eye, but analysis results are not statistically significant, increasing the sigma value of the features selected would be a potential fix. However, the feature selections provided in this protocol regularly produce accurate results. Following the critical steps as written will help mitigate the most common issues and troubleshooting in the future.
In summary, this method provides better qualitative images while also yielding unbiased and reliable quantification of the Drosophila eye system. Consequently, this method could enhance the utility of eye degeneration as a powerful tool for modeling degenerative diseases in the future.