Background

Changes in behavior are thought to play important roles in animal evolution [1,2,3]. How new behaviors evolve and how they are encoded in the genome is little understood. New behaviors can initiate secondary evolutionary shifts in morphology, physiology or ecology (“behavioral drive”) [1,2,3,4,5,6,7,8,9], for example when they bring an organism into contact with new environmental factors. Behavior can also prevent evolutionary changes because plasticity in behavior might enable individuals to adjust for changed environmental conditions [10,11,12]. Other investigations suggest that behavior and morphology are both subject to selection and that their responses to changes in the environment are perhaps independent [13, 14], or that behavior could simultaneously impede and drive evolutionary diversification of different characters [12, 15, 16]. So far, it appears that the effects of behavioral changes on the evolution of morphological traits cannot be generalized and that they require case-specific assessments.

The evolution of left-right asymmetric genitalia in insects is a case where morphology was proposed to have evolved in response to changes in mating behavior [17]. Asymmetric genitalia are observed in many species and phylogenetic studies indicate that they have evolved multiple times independently from symmetric ancestors [18, 19]. While most extant insect species copulate with the male being on top of the female abdomen, the ancestral mating position in insects is inferred to be a configuration with the female on top of the male [18, 20, 21]. The extant male-on-top configuration has likely evolved multiple times in insects [20]⁠. Such changes in mating position probably altered the efficiency of male and female genital coupling, and may have led to the evolution of genital asymmetries to optimize the coupling of genitalia [17]. Furthermore, these changes in position may have been driven by male-male competition, or by sexual conflict between males and females.

The nannoptera species group belongs to the genus Drosophila and consists of four described species that feed and breed on rotten pouches of columnar cacti of the genus Stenocereus and Pachycereus in Northern and Central America [22,23,24]. These species are particularly interesting to study the evolution of genital asymmetry because distinct genital structures were identified to be asymmetric in three out of the four described species of this group. Drosophila acanthoptera males have an asymmetric phallus, D. pachea males have a pair of asymmetric external lobes with the left lobe being approximately 1.5 times longer than the right lobe [25, 26], and in the sister species D. wassermani males have a pair of asymmetric anal plates (cerci) [25]. In contrast, no asymmetries are known in the fourth described species D. nannoptera [27]. The four species separated about 3–6 Ma and lineage-specific changes likely led to the distinct and elaborated asymmetries in each species [28]. Interestingly, D. pachea mates in a right-sided copulation position where the male rests on top of the female abdomen with its antero-posterior midline shifted about 6–8 degrees to the right side of the female midline [26, 29]. This one-sided mating posture is associated with asymmetric coupling of female and male genitalia during copulation, with the male genital arch being rotated about 6 degrees towards the female’s right side. Apart from our previous investigations of the D. pachea copulation position [26, 29], little is known about mating positions in other Drosophila species. In Diptera, several mating positions are known and all involve a symmetric alignment of male and female genitalia. Male and female genitalia are usually inversely positioned relative to each other with the dorsal surface of the aedeagus (phallus) contacting the ventral side of the female reproductive tract [30]. Drosophila melanogaster, D. simulans and D. sechellia were reported to adopt such a symmetric copulation posture, with the male aligned along the female midline [31,32,33]. A one-sided mating position was generated artificially in D. melanogaster by unilateral ablation of a long bristle located on the genital claspers [31]. In any case, no data is currently available regarding mating positions of the closely related species of D. pachea.

The observation of a right-sided mating posture and asymmetric male genitalia in D. pachea led us to wonder whether morphological asymmetry in the nannoptera group species might have evolved in response to the evolution of one-sided mating [17]. We therefore decided to investigate copulation position and aedeagus asymmetry in species closely-related to D. pachea, and to reconstruct their most likely evolutionary history.

Results

The phallus of D. pachea is asymmetric

The shape of the aedeagus/phallus of D. pachea has not been described previously. We examined the aedeagus of two dissected D. pachea males using scanning electron microscopy (SEM) and found that both were strikingly asymmetric (Fig. 1). Aedeagi were strongly bent, dorsally flattened and pointed at the dorsal tip. Their ventral region bore two ventrally pointing asymmetric spurs, one positioned apically, the other sub-apically. The gonopore was positioned dorso-apically on the right side of the aedeagus. The aedeagal parameres broke off during dissection and were not visualized. In order to corroborate the SEM observations, we dissected and examined 10 aedeagi of D. pachea males using light microscopy. Apical and subapical spurs, as well as a right-sided gonopore, were consistently observed in all preparations (n = 10, Additional file 1: Figure S1). Our results indicate that the D. pachea phallus is directionally asymmetric (Fig. 2b).

Fig. 1
figure 1

