Abstract
Uncovering whether convergent adaptations share a genetic basis is consequential for understanding the evolution of phenotypic diversity. This information can help us understand the extent to which shared ancestry or independent evolution shape adaptive phenotypes. In this study, we first ask whether the same genes underlie polymorphic mimicry in Papilio swallowtail butterflies. By comparing signatures of genetic variation between polymorphic and monomorphic species, we then investigate how ancestral variation, hybridization, and independent evolution contributed to wing pattern diversity in this group. We report that a single gene, doublesex (dsx), controls mimicry across multiple taxa, but with species-specific patterns of genetic differentiation and linkage disequilibrium. In contrast to widespread examples of phenotypic evolution driven by introgression, our analyses reveal distinct mimicry alleles. We conclude that mimicry evolution in this group was likely facilitated by ancestral polymorphism resulting from early co-option of dsx as a mimicry locus, and that evolutionary turnover of dsx alleles may underlie the wing pattern diversity of extant polymorphic and monomorphic lineages.
Subject terms: Evolutionary genetics, Mimicry
Polymorphic mimicry in Papilio swallowtail butterflies is thought to have had multiple independent origins. Here, the authors show that the gene doublesex controls mimicry across multiple species, but with distinct alleles that may have originated from an ancestral polymorphism.
Introduction
An array of convergent adaptations are found across animal and plant taxa, arising from the interplay of natural selection, constraint, and historical contingency1. Comparing the genetic basis of convergent traits has been central to uncovering the genomic patterns and evolutionary processes that drive adaptation and phenotypic diversification2. By leveraging natural experiments of convergent adaptation, we are able to assess the extent to which evolution proceeds with shared genetic architecture, genes, and/or mutations. Furthermore, comparing how these evolutionary changes unfold in the genome among multiple taxa can uncover how ancestral variation, hybridization, or independent evolutionary trajectories contribute to adaptive phenotypes3.
Mimicry is a major convergent adaptation, and a significant driver of phenotypic evolution across animals and plants4. Much of our knowledge about the molecular foundations and evolution of mimicry has stemmed from research on wing pattern mimicry in butterflies5–11, a fundamental adaptation known to involve a diverse set of genes and genetic architectures. Perhaps the most extreme version of this adaptation is found in polymorphic mimicry, where discrete mimetic phenotypes co-occur within a species. Polymorphic mimicry has evolved in multiple butterfly lineages9,12,13, providing an opportunity to investigate the genetics and evolutionary origins of this complex adaptation. In Heliconius numata, polymorphic mimicry is controlled by a cluster of wing patterning genes contained within a chromosomal inversion9,14. This mimicry supergene along with other mimicry alleles are the product of frequent introgressive hybridization in the Heliconius clade10,14. In the genus Papilio, where polymorphic mimicry is typically limited to females, several independent molecular origins have been implicated in the evolution of wing pattern mimicry. Classic genetic crossing experiments on various Papilio species showed that either sex-linked or autosomal loci can function as ‘switches’ between female morphs5,6,8, and more recent molecular work has identified and characterized some of these mimicry loci11,15–17. In each of these studies, the mimicry loci of different Papilio species are located in distinct regions of the genome, with seemingly independent functional bases. These single-species analyses have illustrated the diverse molecular underpinnings generating polymorphic wing patterns. However, a comparative analysis of multiple polymorphic and monomorphic lineages is needed to elucidate the relative contributions of historical contingency and contemporary allele sharing to the evolution of mimicry and wing pattern diversity in this group.
Polymorphic mimicry is inferred to have evolved independently in several Papilio lineages12,13, but questions remain about the potential roles of ancestral variation and contemporary allele sharing in shaping the extant diversity of Papilio wing pattern phenotypes. Multiple Papilio species are known to share mimicry supergene architecture5,7,8, in which wing pattern variation is transmitted as a single Mendelian locus. More recently, studies in both P. polytes and P. memnon characterized their mimicry loci as having the same identity, the autosomal gene doublesex (dsx)11,17–19. The dsx mimicry alleles are distinct between P. polytes and P. memnon18,19, but without knowledge of dsx variation among other closely related species it is uncertain whether dsx-mediated mimicry arose de novo or as a product of shared ancestral variation. The extent to which dsx mediates polymorphic mimicry in other Papilio lineages, and how variation at dsx is related between polymorphic and monomorphic lineages are thus open questions that are pivotal to understanding the roles of genetic potentiation, constraint, and shared ancestry in mimicry evolution.
In this study, we test for convergence in the genetic basis of mimicry among four closely related female polymorphic lineages, P. polytes, P. memnon, P. rumanzovia, and P. aegeus. We test whether the evolution of polymorphic mimicry involves changes at the same genomic location, and we find that the same gene, dsx, controls female polymorphic mimicry in all four species. We then analyze closely related monomorphic lineages to infer the historical processes driving mimicry evolution and wing pattern diversity across this group. Specifically, we explore four hypotheses for the evolution of mimicry in this clade: (1) introgression, (2) ancestral polymorphism with incomplete lineage sorting, (3) ancestral polymorphism with allelic turnover, and (4) independent evolution (Fig. 1). In (1), mimicry alleles are transmitted between hybridizing lineages by introgression (Fig. 1a). In (2), polymorphic mimicry evolves ancestrally and the ancestral mimicry alleles are inherited and maintained by multiple lineages through balancing selection (Fig. 1b). In (3), polymorphic mimicry evolves ancestrally, but mimicry alleles are subsequently replaced by their own allelic descendants, or lost by drift, a process known as allelic turnover20–22 (Fig. 1c). In (4), mimicry alleles arise independently in each lineage by repeated co-option of dsx (Fig. 1d). Our results indicate the presence of distinct dsx mimicry alleles among species, ruling out both introgression and incomplete lineage sorting. While we cannot rule out the possibility of independent dsx co-option, we do find evidence consistent with allelic turnover. Independent evolution and allelic turnover are expected to result in distinct alleles among species, but allelic turnover will produce allelic genealogies with elongated branches due to underlying multiallelic balancing selection22,23. Similarly, population genetic signatures associated with balancing selection can be used to differentiate independent evolution from allelic turnover. Together with previous work, our findings suggest that ongoing turnover of dsx alleles from a polymorphic ancestor underlies much of the wing pattern diversity in this group. These findings imply a dynamic trajectory for mimicry evolution, potentially involving many gains and losses of mimicry alleles.
Results
Mimicry loci in P. rumanzovia, P. memnon, P. aegeus
We first identified the mimicry loci of P. rumanzovia, P. memnon, and P. aegeus using genome-wide association studies (GWAS) and principal component analyses (PCA) of single nucleotide polymorphism (SNP) data. We analyzed female specimens representing three P. rumanzovia morphs (simple, blended, white), two P. memnon morphs (band, patch), and two P. aegeus morphs (light, dark).
In P. rumanzovia, a GWAS with the three morphs and 869,047 variants revealed a single peak of association positioned within the dsx gene (Fig. 2a). In additional GWAS comparing pairs of morphs we observed the same peak of variants in the dsx region for the simple/white and blended/white comparisons, but not for the simple/blended (Supplementary Fig. 1). For the simple/blended GWAS, only one highly associated variant remained within the dsx region, and several emerged in the vicinity of dsx (Supplementary Fig. 1C). We next sought to characterize the population substructure associated with dsx mimicry alleles using methods originally developed to identify chromosomal inversions from SNP data24. We compared population structure to local dsx genotypes using principal component analysis (PCA) based on genome-wide SNPs and PCA based on dsx SNPs. The genome-wide PCA based on ~2.5 million SNPs placed most individuals into a single cluster (Fig. 2b). In contrast, the dsx PCA for the same individuals based on 779 dsx -specific SNPs resulted in the white individuals separating from the simple and blended individuals along PC1 (Fig. 2c). Most of the white individuals were found to be heterozygous at dsx, resulting in their intermediate placement along PC1 (Fig. 2c). These results suggest that variation at the dsx locus differentiates the P. rumanzovia white patch morph from the simple and blended morphs, and that the simple and blended morphs may be determined by variation in and around dsx.
The GWAS for P. memnon using approximately 1.8 million variants showed noise in genome-wide association values, but the densest cluster of highly associated variants fell within the dsx region (Fig. 2d). The genome-wide PCA (~2.5 million SNPs) revealed that white band morphs differ from white patch morphs across the genome, possibly due to different geographic origins of our band and patch samples. This causes variants across the genome to appear highly associated with wing pattern phenotype (Fig. 2d), when in reality these variants are unrelated to wing patterning. The PCA for the same set of individuals based on 644 dsx-specific SNPs segregated individuals by wing pattern along PC1 (Fig. 2f). These results point to dsx as the mimicry locus in P. memnon, consistent with other recent works on P. memnon18,19.
We were not able to generate GWAS results for P. aegeus due to low sample size. The PCA for approximately 1.5 million genome-wide SNPs revealed differentiation between light and dark morphs across the genome, as in P. memnon (Fig. 2g), but the PCA with only dsx SNPs (500 SNPs) showed individuals segregating by phenotype along PC1 (Fig. 2h). Like in P. rumanzovia, the light morph individuals were nearly all dsx heterozygotes and fell in the center of PC1 (Fig. 2h). From these results, we concluded that dsx is also associated with polymorphic wing patterning in P. aegeus.
Genetic differentiation and linkage disequilibrium at dsx
We calculated FST between wing pattern morphs within each polymorphic species to analyze patterns of genetic differentiation across the mimicry locus dsx. For each comparison, we applied a 10 kb window size across the genome and removed windows with a low number of variants (bottom 10% by species). We visualized the genetic differentiation between morphs across the dsx region and compared these values to the genome-wide FST distribution. First, we calculated FST between the mimetic and non-mimetic P. polytes female morphs as a positive control for highly divergent, inverted dsx haplotypes11,17. We observed a plateau of elevated FST across the entire dsx region, reflecting the inverted chromosomal structure of dsx in P. polytes (Fig. 3a). Furthermore, the highest FST value for dsx windows was in the 99th percentile of the genome-wide distribution of FST values (Fig. 3b). In subsequent comparisons for P. rumanzovia, P. memnon, and P. aegeus, each species showed elevated FST at dsx relative to the rest of the genome, but we observed species-specific patterns of differentiation within the dsx region. For P. rumanzovia, we calculated FST between the three pairs of morphs (simple/white, blended/white, simple/blended) using the 23 individuals from the PCAs. The results showed high FST for dsx windows in comparisons between simple/white and blended/white, consistent with the GWAS and PCA results, but this region of elevated FST did not include exon one (Fig. 3g, i). The highest FST value for dsx windows in each of the simple/white and blended/white comparisons was also in the 99th percentile of their respective genome-wide FST distributions (Fig. 3h, j). Between the simple and blended morphs, only one dsx window showed elevated FST, driven by the single highly associated SNP we observed in the GWAS (Fig. 3k, Supplementary Fig. 1C). In P. memnon, the entire length of dsx showed elevated FST between the 20 band individuals and 9 patch individuals, resembling the plateau observed across dsx in P. polytes (Fig. 3c). For P. aegeus, the elevated dsx FST was restricted to the window containing exon one and the window containing exon four (Fig. 3e). The highest FST value for dsx in both P. memnon and P. aegeus was in the 99th percentile of their respective genome-wide distributions, consistent with earlier GWAS and PCA (Fig. 3d, f).
We next analyzed patterns of linkage disequilibrium (LD) within dsx and the surrounding region for each species, again using P. polytes as a positive control for highly differentiated mimicry haplotypes. P. polytes showed high LD across the entire length of dsx, consistent with prior analyses and the known inversion spanning the dsx region17 (Fig. 4a). In P. rumanzovia, a subset of the dsx region spanning exons two through six showed elevated LD, reflecting the region of elevated FST described above (Figs. 4b, 3g, i). For P. memnon we observed a region of elevated LD across the length of dsx like in P. polytes, corroborating the high FST plateau across this region (Figs. 4c, 3c). The elevated LD signature for dsx in P. aegeus was localized to a region containing exon one, which was also consistent with the FST results (Figs. 4d, 3e).
De novo genome assembly in P. rumanzovia
We generated de novo genome assemblies for P. rumanzovia to validate our methods and explore structural variation at dsx. We used combined mate-pair and paired-end sequencing datasets to assemble the genomes of one female that we inferred to be homozygous for the simple morph-associated haplotype and one female inferred to be homozygous for the white morph-associated haplotype. The assembled genome sizes for the simple and white morph were 218 and 215 Mb, respectively, which are similar to the 227 Mb P. polytes genome11,17. The scaffold N50 values for the simple and white assemblies were 53 kb and 197 kb, respectively. We identified four scaffolds in the simple morph assembly and three scaffolds in the white morph assembly that contained dsx exons (Supplementary Fig. 2). In the simple morph assembly, two scaffolds provided structural information. First, exons two through four were assembled on a single scaffold, at approximately the same distance and orientation to one another as in P. polytes. Second, exon six and the neighboring ubiquitously expressed transcript (UXT) were assembled together, revealing the collinearity of the simple morph with the non-mimetic P. polytes morph and with the outgroup taxon P. xuthus. With the white morph assembly, we could gather structural information from one scaffold which contained exons one through four arranged at approximately the same distance and orientation as in P. polytes. Our comparisons of the simple and white morph showed a sharp increase in FST and LD between exons one and two, and a drop in these signatures between exons five and six (Figs. 3g, 4b), which could be indicative of a chromosomal inversion in this region. This inversion would have to be in the simple morph, given that exons one through four coassembled onto a single white morph scaffold. Together, these data show that if there exists a dsx inversion in P. rumanzovia, its breakpoints are quite different from those of P. polytes.
We aligned the scaffolds containing dsx exons to further explore sequence differentiation between the P. rumanzovia simple and white morphs (Supplementary Fig. 2). Consistent with the FST analysis (Fig. 3g), we generally observed higher sequence identity surrounding exon one and much lower identity for regions surrounding exons two through six. In contrast to the numerous substitutions between the P. polytes mimetic and non-mimetic across exons one through six, we found that the simple and white P. rumanzovia sequences differed only at exons five and six, and had identical sequences for exons one through four. Exon five, however, is only spliced into the male dsx isoform in P. polytes, and exon six is a non-coding exon11. While we cannot conclude what the functional impacts of these differences are, these results appear to indicate that the switching between female mimicry phenotypes in P. rumanzovia is not a result of dsx protein coding differences, but likely a regulatory phenomenon.
Evolutionary relationships between dsx haplotypes
In order to trace the evolutionary history of dsx-mediated wing pattern polymorphism we characterized the phylogenetic relationships of polymorphic and monomorphic Papilio species using both genome-wide SNPs and phased dsx SNPs. We generated a maximum-likelihood species tree based on ~3.4 million SNPs from the coding sequence of 51 individuals representing 16 monomorphic and 4 polymorphic species (Fig. 5a, Supplementary Data 1). Our topology was largely consistent with published phylogenies13,25,26, but included taxa that had not been sampled in previous phylogenies. We then phased approximately 7000 SNPs from the dsx region and built a maximum-likelihood gene tree for 116 individuals (Supplementary Data 1). The dsx gene tree topology mirrored the species tree topology, with the polymorphic haplotypes clustering by species (Fig. 5b). We observed no clustering of haplotypes between species indicative of dsx allele sharing.
We were surprised to find all mimicry haplotypes clustering by species in the dsx gene tree, with no apparent allele clustering between species. However, ongoing recombination or gene conversion between dsx haplotypes within species could erode signatures of allele sharing due to ancestry or hybridization. Gene conversion occurs when one allelic sequence is copied onto its homolog during DNA repair, resulting in homogenization of alleles over lengths of 100–2000 bp27. We tested for gene conversion between dsx haplotypes within each polymorphic species using GENECONV28 and found two significant tracts of identical sequence (Supplementary Table 1). The first was in P. polytes, and coincided with a region of decreased FST (Supplementary Table 1, Fig. 3a). The second putative gene conversion tract was between the P. rumanzovia simple and white morphs, and also coincided with the low FST and LD signatures observed for that part of the dsx region (Supplementary Table 1, Fig. 3g, Fig. 4b). However, given the extended lengths of these putative tracts compared to typical gene conversion events, these regions appear to reflect areas of recombination between dsx alleles.
While our phylogenetic analysis showed that dsx haplotypes were not shared among species, we could expect to find some trans-species polymorphisms associated with wing patterning across species if dsx haplotypes were inherited from a polymorphic ancestor. We identified SNPs associated with wing patterning in each polymorphic species, and then compared these across all species to assess if any SNPs were shared among taxa. There were some shared SNPs among species, but the number was small (1–19 SNPs), and we observed that only some combinations of species shared associated polymorphisms (5/11 comparisons; Fig. 6a). The number of shared SNPs was higher in more phylogenetic proximate taxa, with P. rumanzovia and P. memnon sharing the most variants (Fig. 6a). As expected, there were virtually no SNPs associated with wing pattern in the respective gene conversion/recombination tracts of P. polytes and P. rumanzovia, and therefore no shared SNPs within these regions. This suggests that any ancestrally shared variants in these regions would have been eroded away by gene conversion and recombination, thus erasing the expected phylogenetic signature of ancestral polymorphism.
To further explore the scenario of ancestral polymorphism, we calculated Tajima’s D for dsx-specific variants and compared these to the genome-wide distribution of Tajima’s D values for each polymorphic lineage. In each species, Tajima’s D was elevated for dsx variants (Fig. 6b). Peak Tajima’s D values for the dsx region were in the 96th percentile for P. polytes, the 87th for P. rumanzovia, the 99th for P. memnon, and the 91st for P. aegeus.
Discussion
Our study reveals a dynamic history of mimicry and wing pattern evolution within Papilio that involves changes at a single autosomal gene, dsx. Although we find the same gene underlying polymorphic mimicry in multiple taxa, our analyses reveal species-specific patterns of genetic variation and linkage disequilibrium between dsx mimicry alleles. In P. polytes the mimetic and non-mimetic dsx haplotypes differ by thousands of substitutions in their coding and non-coding sequence, and an inversion spans the entire dsx gene, possibly affecting neighboring gene function11,17,26. In contrast, P. rumanzovia showed an extended region of genetic differentiation and LD across dsx exons two through six, but only distinguishing the white morph from the simple and blended morphs. Exon one, which codes for most of the Dsx protein and an essential DNA binding domain, is not differentiated between morphs. Furthermore, we found that the differences in dsx sequence were almost exclusively in the non-coding regions of the gene. Together these patterns suggest that variation in dsx regulation controls mimicry in P. rumanzovia, echoing previous work suggesting that dsx coding differences do not contribute to mimicry in P. polytes26. In P. memnon we observed signatures more similar to P. polytes, including sequence differences and high LD between morphs across the entirety of dsx and substitutions in both coding and non-coding sequence. Finally, in P. aegeus we observed differentiation between morphs in coding and non-coding sequence and high LD concentrated around exon one. While we cannot pinpoint the mutations that drive female development into alternative morphs, these results suggest that there is not a shared functional mechanism underlying dsx -mediated mimicry in different Papilio species.
Recombination between dsx alleles is reduced to some degree in each polymorphic species, but reduced recombination appears to be caused by different mechanisms. In contrast to the chromosomal inversion spanning dsx in P. polytes, Iijima et al.19 found no rearrangement between the P. memnon dsx alleles. Instead, they suggest that large indels and repetitive sequences are responsible for suppressing recombination between dsx alleles in P. memnon. Our de novo assembly similarly indicated that the P. polytes inversion breakpoints were not present in P. rumanzovia, although there still exists the possibility that a smaller inversion could be contained within the dsx region. The dsx inversion may thus be a feature specific to the P. polytes lineage.
Convergent dsx-mediated mimicry could arise by different evolutionary processes including introgression, incomplete lineage sorting, allelic turnover, and/or independent evolution (Fig. 1). We found that dsx mimicry haplotypes are unique among taxa, inconsistent with the expected signatures of introgression or incomplete lineage sorting. While the expected signatures of introgression and incomplete lineage sorting involve clear discrepancies between gene and species trees, the scenarios of allelic turnover and independent evolution are more difficult to distinguish from one another. Allelic turnover is another outcome of ancestral polymorphism, but involves a variety of processes that result in distinct ancestral and extant alleles. Takahata20 described this scenario in the context of the major histocompatibility complex, in which polymorphic alleles of different functional classes (analogous to wing pattern haplotypes in our system) are shared among species and maintained by balancing selection, or lost by genetic drift. In an allelic turnover event, an existing allele mutates to a new descendant allele, which then randomly replaces an existing allele. Thus, new alleles are continuously produced, and eventually replace the ancestral alleles. Adding recombination to this model effectively amplifies the effects of allelic turnover, as nucleotides are shuffled among existing alleles29. Allelic turnover and recombination/gene conversion will thus progressively erode trans-species polymorphisms that may have been present in the past.
While aspects of the allelic turnover model are similar to normal molecular divergence, there are some clear distinctions that suggest dsx is likely evolving according to the allelic turnover model in Papilio. For instance, both allelic turnover and normal molecular divergence are expected to result in an allelic genealogy structure that matches the basic coalescent20,22. However, because allelic turnover is the product of multiallelic balancing selection, the timescale of the coalescent is expected to be different, leading to an elongation of the allelic genealogy and long terminal branches in particular22,23. Consistent with these predictions, we found that the structure of the dsx tree largely matched the genome-wide tree but the branch lengths appeared to be longer (Fig. 5). There were also two instances in the dsx tree in which haplotypes from one species were nested within another species (P. ambrax within P. polytes and P. polymnestor within P. memnon, Fig. 5b), suggesting some retention of ancestral variation at younger time scales, as expected under the allelic turnover model. Furthermore, the elevated Tajima’s D statistic in the dsx region of each polymorphic lineage is also consistent with balancing selection. Previous research has also shown this turnover process play out on relatively short timescales. Zhang et al.26 showed that new mimicry alleles arose independently in each of two P. polytes subspecies in the course of approximately 1.7 MY, illustrating the rapid timescale of dsx turnover. They also revealed the loss of dsx polymorphism in P. ambrax and P. phestus, close relatives of P. polytes that fixed the mimetic allele and lost the non-mimetic allele due to drift and selection. These examples illustrate the gain and loss of dsx alleles in the P. polytes species group.
Although we observed phylogenetically distinct dsx haplotypes among species which could have arisen by independent evolution in each lineage, we also identified several trans-species dsx polymorphisms associated with wing patterning which may further indicate that this variation predates the origin of our focal taxa. If these shared polymorphisms are indeed the remnants of an ancestral dsx wing pattern polymorphism, the evidence of ongoing gene conversion and/or recombination between dsx haplotypes helps explain why there remains little shared variation and thus the haplotypes appear to be distinct between species. Among our comparisons, P. memnon and P. rumanzovia shared the most SNPs associated with wing pattern, and are also the two most closely related polymorphic species of the four. Comparisons involving P. memnon/P. rumanzovia, and P. polytes had the second highest number of shared polymorphisms. P. aegeus, the most distant relative of the other three, only shared one associated SNP with P. polytes (and zero with P. memnon or P. rumanzovia). This phylogenetic signal among the trans-specific polymorphism data, in which more closely related species share more wing pattern-associated variants, is consistent with the idea that these SNPs represent ancestral polymorphisms rather than being the product of recurrent mutation. Overall, our results are consistent with the predicted effects of allelic turnover and recombination/gene conversion on ancestral polymorphisms. Our findings thus indicate that the gain and loss of mimicry alleles may be widespread in shaping Papilio wing pattern diversity. Although previously regarded as an evolutionary dead-end12,13,30, mimicry in Papilio butterflies appears to be an ancient adaptation that has fueled the dynamic evolutionary turnover of wing patterning alleles.
Methods
Sample preparation and sequencing
130 adult butterflies were collected from the wild and from butterfly farms (Supplementary Data 1). Approximately 10 mg of thoracic tissue was removed from each individual and genomic DNA was extracted using a chloroform-based protocol. 100 bp paired-end libraries were prepared using the KAPA Hyper Prep Kit. P. rumanzovia libraries were sequenced on an Illumina HiSeq2500 and all others were sequenced on an Illumina HiSeq4000. Raw reads were demultiplexed based on their barcodes (Supplementary Data 1).
Data collection and genotype calling
We chose to use the monomorphic outgroup species P. xuthus as the reference genome for all read-mapping instead of the more closely related P. polytes to avoid biasing our results with a polymorphic reference. We downloaded the P. xuthus v1.0 genome from PapilioBase17 and P. polytes resequencing data from three homozygous mimetic and three homozygous non-mimetic females from NCBI (SRR1118152, SRR1118150, SRR1118145, SRR1112619, SRR1112070, SRR1111718)11. Reads from the 136 total genome resequencing datasets were quality trimmed using SLIDINGWINDOW:4:15 in Trimmomatic31 and remaining reads were mapped to the P. xuthus v1.0 genome using the --very-sensitive-local option in Bowtie232. Mapped reads were then re-ordered, sorted, and deduplicated with Picard (http://picard.sourceforge.net). We called variants using GATK’s33 HaplotypeCaller with options --emitRefConfidence GVCF --heterozygosity 0.01 -stand_call_conf 50.0 and performed joint genotyping using GenotypeGVCFs. For SNPs we filtered out the bottom 10% by quality and with FS > 60.0 and ReadPosRankSum λ−8.0, and for indels we filtered out the bottom 10% by quality and with FS > 200.0 and ReadPosRankSum <−20.0 using GATK’s VariantFiltration.
We became aware of the presence of microsporidian sequences (specifically of Nosema bombycis) in the P. xuthus genome assembly. We analyzed four representative datasets to verify that our results were not impacted by the presence of these sequences (see Supplementary Note 1).
Genome-wide association and principal component analyses
VCF files containing SNP and indel calls were converted to PLINK format using VCFTools34. Phenotypes were assigned using a custom script and files were converted to GEMMA input using PLINK35. We used GEMMA36 to perform association tests between genotypes and wing pattern phenotype using option -miss 0.20. Benjamini-Hochberg false discovery rate (q-value)37 cutoffs of 0.01 and 0.001 were calculated for each GWAS in R38 and manhattan plots were generated using the qqman R package38,39. We used PLINK35 to perform PCA using only SNP calls and option --geno 0.1. PCA plots were generated using the ggplot2 package in R38,40.
FST analysis
We calculated Weir and Cockerham’s FST41 in 10 kb windows across the genome based on SNP calls using VCFTools34 with options --weir-fst-pop and --fst-window-size 10000. We calculated the distribution of the number of variants per window for each pairwise comparison and removed windows in the bottom 10% because these windows are more likely to show artificially extreme FST values. FST line graphs and distributions were plotted with the ggplot2 R package38,40.
Linkage disequilibrium (LD) analysis
VCF files containing SNP calls across dsx and the flanking 100 kb were converted to Haploview format using PLINK35. A random subset of biallelic variants was selected using PLINK’s --thin option to yield ~1000 representative variants per species. We used Haploview42 to calculate pairwise LD between variants with a minimum genotyping rate of 75% and minimum minor allele frequency of 0.001. LD heat maps were exported from Haploview.
De novo genome assembly
We used genomic DNA extracted for paired-end sequencing to generate mate-pair libraries for two P. rumanzovia samples: one homozygous simple morph female and one homozygous white morph female. We size-selected DNA using the BluePippin platform (Sage Science) and constructed 3 kb mate-pair libraries using the Nextera Mate Pair Library Prep Kit (Illumina). We assembled the combined dataset of 100 bp paired-end and 3 kb mate-pair libraries for each individual using Platanus43. With each assembly, we then used BLAST44 and BLAT45 to find scaffolds containing dsx exons, using the P. polytes dsx exons as the queries. Once we had identified the relevant scaffolds we aligned them using MAFFT46 and calculated sequence identity between the aligned regions with sliding 100 bp windows in Geneious47.
Genome-wide and dsx phylogeny estimation
Approximately 3.4 million SNP calls from genome-wide coding sequence for 50 high quality individuals representing 4 polymorphic species and 16 monomorphic species were aligned in Geneious47 and converted to PHYLIP format. We inferred a genome-wide maximum-likelihood tree using the GTRGAMMA model with 100 bootstraps in RAxML48. The RAxML output was uploaded to iTOL49 to create the tree image.
We phased 6730 SNPs from the dsx region for 116 individuals representing 4 polymorphic species and 16 monomorphic species using BEAGLE50. We aligned sequences and converted them to PHYLIP format in Geneious47 and constructed a maximum-likelihood trees with RAxML48 using the GRTGAMMA model and 100 bootstraps. We constructed the tree images by uploading the RAxML outputs to iTOL49.
Gene conversion analysis
We used GENECONV28 software to test for gene conversion between dsx haplotypes. GENECONV searches for tracts of shared sequence bounded by variable sites between alleles. The software then assesses significance using permutation testing and corrects significance values for multiple comparisons and sequence length. We used a phased full dsx region alignment (~100 kb) of all the dsx haplotypes from the polymorphic taxa as input and options -Seqtype=SILENT to minimize false positives51,52.
Trans-species SNP analysis
For each species, SNP calls for the dsx region were extracted and filtered using VCFTools34 option --max-missing 0.75 to include sites were at least 75% of the individuals were genotyped. The filtered SNPs were then manually scored for genotype-wing pattern phenotype associations for each species. Then, R33 was used to identify shared SNPs among species.
Tajima’s D analysis
For each species, we calculated Tajima’s D in 10 kb windows across the genome based on SNP calls using VCFTools34 with option --TajimaD 10000. We calculated the distribution of the number of variants per window for each taxon and removed windows in the bottom 10%. Genome-wide Tajima’s D distributions were plotted with the ggplot2 R package38,40.
Reporting summary
Further information on research design is available in the Nature Research Reporting Summary linked to this article.
Supplementary information
Acknowledgements
The authors thank W. Zhang, E. Westerman, N. VanKuren, S. DuBay, and D. Massardo for assistance and discussion. We thank S. Nallu for discussion and assistance with de novo genome assembly. We are thankful to Tim O’Connor for providing guidance on Fig. 1. We also thank Russell Corbett-Detig for providing information about microsporidian sequences in the P. xuthus genome assembly. We are grateful to the University of Chicago Research Computing Center and Center for Research Informatics for assistance and computational resources. This project was funded by a Pew Biomedical Scholars Fellowship, NSF grant IOS-1452648, and NIH grant GM108626 to M.R.K. D.H.P. was supported by a U.S. Department of Education GAANN award.
Author contributions
D.H.P. and M.R.K. designed the study. D.H.P. collected and analyzed the data. D.H.P. wrote the paper with input from M.R.K.
Data availability
Sequence data generated for this study can be found under NCBI BioProject PRJNA589019, (see Supplementary Data 1 for accession numbers). The Papilio polytes data used in this study can be found under NCBI BioProject PRJNA234541, (SRR1118152, SRR1118150, SRR1118145, SRR1112619, SRR1112070, SRR1111718). The Papilio xuthus reference genome can be found under NCBI BioProject PRJDB2956.
Code availability
All custom codes are available from the authors upon request.
Competing interests
The authors declare no competing interests.
Footnotes
Peer review information Nature Communications thanks the anonymous reviewer(s) for their contribution to the peer review of this work.
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Supplementary information is available for this paper at 10.1038/s41467-019-13859-y.
References
- 1.McGhee, G. R. Convergent evolution: limited forms most beautiful. (MIT Press, 2011).
- 2.Martin A, Orgogozo V. The loci of repeated evolution: a catalog of genetic hotspots of phenotypic variation. Evolution. 2013;67:1235–1250. doi: 10.1111/evo.12081. [DOI] [PubMed] [Google Scholar]
- 3.Stern DL. The genetic causes of convergent evolution. Nat. Rev. Genet. 2013;14:751. doi: 10.1038/nrg3483. [DOI] [PubMed] [Google Scholar]
- 4.Wickler, W. Mimicry in plants and animals. (1968).
- 5.Clarke C, Sheppard P. The genetics of Papilio dardanus, Brown. III. Race antinorii from Abyssinia and race meriones from Madagascar. Genetics. 1960;45:683. doi: 10.1093/genetics/45.6.683. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Clarke, C. & Sheppard, P. The genetics of the mimetic butterfly Papilio glaucus. Ecology43, 159-161 (1962).
- 7.Clarke CA, Sheppard PM, Thornton IW. The genetics of the mimetic butterfly Papilio memnon L. Philos. Trans. R. Soc. Lond. B Biol. Sci. 1968;254:37–89. doi: 10.1098/rstb.1968.0013. [DOI] [PubMed] [Google Scholar]
- 8.Clarke CA, Sheppard PM. The genetics of the mimetic butterfly Papilio polytes L. Philos. Trans. R. Soc. Lond. B Biol. Sci. 1972;263:431–458. doi: 10.1098/rstb.1972.0006. [DOI] [PubMed] [Google Scholar]
- 9.Joron M, et al. A conserved supergene locus controls colour pattern diversity in Heliconius butterflies. PLoS Biol. 2006;4:e303. doi: 10.1371/journal.pbio.0040303. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Consortium, T. H. G. in Nature Vol. 487 94-98 (2012).
- 11.Kunte K, et al. Doublesex is a mimicry supergene. Nature. 2014;507:229–232. doi: 10.1038/nature13112. [DOI] [PubMed] [Google Scholar]
- 12.Kunte K. The diversity and evolution of Batesian mimicry in Papilio swallowtail butterflies. Evolution. 2009;63:2707–2716. doi: 10.1111/j.1558-5646.2009.00752.x. [DOI] [PubMed] [Google Scholar]
- 13.Zakharov EV, Caterino MS, Sperling FA. Molecular phylogeny, historical biogeography, and divergence time estimates for swallowtail butterflies of the genus Papilio (Lepidoptera: Papilionidae) Syst. Biol. 2004;53:193–215. doi: 10.1080/10635150490423403. [DOI] [PubMed] [Google Scholar]
- 14.Jay, P. et al. Supergene evolution triggered by the introgression of a chromosomal inversion. Curr. Biol. https://www.cell.com/current-biology/fulltext/S0960-9822(18)30544-X (2018). [DOI] [PubMed]
- 15.Scriber JM, Hagen RH, Lederhouse RC. Genetics of mimicry in the tiger swallowtail butterflies, Papilio glaucus and P. canadensis (Lepidoptera: Papilionidae) Evolution. 1996;50:222–236. doi: 10.1111/j.1558-5646.1996.tb04487.x. [DOI] [PubMed] [Google Scholar]
- 16.Koch PB, Behnecke B. The molecular basis of melanism and mimicry in a swallowtail butterfly. Curr. Biol. 2000;10:591–594. doi: 10.1016/S0960-9822(00)00494-2. [DOI] [PubMed] [Google Scholar]
- 17.Nishikawa H, et al. A genetic mechanism for female-limited Batesian mimicry in Papilio butterfly. Nat. Genet. 2015;47:405–409. doi: 10.1038/ng.3241. [DOI] [PubMed] [Google Scholar]
- 18.Komata, S., Lin, C.-P., Iijima, T., Fujiwara, H. & Sota, T. Identification of doublesex alleles associated with the female-limited Batesian mimicry polymorphism in Papilio memnon. Sci. Rep. 6, 34782 (2016). [DOI] [PMC free article] [PubMed]
- 19.Iijima T, et al. Parallel evolution of Batesian mimicry supergene in two Papilio butterflies, P. polytes and P. memnon. Sci. Adv. 2018;4:eaao5416. doi: 10.1126/sciadv.aao5416. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Takahata N. A simple genealogical structure of strongly balanced allelic lines and trans-species evolution of polymorphism. Proc. Natl Acad. Sci. USA. 1990;87:2419–2423. doi: 10.1073/pnas.87.7.2419. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Takahata N, Satta Y, Klein J. Polymorphism and balancing selection at major histocompatibility complex loci. Genetics. 1992;130:925–938. doi: 10.1093/genetics/130.4.925. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Hein, J., Schierup, M. & Wiuf, C. Gene genealogies, variation and evolution: a primer in coalescent theory. (Oxford University Press, USA, 2004).
- 23.Uyenoyama MK. Genealogical structure among alleles regulating self-incompatibility in natural populations of flowering plants. Genetics. 1997;147:1389–1400. doi: 10.1093/genetics/147.3.1389. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Ma J, Amos CI. Investigation of inversion polymorphisms in the human genome using principal components analysis. PloS One. 2012;7:e40224. doi: 10.1371/journal.pone.0040224. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Condamine FL, Sperling FAH, Wahlberg N, Rasplus JY, Kergoat GJ. What causes latitudinal gradients in species diversity? Evolutionary processes and ecological constraints on swallowtail biodiversity. Ecol. Lett. 2012;15:267–277. doi: 10.1111/j.1461-0248.2011.01737.x. [DOI] [PubMed] [Google Scholar]
- 26.Zhang W, Westerman E, Nitzany E, Palmer S, Kronforst MR. Tracing the origin and evolution of supergene mimicry in butterflies. Nat. Commun. 2017;8:1269. doi: 10.1038/s41467-017-01370-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Korunes KL, Noor MA. Gene conversion and linkage: effects on genome evolution and speciation. Mol. Ecol. 2017;26:351–364. doi: 10.1111/mec.13736. [DOI] [PubMed] [Google Scholar]
- 28.Sawyer, S. GENECONV: A computer package for the statistical detection of gene conversion. http://www.math.wustl.edu/~sawyer (1999).
- 29.Schierup MH, Mikkelsen AM, Hein J. Recombination, balancing selection and phylogenies in MHC and self-incompatibility genes. Genetics. 2001;159:1833–1844. doi: 10.1093/genetics/159.4.1833. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Savage WK, Mullen SP. A single origin of Batesian mimicry among hybridizing populations of admiral butterflies (Limenitis arthemis) rejects an evolutionary reversion to the ancestral phenotype. P. Roy. Soc. B. Biol. Sci. 2009;276:2557–2565. doi: 10.1098/rspb.2009.0256. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Bolger AM, Lohse M, Usadel B. Trimmomatic: a flexible trimmer for Illumina sequence data. Bioinformatics. 2014;30:2114–2120. doi: 10.1093/bioinformatics/btu170. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Langmead B, Salzberg SL. Fast gapped-read alignment with Bowtie 2. Nat. Methods. 2012;9:357–359. doi: 10.1038/nmeth.1923. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.McKenna A, et al. The Genome Analysis Toolkit: a MapReduce framework for analyzing next-generation DNA sequencing data. Genome Res. 2010;20:1297–1303. doi: 10.1101/gr.107524.110. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Danecek P, et al. The variant call format and VCFtools. Bioinformatics. 2011;27:2156–2158. doi: 10.1093/bioinformatics/btr330. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Purcell S, et al. PLINK: a tool set for whole-genome association and population-based linkage analyses. Am. J. Hum. Genet. 2007;81:559–575. doi: 10.1086/519795. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Zhou X, Stephens M. Genome-wide efficient mixed-model analysis for association studies. Nat. Genet. 2012;44:821–824. doi: 10.1038/ng.2310. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Benjamini, Y. & Hochberg, Y. Controlling the false discovery rate: a practical and powerful approach to multiple testing. J. R. Stat. Soc. B. 57, 289–300 (1995).
- 38.R Core Team. R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. http://www.R-project.org/(2017).
- 39.Turner, D. S. qqman: an R package for visualizing GWAS results using QQ and manhattan plots. J. Open Source Softw.3, 731 (2018)
- 40.Wickham, H. ggplot2: elegant graphics for data analysis. (Springer, 2016).
- 41.Weir BS, Cockerham CC. Estimating F‐statistics for the analysis of population structure. Evolution. 1984;38:1358–1370. doi: 10.1111/j.1558-5646.1984.tb05657.x. [DOI] [PubMed] [Google Scholar]
- 42.Barrett JC, Fry B, Maller J, Daly MJ. Haploview: analysis and visualization of LD and haplotype maps. Bioinformatics. 2004;21:263–265. doi: 10.1093/bioinformatics/bth457. [DOI] [PubMed] [Google Scholar]
- 43.Kajitani R, et al. Efficient de novo assembly of highly heterozygous genomes from whole-genome shotgun short reads. Genome Res. 2014;24:1384–1395. doi: 10.1101/gr.170720.113. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Altschul SF, Gish W, Miller W, Myers EW, Lipman DJ. Basic local alignment search tool. J. Mol. Biol. 1990;215:403–410. doi: 10.1016/S0022-2836(05)80360-2. [DOI] [PubMed] [Google Scholar]
- 45.Kent WJ. BLAT—the BLAST-like alignment tool. Genome Res. 2002;12:656–664. doi: 10.1101/gr.229202. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Katoh K, Misawa K, Kuma KI, Miyata T. MAFFT: a novel method for rapid multiple sequence alignment based on fast Fourier transform. Nucleic Acids Res. 2002;30:3059–3066. doi: 10.1093/nar/gkf436. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Kearse M, et al. Geneious Basic: an integrated and extendable desktop software platform for the organization and analysis of sequence data. Bioinformatics. 2012;28:1647–1649. doi: 10.1093/bioinformatics/bts199. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Stamatakis A. RAxML version 8: a tool for phylogenetic analysis and post-analysis of large phylogenies. Bioinformatics. 2014;30:1312–1313. doi: 10.1093/bioinformatics/btu033. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Letunic I, Bork P. Interactive Tree Of Life (iTOL): an online tool for phylogenetic tree display and annotation. Bioinformatics. 2006;23:127–128. doi: 10.1093/bioinformatics/btl529. [DOI] [PubMed] [Google Scholar]
- 50.Browning SR, Browning BL. Rapid and accurate haplotype phasing and missing-data inference for whole-genome association studies by use of localized haplotype clustering. Am. J. Hum. Genet. 2007;81:1084–1097. doi: 10.1086/521987. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Ezawa K, OOta S, Saitou N. Genome-wide search of gene conversions in duplicated genes of mouse and rat. Mol. Biol. Evol. 2006;23:927–940. doi: 10.1093/molbev/msj093. [DOI] [PubMed] [Google Scholar]
- 52.Ezawa K, Ikeo K, Gojobori T, Saitou N. Evolutionary pattern of gene homogenization between primate-specific paralogs after human and macaque speciation using the 4-2-4 method. Mol. Biol. Evol. 2010;27:2152–2171. doi: 10.1093/molbev/msq109. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Sequence data generated for this study can be found under NCBI BioProject PRJNA589019, (see Supplementary Data 1 for accession numbers). The Papilio polytes data used in this study can be found under NCBI BioProject PRJNA234541, (SRR1118152, SRR1118150, SRR1118145, SRR1112619, SRR1112070, SRR1111718). The Papilio xuthus reference genome can be found under NCBI BioProject PRJDB2956.
All custom codes are available from the authors upon request.