The aedeagus of male Drosophila pachea is asymmetric. SEM images of a single phallus in lateral-dorsal and dorsal-apical view. Note the asymmetric position of two subapical spurs, located on the ventral side of the aedeagus, and the asymmetric position of the gonopore. The white arrows point to the gonopore. The scale bar is equivalent to 100 μm

Fig. 2
figure 2

Genital and aedeagus shapes in D. pachea and closely related species. External genitalia and aedeagus shapes are compared across closely related species of D. pachea. Aedagus asymmetries are only found in D. acanthoptera and D. pachea. (a) ventral view of a D. acanthoptera male. The black frame indicates the position of male genitalia and the box with a dashed frame (b) shows a magnification with an erected penis. (c, f, i, l, o) Lateral views of male specimens and male genitalia of D. acanthoptera, D. pachea, D. nannoptera, D. machalilla, and D. bromeliae, respectively. (d, g, j, m, p) Male terminalia in lateral and posterior view. (e, h, k, n, q) Aedeagus in lateral and ventral view. The scale bar is 100 μm

Aedagus asymmetry is observed in D. acanthoptera but not in D. nannoptera, D. machalilla and D. bromeliae

We compared aedeagus shapes in several species that are closely related to D. pachea (Fig. 2). As previously described [27], the aedeagus of D. acanthoptera was found to be asymmetrically bent (n = 10). Two asymmetric spurs were found at the ventral apical tip of the aedeagus, with the right spur being consistently longer than the left spur (Fig. 2e, Additional file 1: Figure S2, Additional file 2). However, in contrast to D. pachea, no dorso-apical gonopore was observed on the right side of the apex. Aedeagi of D. nannoptera males (Fig. 2k, Additional file 1: Figure S3, Additional file 2) were found to be symmetric (n = 15). The ventral side of the apex revealed two apical elongations with slightly variable lengths at the left and right side (n = 15, Additional file 1: Figure S3, Additional file 2). The variation in length was not directional and thus considered to reflect random fluctuating asymmetry. The ventral tip of the aedeagus of D. machalilla (atalaia species group) (n = 10) displayed two lateral hooks (Fig. 2n, Additional file 1: Figure S4, Additional file 2), of the same length on both sides. The aedeagus of D. bromeliae showed two lateral symmetric ridges (n = 10) (Fig. 2q, Additional file 1: Figure S5, Additional file 2). In summary, aedeagus asymmetry was only observed in D. pachea and D. acanthoptera, and distinct phallus structures were found to be asymmetric in these species.

D. pachea and D. nannoptera males mate right-sided

The position of the male during copulation has not been described for any of the closely related species of D. pachea. In this study, we assessed copulation postures in D. pachea and nine related species: D. acanthoptera and D. nannoptera (sister species of D. pachea), D. machalilla and D. bromeliae (representatives of close outgroup lineages), D. buzzatii and D. mojavensis (members of the repleta species group), as well as representatives of other Drosophila species groups (D. tripunctata, D. willistoni and D. melanogaster). Phylogenetic relationships between the ten studied species were estimated with a Bayesian phylogeny (Additional file 1: Figure S6) based on a previously published sequence dataset [28], supplemented with publicly available sequence data (this study) for D. tripunctata and D. willistoni (Additional file 3). The obtained phylogeny is congruent with previous findings [28] that D. nannoptera, D. acanthoptera and D. pachea form a monophyletic group with a short internode branch length between the split of the D. nannoptera lineage and the separation of D. acanthoptera and D. pachea. Also, D. machalilla and D. bromeliae form two close outgroup lineages of the nannoptera clade [28, 34, 35]⁠, followed by the repleta group species D. buzzatii and D. mojavensis [28]⁠.

For each species, we introduced a single virgin female and a single virgin male into a circular mating chamber and recorded the couple until copulation ended or for 45 min when no copulation was detectable. We obtained 315 movies, of which 111 were used for assessing courtship duration, 146 for copulation duration and 124 for copulation posture analysis (Additional file 4). Most movies were discarded because no copulation occurred or individuals had damaged wings or legs (all reasons listed in Additional file 4). As previously described [36,37,38], copulation duration varied significantly among species (ANOVA, df1 = 9, df2 = 136, F = 73.38, p < 2e-16) (Table 1). We could reproduce a previously reported trend that copulation duration in nannoptera group species was remarkably long compared to D. mojavensis and D. buzzatii of the repleta group, with copulation duration of 88.49 min ± 35.18 min for D. acanthoptera, 29.58 ± 7.86 min for D. pachea and 11.9 ± 4.2 min for D. nannoptera (mean ± standard deviation (SD)). In comparison, copulation duration of D. buzzatii 1.79 ± 0.65 min and D. mojavensis 2.3 ± 0.35 min (mean ± SD) of the repleta species group was shorter and similar to D. machalilla 2.28 ± 0.53 min and D. bromeliae 0.92 ± 0.28 min (mean ± SD) (Table 1).

Table 1 Courtship and copulation duration

To assess mating posture, we calculated the angle between a line drawn through the female head midline and the female scutellum tip and a second line drawn through the male head midline and the female scutellum tip (Additional file 1: Figure S7a). The angle was set positive when male head lies on the right side of the female and negative when on the left. The camera view relative to the fly couple position within the mating cell may affect the measured angle in each experiment but the sign of the average mating angle taken from different recordings for each species should accurately reflect the one-sidedness of the male mating position. As a consequence, we expected a one-sided copulation position to produce a consistent positive or negative distribution of angle values, while symmetric mating positions should result in an angle distribution around zero.

To compare mating angles between species, it is necessary to examine copulation postures at the same corresponding time point during copulation. At copulation start, the male position on top of the female was found to be greatly variable between couples, even within a single species, so this time point was not considered appropriate for our comparative analysis. Since copulation duration varies greatly between species, finding another comparable time point across species was not trivial. We subdivided copulation into two phases, an initial phase where the male is on top of the female abdomen but consistently moving legs and abdomen, and a second phase when the male maintains an invariant position relative to the female, which can sometimes walk or move its legs (Additional file 1: Figure S6). The “settling time point” is defined as the time point between the first and second phase, when the male adopts an invariant position relative to the female. For our cross-species analysis we chose to assess copulation angle at two time points: (1) right after the male had settled into an initial invariant copulation position (the settling time point) and (2) at 10% of elapsed time between the settling time point and the end of copulation (10% stable copulation time point). These two time points were assumed to represent moments during copulation that are comparable between species. For species with a mean copulation duration > 2.5 min, > 15 min or > 60 min, we also measured the angles every 2.5 min, 5 min or 10 min, respectively. This allowed us to follow mating postures of each species over the course of copulation.

Significant one-sided mating positions were observed in D. pachea and D. nannoptera, both at the settling time point and at the 10% stable copulation time point (Fig. 3a,b, Table 2). No significant one-sided copulation postures were detected in D. acanthoptera and the other seven tested species including D. melanogaster (Fig. 3a,b).

Fig. 3
figure 3

The copulation position of D. nannoptera and D. pachea is asymmetric. Copulation angles of D. pachea couples and of nine related Drosophila species; aca: D. acanthoptera, bro: D. bromeliae, buz: D. buzzatii, mac: D. machalilla, mel: D. melanogaster, moj: D. mojavensis, nan: D. nannoptera, pac: D. pachea, tri: D. tripunctata, wil: D. willistoni. (a,b) Copulation angle at the settling time point (settling, see material and methods) and at the 10% stable copulation time point (10pct), respectively. Stars indicate significant rejection of the null hypothesis: angle = 0 (Table 2, GLM fit angle~species **: p < 0.001, ***: p < 0.0001). Numbers below each boxplot indicate the number of observations. The dashed lines indicate an angle of zero degrees. (c-e) Copulation angles over the course of copulation of D. melanogaster (mel), D. acanthoptera (aca), D. pachea (pac) and D. nannoptera (nan). n indicates the number of observations. Grey lines connect points obtained from the same copulation couple over time. The dashed lines indicate an angle of zero degrees

Table 2 Test for one-sided mating positions. Fit: GLM (angle ~ species), family = “gaussian”, hypothesis: angle = 0, Bonferroni corrected p-values

Over the course of copulation, mating angles continued to range over zero for D. melanogaster and D. acanthoptera (Fig. 3c,d), indicating a relatively steady symmetric copulation position without any left- or right-sidedness. Similar to previous investigations [26, 29], D. pachea revealed right-sided angles that were highest at the beginning of copulation at 0–10 min after settling (Fig. 3e). At later time points, the angles tended to range over zero. In D. nannoptera, mating angles tended to be right-sided throughout copulation (Fig. 3f). In summary, D. pachea and D. nannoptera revealed a right-sided copulation posture whereas all the other tested species displayed a symmetric mating posture.

Male D. nannoptera tilt to the right side of the female abdomen during copulation

To further investigate the right-sided copulation posture in D. nannoptera and better observe the male position relative to the female dorso-ventral midline, we filmed the couples from a frontal perspective (Additional file 1: Figure S8). In particular, we assessed the inclination of the male body relative to the female dorso-ventral axis by measuring the angle P4-P5-P6, with P4 as the medial most dorsal edge of the female head (often visible by the ocelli), P5 being the most ventral medial position of the female head (the female proboscis) and P6 as the medial most dorsal edge of the male head (often visible by the ocelli) (Additional file 1: Figure S8).

D. nannoptera mating positions were on average strikingly right-sided (Additional file 1: Figure S8), with a considerable variation of observed angles, ranging from slightly left- to strongly inclined right-sided (− 8.42° – 57.7°) over the course of copulation. Left-sided angles were only observed during the first two minutes of copulation. On average, the male tended to initially adopt a right-sided copulation posture with an angle of 10.36° ± 6.88° (mean ± SD) (n = 25) between 0 and 1 min after copulation start (Table 3). Over the course of copulation, the angle then increased to 27.16° ± 10.81° (n = 29) between 3 and 4 min after copulation start (Table 3), which was visible by an inclination of the male head towards the female’s right side. This tilt-movement was not observed in D. pachea, where all males remained on top of the female abdomen [29]. We therefore conclude that D. pachea and D. nannoptera adopt distinct copulation postures, even though both of them are right-sided.

Table 3 D. nannoptera frontal mating angles

Discussion

Phallus asymmetries differ between D. pachea and D. acanthoptera

The currently published data suggest that genital asymmetries are rare among Drosophila species. The genus Drosophila encompasses over 1500 described species [39] and only 8 species have been shown without doubt to display an asymmetric phallus: D. marieaehelenae and D. hollisae of the flavopilosa group [40, 41], D. asymmetrica and D. quinarensis of the guarani group [42, 43], D. endobranchia of the canalinea group [44], D. acuminanus and D. freilejoni of the onychophora group [27, 45, 46] and the nannoptera group species D. acanthoptera [27]. Genital asymmetry might be more widespread than what is reported in the literature across Drosophila, as certain species are only described based on a few specimens, and subtle asymmetric characters might have been overlooked and interpreted as fluctuating variation between left and right sides. Here, we compared aedeagus morphology of at least 10 specimens of five different species that belong to the nannoptera species group and closely related species. We did not detect aedeagus asymmetry in the tested species outside of the nannoptera species group and found that within the nannoptera group only D. acanthoptera and D. pachea but not D. nannoptera reveal striking left-right asymmetries (Fig. 4). We did not evaluate aedeagus asymmetry of D. wassermani, as this species is not available for examination and our attempts to catch specimens in the wild were not successful (see materials and methods). Asymmetries differed between D. pachea and D. acanthoptera. Whereas ventral spurs on the D. pachea aedeagus were apart from each other, with one being apical and the other subapical, the aedaegus of D acanthoptera had a pair of apical spurs that differed in length. In addition, the gonopore was visible and right-sided in D. pachea while it was not visible in D. acanthoptera. Our results thus highlight that the asymmetric phallus structures of D. pachea and D. acanthoptera are derived morphologies that have little in common and diversified independently after the split of the two species about 3–6 Ma ago [28]. It is impossible to infer whether the asymmetries observed in both species derived from a pre-existing asymmetric phallus in their ancestor or if asymmetry evolved de novo in both lineages.

Fig. 4
figure 4

Evolution of sexual characters in the nannoptera species group. The cladogram was established based on the phylogeny of this study (Additional file 1: Figure S6), combined with data from Lang et al. (2014) [28]. AS, asymmetric states; S, symmetric states; nd, not determined, sp, spermathecae; rec, female seminal receptacle

The outer genitalia (epandrium) has been reported to be asymmetrical in D. pachea (where the left lobe is longer than the right lobe [25, 26] and in D. wassermani (where the right anal plate is larger than the left one [25]). Our inspection of a few dissected epandria of D. nannoptera, D. acanthoptera and D. machalilla revealed no obvious asymmetry (Fig. 2). However, a quantitative comparison remains to be done to confirm the absence of asymmetry in the epandrium of these species.

Long copulation duration is specific to the nannoptera group species

We observed that nannoptera species copulated considerably longer than any representative species of the close outgroup lineages (Fig. 4). This trend was previously reported by Pitnick and Markow (1991) [36, 37]⁠, where the authors compared copulation duration of nannoptera group species with repleta group and other species. Here we included two additional closely related species, D. machalilla and D. bromeliae, and observed that their copulation durations were relatively short. Our observations therefore indicate that a long copulation duration is specific to the nannoptera group.

Right-sided mating positions differ between D. pachea and D. nannoptera

We assessed copulation postures of D. pachea and a range of related species to track the extent of right-sided mating position in the nannoptera group. Two aspects of copulation behavior made cross-species comparisons difficult. First, copulation duration was extremely diverse and ranged from less than a minute in D. bromeliae to more than two hours in D. acanthoptera. Second, the movements of the male and female during copulation varied between species. In D. melanogaster and D. willistoni, we observed vigorous movements of the male during copulation accompanied by female hindleg kicking. These phases were interrupted by periods without movements. In contrast, males of most other species initially moved upon mounting the female and then settled into an invariant copulation posture relative to the female.

At the two measured time points during the initial stable copulation period (settling time point, 10% stable copulation time point), the angle between the male midline and the female midline was distributed symmetrically around zero, indicating a symmetric mating position in all tested species except D. pachea and D. nannoptera. Our previous data from D. pachea [26, 29] was re-analyzed in this study with a different measurement approach and led to the same conclusion as our earlier reports. In addition, we found that D. nannoptera adopts a right-sided mating position with angle values that were slightly higher than in D. pachea (Fig. 3). Assessment of homology of behaviors is difficult compared to morphological characters, because Owen’s position criterion for homology [47] does not exist for behavioral traits. Observation of similar behaviors does not necessarily mean common descent [6]. Our precise examination of the mating position of D. nannoptera from a frontal perspective revealed that D. nannoptera males strongly tilt to the female’s right side during copulation, a behavior that is not observed in D. pachea [26, 29]⁠. Therefore, mating postures can be regarded as distinct between the two species. Interestingly, a comparable tilting behavior during copulation was observed in experiments with D. pachea males that had surgically modified external genital lobes [29]. Male lobes are considered to be important in grasping the female abdomen beneath the oviscapt valves and to keep D. pachea upright on the female abdomen. A hypothetical scenario is thus that the ancestral mating position in shared ancestor of the two species may have been right-tilted but the evolution of asymmetric external lobes in D. pachea led to a derived right-sided copulation posture, which is upright. Alternatively, right-sided mating position may have evolved independently in the two lineages leading to D. pachea and D. nannoptera. In all scenarios, at least two evolutionary changes in mating position must be considered to account for the distinct, species-specific right-sided mating positions in the nannoptera group.

Asymmetry in mating position and in phallus have evolved in different branches of the nannoptera group phylogeny

Across the nannoptera group, we find no striking correspondence between right-sided mating posture and asymmetric male genitalia. For example, D. acanthoptera has an asymmetric aedeagus but mates in a symmetric overall posture. Conversely, no directional asymmetry is detected in the male (external and internal) genitalia of D. nannoptera, but males adopt a right-sided copulation posture (Fig. 4). Based on our phylogeny, D. nannoptera presents the earliest branching lineage within the nannoptera group. In this sense, right-sided mating postures could have originated earlier during evolution than asymmetric morphologies and may have been lost in D. acanthoptera. However, the internode branch length between the split of the D. nannoptera lineage and the separation of D. acanthoptera and D. pachea is short and statistical support is weak [28]⁠. Thus, phylogenetic relationships within the nannoptera group remain to be resolved and it is more appropriate to regard all nannoptera species as sister species.

So far, we conclude that both right-sided copulation behavior and asymmetric male genitalia evolved within the nannoptera species group and that diversification of both traits have involved lineage-specific evolutionary changes. They may have evolved by modifications of pre-existing right-sided mating behavior and/or asymmetric genital morphologies already present in the ancestor. Alternatively, they can have appeared de novo in each extant lineage.

One-sided mating and asymmetric phallus are correlated with giant sperm and female sperm storage, respectively

Asymmetric genital morphology and right-sided mating behavior may also be associated with other characters that are special to the nannoptera species group. D. pachea and D. nannoptera are among the Drosophila species that produce the longest (giant) sperm [48, 49] (Fig. 4). The association of right-sided mating with giant sperm production actually holds better than with asymmetric male genital morphology because D. acanthoptera has an asymmetric aedeagus but has relatively small sperm [48] and mates in a symmetric overall posture (Fig. 4). Again, a specific one-sided mating posture might be necessary for optimal transfer of giant sperm. Examining mating postures in Drosophila species which harbor even longer sperm (D. bifurca 58 mm, D. kanekoi 24 mm, D. hydei 23 mm, D. eohydei 18 mm) [50, 51] would be interesting to test further the possible association between sperm length and one-sided mating.

The species D. pachea, D. acanthoptera and D. wassermani are also special in the way the female stores sperm after copulation (Fig. 4). They are the only Drosophila species that store sperm exclusively inside the spermathecae but not in the seminal receptacle as most other species [49]. In contrast, D. nannoptera stores sperm exclusively inside the seminal receptacle [49]. Morphological phallus asymmetry is thus observed in those species that reveal exclusive sperm storage in the spermathecae. It would be interesting to collect male specimens of D. wassermani to analyze their phallus shapes to test this trend. In any case, it is hard to generalize from our observations as only three species are concerned.

Evolution of left-right asymmetric genitalia and one-sided mating in the nannoptera group

During D. pachea copulation, the male is on top on the female and oriented towards the female right side [29]. Since the male gonopore is located on the right side of the aedeagus (this study), the opening of the male reproductive tract during copulation is expected not to be aligned with the female opening. In D. nannoptera, male structures are symmetric but the male and female openings are probably also unaligned because of the tilted mating position. One-sided copulatory behavior and asymmetric genital morphology can thus both contribute to asymmetric complexing of male and female structures in an additive or compensatory way. The evolution of mating posture and genital asymmetry might therefore both be driven by selection on the sterical characteristics of the complex of male and female genitalia. Why would asymmetric male-female genitalia complexing evolve? As mentioned above, asymmetric complexing might facilitate the transfer of giant sperm into the female tract. Another possibility would be because of sexual conflict between males and females [52,53,54], as asymmetric alignments of the male and female reproductive structures might overcome internal barriers in the female uterus that otherwise prevent sperm entry. Asymmetric genital complexing could also be a stimulus for the female to preferentially store or use sperm, thereby driving the evolution of mating position and genital asymmetry by cryptic female choice [53, 55, 56]. For example, males of the fly Dryomyza anilis tap the female external genitalia shortly after insemination with a pair of genital claspers, which can be symmetric or asymmetric [57, 58]. Males with asymmetric small claspers have higher fertilization success compared to males with large symmetric ones, suggesting that asymmetric male tapping can bias sperm distribution in the spermathecae [59]. Females of the nannoptera group store sperm exclusively in the spermathecae, except for D. nannoptera females that only use the receptacle [49]. Such rapid evolution of post-copulatory sperm processing is indicative of sexual selection and cryptic female choice. The exact underlying mechanisms are unknown but it is possible that they also contributed to the evolution of asymmetric structures and one-sided copulation behaviors. Future studies of the positioning of the phallus gonopore inside of the female uterus and of sperm transfer during copulation in the various nannoptera group species would be helpful to test the various scenarios.

Conclusion

Phallus asymmetries were identified in D. pachea and D. acanthoptera of the nannoptera species group and distinct structures were observed to be asymmetric in both species. An increased copulation duration was found to be specific to nannoptera group species and was not observed in the closely related outgroup species D. machalilla and D. bromeliae. Right-sided mating positions were detected in D. pachea and D. nannoptera and were found to be distinct between them. Our data does not allow us to conclude whether the evolution of the right-sided copulation position may have promoted the evolution of genital asymmetry, or vice versa. Our results nevertheless indicate that asymmetry in genital morphology and in copulation behavior have evolved through multiple evolutionary steps in the nannoptera group, revealing a complex history of sexual trait changes, maybe in relationship with the evolution of giant sperm and unique sperm storage in the nannoptera group.

Methods

Fly sampling and maintenance

An isofemale stock of Drosophila machalilla was established from a collection of A. A. in December 2015 at San Jose Beach (GPS coordinates: 01°13′46.4″S, 80°49′14.6″W) Ecuador, using a modified version of the fly traps described in ⁠ [60]. Our baits contained rotten pieces of the columnar cactus Armatocereus carwrightianus and yeast solution. The D. machallila stock was raised on standard Drosophila medium (60 g/L brewer’s yeast, 66.6 g/L cornmeal, 8.6 g/L agar, 5 g/L methyl-4-hydroxybenzoate and 2.5% v/v ethanol) and a piece of fresh Opuntia ficus-indica (prickly pear opuntia) or Hylocereus undatus (dragon fruit) in the medium. The isofemale stock was raised for two generations before experiments started and it was maintained for a total of 36 generations.

We also intended to collect D. wassermani in August 2016 in Oaxaca, Mexico. Six localities were sampled based on previous records: Reserva de la Biosfera Tehuacan-Cuicatlan (GPS coordinates 18°11′21.30“ N, 97°14’ 51.7” W), Huajuapan de Leon (17°48′25.6“ N, 97°14’ 56.7” W), San Luis del Rio (16°46′30“ N, 96°10’ 49.9” W), and four sites along the Carretera Internacional 190: kilometer stones Km 73 (16°42′57.2“ N, 96°19’41.9” W), km 89 (16°40′41.3“ N, 96°14’41.7” W), km 102 (16°42′11.3“ N, 96°11’32.4” W) and km 111 (16°39′48.4“ N, 96°07’31.8” W). We used banana traps, cactus baits that contained rotten organ pipe cactus Stenocereus prionosus and mixed food traps that additionally contained banana and yeast. Besides the invasive species Zaprionus indianus and cosmopolitan species D. melanogaster and D. simulans, we identified several species of the repleta group, about 100 individuals of D. nannoptera, three males of D. wassermani and one female of D. acanthoptera. Unfortunately, we were not successful in establishing iso-female strains from D. nannoptera and D. acanthoptera.

All other stocks were retrieved from the San Diego Drosophila Species Stock Center or were provided by Jean David (Additional file 1: Table S1). Flies were maintained at 25 °C, except for D. melanogaster, D. tripunctata and D. willistoni, which were either maintaind at 22 °C or 25 °C (details in Additional file 4). Flies were kept in vials with 10 mL of standard Drosophila food medium (see above) inside incubators with a 12 h light: 12 h dark photo-periodic cycle combined with a 30-min linear illumination change between light (1080 lm) and dark (0 lm). For maintenance of D. pachea, we mixed standard Drosophila food medium in the food vial with 40 μL of 5 mg/mL 7-dehydrocholesterol (dissolved in ethanol) [61].

SEM analysis of the D. pachea aedeagus

Virgin males of at least 14 days after hatching from the pupa were transferred into a 2 mL reaction tube, snap frozen in liquid nitrogen and stored in ethanol at − 20 °C. For dissection, frozen and fixed males were placed in 80% ethanol at room temperature and the aedeagus was dissected out with fine needles. Tissues were dried using an EM CPD300 automated critical point dryer (Leica) and mounted on aluminium stubs with the distal end facing upwards and coated with platinum/palladium (20 nm). Each aedeagus was SEM-imaged with a JSM-7500F field emission scanning electron microscope (Jeol) at 270x magnification.

Analysis of aedeagus asymmetry by light microscopy

The terminal segments of the male abdomen were picked out with fine forceps and boiled for 10 min in two drops of 30% KOH. Genital parts were further dissected on a microscope slide (Thermo Scientific Menzel) in a drop of water using 0.1 mm Minutien Pins (Fine Science Tools) under the stereo-microscope K-500 (VWR). Dissected structures were mounted in pure glycerol on 1.5 mm concave microscope slides (Marienfeld). Images were acquired with a light microscope VHX2000 (Keyence) equipped with a zoom lens VH-Z100UR/W at 350–550 fold magnification. For storage, male genitalia were mounted in DMHF medium on microscope slides (Entomopraxis).

Phylogenetic analysis

We used data of eight species from a multi-locus dataset of Lang et al. (2014) [28]⁠, and added corresponding sequences for D. willistoni and D. tripunctata (Additional file 1: Table S2, Additional file 3, BEAST input file in DRYAD). For D. tripunctata, only mitochondrial data was available at GenBank (https://www.ncbi.nlm.nih.gov/nucleotide/) and missing data was annotated by ‘?’. Phylogenetic analysis was performed in BEAST [62] according to the settings described in Lang et al. (2014) [28]. Markov-Chain Monte-Carlo (MCMC) runs were performed with a chain length of 107 generations and recorded every 1000 generations. MCMC output analysis was carried out using TreeAnnotator [62] and the tree was visualized and edited with FigTree (http://tree.bio.ed.ac.uk/software/figtree/). We chose a strict molecular clock and set priors for most recent common ancestors according to the divergence estimates of Lang et al. (2014) [28] for the splits of D. nannoptera - D. pachea 3.7 ± 1.5 Ma, D. bromeliae - D. pachea 8 ± 3 Ma. The divergence estimate for all analyzed species was set to 40 ± 5 Ma [63].

Copulation recording

Emerged flies (0–14 h) were anesthetized with CO2, separated according to sex and transferred into food vials in groups of either 5 females or 5 males using a Stemi 2000 (Zeiss) stereo microscope and a CO2-pad (Inject+Matic sleeper). Flies were maintained at 22 °C or 25 °C until they reached sexual maturity (Additional file 1: Table S1). Males of D. bromeliae, D. melanogaster, D. pachea and D. nannoptera were isolated into single vials for at least two days before the experiment was performed. For video recording, one male and one female were introduced with a self-made fly aspirator by mouth suction into a circular plastic mating cell with a diameter of 10–12 mm, a depth of 4 mm and a transparent 1-mm Plexiglas cover [26]. For copulation recording of D. acanthoptera, flies were let to initiate copulation in a food vial and were then rapidly transferred to the mating cell.

Movies were recorded in a climate controlled chamber [26] at 22 or 25 ± 0.1 °C and 60% or 85% ± 5% humidity (Additional file 4). Flies were filmed from above using digital microscope cameras 191,251–62 (Conrad), DigiMicro Profi (DNT) or MIRAZOOM MZ902 (OWL). Movies were recorded with the program GUVCVIEW (version 0.9.9) GTK UVC or Cheese (version 3.18.1) (https://wiki.gnome.org/Apps/Cheese) at a resolution of 800 X 600 pixels on a Linux Ubuntu operating system. Movies were recorded until copulation ended or for at least 45 min when no copulation was detectable. After movie recording, flies were dissected or stored in ethanol at − 20 °C.

Multiple species mating position analysis

Each movie name consisted of a three-letter abbreviation for the species filmed, an additional two-digit number that also indicated the species and a two-digit number for each respective experiment. Movies were analyzed with the video editor OpenShot 1.4.3 (Open Shot Studios, Texas, USA). Courtship start, copulation start, the settling time point and the end of copulation were annotated manually by two different persons, except for movies of D. pachea and D. melanogaster, which were annotated only by one person (Additional file 4). Courtship was defined to start when the male displayed at least three consecutive typical courtship behaviors, such as tapping the female, following the female’s abdomen, licking the female oviscapt or the ground beneath the female abdomen, wing rowing (D. melanogaster) or other wing vibrations [64]. Courtship was defined to end with the start of copulation, when a male started to mount the female abdomen. Only cases where the male remained mounted on the female for at least 15 s were counted as copulation starts. Copulation was defined to end when the male had completely descended from the female abdomen with the forelegs detached from the female dorsum and female and male genitalia being separated. As mentioned above, the male moved its legs and abdomen for a certain time period (considered as the settling phase) until adopting an invariant abdomen posture at the settling time point (Additional file 1: Fig. S6, Additional file 4). The remaining copulation period was defined as the stable copulation period (Additional file 1: Figure S6). In fact, this period was often interrupted by periods of vigorous movements in D. melanogaster, D. tripuncata and D. willistoni. In the other species, males remained rather invariant on the female abdomen after the settling time point.

We video-recorded 315 movies, of which 111 were used for assessing courtship duration (Additional file 4). Reasons for discarding 204 movies for courtship duration measurements were: wrong handling of the camera or the software, damaged files: 4; incomplete recording of courtship: 43; fly leg or wing damaged: 27; no copulation after 45 min of experiment start: 129; wing damaged and incomplete recording of courtship: 1. A total of 146 movies were used for the analysis of copulation duration. Reasons for discarding 169 movies for copulation duration measurements were: wrong handling of the camera or the software, damaged files: 4, incomplete recording of copulation: 7, fly leg or wing damaged: 27, no copulation after 45 min of experiment start: 129; multiple reasons: 2 (Additional file 4). From these 146 movies, we had to exclude 22 movies for the assessment of the copulation posture because landmark positions could not be observed. This was mainly due to couples being recorded from the ventral view. As a result, 124 experiments were used for assessment of the copulation posture (Additional file 4). One additional movie was discarded for posture assessment at the 10% stable copulation time point because the female head was not in the camera field of view.

Movie names were replaced by a seven-digit random number (Additional file 5) so that mating postures were quantified in a blind fashion with respect to the species name. Time points for position analysis (Additional file 1: Figure S6, Additional file 4) were calculated with a custom R script and exported values were used as an input for a bash script to extract images from each movie at particular time points with avconv (libav tools, https://www.libav.org).

The angle was measured using three landmarks on the female and male body: the anterior tip of the female head along its mid-line (P1), the distal tip of the female scutellum (P2) and the most posterior medial point of the male head (P3) (Additional file 1: Figure S7a). In cases where images were too dark, positions of P1 and P3 were approximated as the anterior and posterior mid distances between the eyes and the position of the scutellum tip (P2) was approximated by the medial dorsal point at the body constriction observed between the third thoracic and first abdominal segment. Position landmarks were placed manually on each image using imageJ and data analysis was done using R. Briefly, coordinates (Additional file 6) were rotated and scaled, so that all P1 points were superimposed and all P2 points as well (Additional file 1: Fig. S7b-k). The angle P1-P2-P3 (Additional file 1: Figure S7a) was used to measure one-sidedness of mating positions (Fig. 3). Repeatability of landmark positioning was assessed by two independent rounds of coordinate acquisition for all species at one specific time point during copulation, the 10% stable copulation time point (see text) (2 × 124 images). Variation in angle estimates was found to be attributable mostly to individual images and not to replicate measurement (ANOVA, linear model: angle ~ image + replicate, image: df1 = 122, df2 = 123, F = 87.174, p < 2e-16, replicate: df1 = 1, df2 = 244, F = 0.077, p = 0.782).

Hypothesis testing was performed in R to compare mating postures across species (Fig. 3) with the null hypothesis: angle = 0, using the functions glm for generalized linear model fits, and glht to derive estimated contrasts.

Analysis of the D. nannoptera copulation posture

Flies were reared and isolated before copulation as described above. One female and one male were CO2 anesthetized and transferred onto a white plastic support (mating cap) and were caged with a transparent plastic cylindrical 25 mm × 7 mm cap. Once courtship was observed, mating caps were put on a motorized horizontally turning stage (0–30 rpm) (grinding stone 8215, Dremel) in front of a camera MIRAZOOM MZ902 (OWL) and copulation was recorded with the camera being put into an optimized frontal view towards the female head by rotating or turning the mating cap. The transparent cap was optionally removed once copulation had started. The yield of informative experiments with these settings was poor as we performed 167 mating experiments but only 29 experiments were informative for our data analysis (Additional file 7, reasons for discarding the experiments are listed). Images were extracted with avconv (see above) every 15–30 s or when the flies were visible in a frontal view. We measured the inclination of the male body relative to the female dorso-ventral axis by using three landmarks: P4 as the medial most dorsal edge of the female head (often visible by the ocelli), P5 being the most ventral medial position of the female head (the female proboscis) and P6 as the medial most dorsal edge of the male head (often visible by the ocelli) and measuring the angle between the lines drawn through P4-P5 and P5-P6 (Additional file 1: Figure S8, Additional file 8).