Selection, constraints, and contingency drive mosaic patterns of evolution during the carangarian adaptive radiation
Selekcija, ograničenja i kontingencija oblikuju mozaične obrasce evolucije tokom karangarijanske adaptivne radijacije
Evans KM, Duarte-Ribeiro E, Chan H, Friedman M, Habegger ML, Ludt W, Clardy T, Betancur-R R.
2026 · Science advances · CC BY-NC
Prevod na srpski je mašinski (Claude) i prikazan je radi čitljivosti; original je merodavan.
Adaptive radiations generate remarkable morphological diversity, yet traits often diversify at different rates and modes, producing mosaic patterns of evolution. Modularity, the semiautonomous organization of traits, can shape how selection and constraint interact during these radiations, but its macroevolutionary consequences remain unclear. We examined skull modularity during the post-Cretaceous radiation of carangarian fishes, a diverse marine clade that diversified along the benthic-pelagic axis after the end-Cretaceous mass extinction. Using three-dimensional morphometric data from 188 species integrated with phylogenetic comparative analyses, we found that the carangarian skull is highly modular and exhibits pronounced mosaic evolution. Oral jaw and “uro-cranium” modules evolved fastest and attained the greatest morphological disparity, whereas hyoid arch–derived modules evolved more slowly and remained comparatively constrained. Repeated transitions into pelagic habitats promoted often convergent oral jaw diversification across independent lineages, while elevated rates and disparity in the uro-cranium were concentrated within benthic flatfishes. These findings show how ecological opportunity and developmental architecture generate mosaic evolution during vertebrate radiations.
INTRODUCTION Mass extinctions play a critical role in shaping global biodiversity. By eliminating large numbers of lineages from ecosystems, these major events simultaneously open ecological space for those that persist creating substantial ecological opportunity for the survivors. In the aftermath, surviving lineages often undergo adaptive radiations, rapidly diversifying to exploit newly available niches ( 1 , 2 ). These radiations are dynamic periods of ecologically driven speciation ( 3 – 5 ) that can generate notable morphological disparity among closely related lineages ( 6 – 8 ). Adaptive radiations are widespread across the tree of life and have produced a stunning array of morphological diversity, ranging from the skull, jaw, and body shapes of cichlids in the African rift lakes ( 9 – 12 ) to the notable bill shapes of Hawaiian honeycreepers ( 13 ) and the diverse body shapes of Caribbean anoles ( 14 – 16 ). Yet morphological diversification during adaptive radiations is often uneven across the phenotype. Divergent selection frequently acts more strongly on a subset of organismal traits that drive ecological divergence, resulting in mosaic patterns of trait evolution where some traits evolve more quickly than others or follow distinct evolutionary trajectories ( 12 , 17 , 18 ). Modularity, the semiautonomous organization of traits within organisms, is thought to play a major role in the process of adaptive radiation by allowing different traits to respond independently to selective pressures ( 18 – 30 ). By partitioning complex phenotypes into semi-independent modules, modularity can enhance evolvability (the ability to generate adaptive phenotypic variation) and promote functional specialization during diversification ( 19 , 31 , 32 ). However, the factors that determine which traits become evolutionarily labile during adaptive radiations and the macroevolutionary consequences of these differences in evolvability remain poorly understood. The teleost fish skull has emerged as a powerful model for the study of modularity and mosaic evolution because of its structural and functional complexity. Often comprising more than 100 individual bones and integrating derivatives of the endoderm, mesoderm, ectoderm, and neural crest, it represents one of the most complex skeletal structures across vertebrates ( 25 , 33 – 37 ). Studies have shown that developmental origin plays an important role in structuring patterns of mosaic evolution within the fish skull, where structures derived from the mandibular arch (e.g., the oral jaws) often exhibit rapid rates of morphological evolution and large amounts of morphological disparity, whereas many of the posterior pharyngeal arches appear to be more constrained ( 17 , 38 – 40 ). Among fishes, Carangaria represents an ancient adaptive radiation of predominantly marine teleosts that rapidly diversified ecomorphologically following the end-Cretaceous mass extinction ∼66 million years ago (Ma) ( 41 ). During this radiation, lineages diversified extensively along the benthic-pelagic axis: Some evolved into high-speed pelagic predators (e.g., swordfishes, mahi-mahis and barracudas), whereas others colonized benthic habitats and evolved notably novel body plans, most notably the evolution of asymmetry in flatfishes ( 41 – 43 ). Previous work has shown that patterns of trait covariation have played a central role in carangarian diversification, with the evolution of asymmetric orbital migration in flatfishes involving coordinated changes across the entire neurocranium ( 42 ). Together, this makes Carangaria a powerful system to study how modularity may facilitate major ecological transitions, ultimately shaping adaptive radiations. Here, we combine high-resolution three-dimensional geometric morphometric analyses with recent phylogenomic hypotheses ( 44 ) and phylogenetic comparative methods to (i) evaluate alternative hypotheses of evolutionary modularity across the carangarian skull and (ii) test for mosaic evolution among modules and across habitats. We predict that divergence along the benthic-pelagic axis differentially reshaped cranial modules, generating pronounced patterns of mosaic evolution in which some modules exhibit accelerated rates of evolution and greater morphological disparity than others. RESULTS AND DISCUSSION Early divergence along the benthic-pelagic axis following the K-Pg mass extinction Carangarians evolved from a benthopelagic ancestor ∼69 Ma (table S1 and Fig. 1A ). Ancestral state reconstruction yielded consistent results across alternative phylogenetic hypotheses (fig. S1). Soon after the Cretaceous-Paleogene (K-Pg) extinction, the first major habitat transition took place within flatfishes (Pleuronectiformes), coinciding with their colonization of benthic habitats. By contrast, transitions into pelagic habitats are less resolved at deeper internal nodes but appear to have evolved repeatedly, first in barracudas (Sphyraenidae) and billfishes (Istiophoriformes) during the Paleocene (66 to 56 Ma). During the Eocene (56 to 33 Ma), additional shifts into pelagic habitats occurred in remoras (Echeneidae), cobia ( Rachycentron ), and in mahi-mahis ( Coryphaena ), alongside repeated reversions from pelagic lineages to the ancestral benthopelagic condition in Carangidae (jacks, trevallies, and allies). Transition rates among habitats were highly asymmetrical ( Fig. 1B ). Most inferred changes involved shifts from the ancestral benthopelagic condition into alternative habitats, followed secondarily by reversions from pelagic ancestors back to benthopelagic habitats. In contrast, although benthic habitat use has evolved independently multiple times—most notably in flatfishes [but see ( 45 )], Nile perches (Latidae), snooks (Centropomidae), and threadfins (Polynemidae)—it appears to represent an evolutionary dead end, with no inferred transitions away from the benthos once it was colonized. This pattern contrasts with findings from other marine clades, including snappers and fusiliers ( 46 ), as well as anglerfishes ( 47 ). Fig. 1. Repeated habitat transitions shaped the evolutionary history of carangarian fishes. Ancestral state reconstruction of habitat across 188 species of carangarian fishes showing posterior probabilities from 1000 character histories mapped onto the ASTRAL phylogeny ( A ). Estimated transition rates ( q ) among benthic, benthopelagic, and pelagic habitats across Carangaria are shown in ( B ). Illustrations by Katie Kirkpatrick. Phylogenetic partitioning dominates skull shape variation across habitats The carangarian skull spans a broad range of shapes ( Fig. 2 and fig. S2), with weak but significant phylogenetic signal across the full shape dataset ( K mult = 0.1904, P = 0.001). This weak overall signal, however, masks stronger phylogenetic structure along the dominant axis of variation. Additional analyses using the determinant (det K ) and trace (trace K ) of the phylogenetic signal matrix ( 48 ) support this interpretation, indicating that phylogenetic signal is concentrated along the leading dimensions of shape space and declines across subsequent principal component (PC) axes (trace K = 167.1, P = 0.348; det K = 3.032 × 10 −89 , P = 0.251). PC1 explains 31.25% of total skull shape variance and primarily reflects differences in orbit position and urohyal depth, the latter being a median ventral hyoid bone that forms a keel in the throat floor and provides lever support for hyoid depression during suction feeding and ventilation ( 49 ). Along this axis, flatfishes occupy almost exclusively negative values, driven by their asymmetrical orbits, whereas nonflatfishes occupy mostly positive values. Within flatfishes, left- and right-eyed lineages are strongly separated, with left-eyed taxa occupying the most extreme PC1 scores, right-eyed species occupying less extreme positions, and species with limited orbital migration (e.g., Psettodes and Reinhardtius ) falling between them. Urohyal shape mirrors this pattern as most flatfishes have a distinctive deep, C-shaped urohyal that is otherwise uncommon among nonflatfish carangarians. PC2 explains 11.33% of total variance and primarily reflects variation in skull width, skull depth, and oral jaw length. Positive PC2 scores correspond to wide, dorsoventrally flattened skulls, represented by the marlinsucker ( Remora osteochir ) and blue marlin ( Makaira nigricans ), whereas negative scores correspond to deep, laterally compressed skulls, represented by mahi-mahi ( Coryphaena hippurus ) and the Peruvian lookdown ( Selene peruviana ). Fig. 2. Skull shape evolution in carangarian fishes follows the benthic-pelagic axis. Phylomorphospace analysis of skull shape across 188 carangarian species, with species colored according to habitat category. Insets depict representative species illustrating the range of cranial morphologies observed across habitats. Illustrations by Katie Kirkpatrick. Axis insets depict relative warps of C. ignobilis to PC extremes. We recover a significant ( P = 0.0001) relationship between skull shape and habitat using a Procrustes analysis of variance (ANOVA; table S2). However, when we examine the effect of common ancestry using a phylogenetic generalized least squares (PGLS) analysis, we recover a nonsignificant relationship ( P = 0.264) (table S3). This pattern is consistent with strong phylogenetic partitioning among habitats, together with a many-to-one mapping scenario in which multiple cranial morphologies are compatible with the same habitat ( 50 ). Habitat also strongly segregates along the phylogenetically structured PC1 axis, where benthic taxa tend to occupy lower PC1 values, whereas benthopelagic and pelagic lineages cluster toward higher values. In particular, the occupation of negative PC1 values by benthic taxa is driven primarily by the distinctive cranial morphology of flatfishes, whereas other independently derived benthic lineages overlap extensively with their close relatives in morphospace. Along the PC2 axis benthopelagic and pelagic taxa are broadly overlapping. Although ancestral-state reconstruction is sensitive to model assumptions, this pattern is consistent with an early diversification of cranial morphology, potentially associated with the early evolution of flatfish cranial asymmetry. A four-module skull architecture underlies mosaic evolution in carangarians The carangarian skull exhibits strong evolutionary modularity, following a four-module division in which (i) the oral jaw elements form a single module, (ii) the neurocranium and urohyal cluster into a “uro-cranium” module, and (iii) the hyomandibula and (iv) the ceratohyal complex constitute separate modules ( Table 1 and Fig. 3A ). This modular configuration is primarily driven by the presence of flatfishes in the dataset. When we removed flatfishes, the best supported hypothesis of modularity shifted to the developmental hypothesis but had weak support because other competing models exhibited similar covariance ratio (CR) values and were all significant (table S4). Each module also exhibits significant phylogenetic signal distributed across multiple dimensions of shape space in contrast to the whole-skull-shape dataset, which largely concentrates phylogenetic signal in the first few PCs (table S5 and fig. S2). Table 1. The carangarian skull exhibits strong evidence for evolutionary modularity. Mean covariance ratio (CR) results for alternative hypotheses of evolutionary modularity in the carangarian skull, averaged across seven phylogenetic hypotheses. Bold values indicate statistically significant support for a given modularity hypothesis. Hypothesis Mean CR SD CR Mean Z SD Z Mean P SD P Functional 1 0.02 0.00 −0.48 0.00 0.28 0.00 Functional 2 1.04 0.00 0.07 0.00 0.49 0.00 Functional 3 1.01 0.00 −1.61 0.00 0.08 0.00 Functional 4 0.74 0.00 −3.68 0.01 0.00 0.00 Development 1.00 0.00 −1.84 0.00 0.04 0.00 Fig. 3. Evolutionary integration and modularity underpin mosaic skull evolution in Carangaria. The strongest supported hypothesis of skull modularity is shown in ( A ). Rates of morphological evolution estimated for individual modules are presented in ( B ), and rates of evolution for individual bones are shown in ( C ). Evolutionary rates are visualized on the skull of C. ignobilis . Network plots depict patterns of evolutionary integration within skeletal elements ( Z rel ) and between skeletal elements ( Z pls ) for benthic ( D ), benthopelagic ( E ), and pelagic ( F ) taxa. The widths of Z pls edges correspond to the strength of integration between skeletal elements. Insets depict representative species from each habitat category. Beyond this modular configuration, the carangarian skull exhibits pronounced patterns of mosaic evolution. The oral jaws exhibit the fastest rates of shape evolution primarily driven by the rapidly evolving articular and maxillary bones, followed by the uro-cranium module that pairs the fast-evolving neurocranium with the slowly evolving urohyal. In contrast, the hyomandibula and ceratohyal modules evolve more slowly ( Fig. 3, B and C ). One potential explanation for this disparity lies in the developmental origins of the hyomandibula and ceratohyal modules. Unlike the oral jaws, which derive from the mandibular arch [first pharyngeal arch (PA1)], the hyomandibula and ceratohyal are both derived from the hyoid arch, a derivative of the second pharyngeal arch (PA2) ( 51 ). Although these arches develop in close spatial proximity, they are patterned by deeply divergent and conserved developmental programs established early in jawed vertebrate evolution ( 52 ). PA1 develops in a largely Hox-free environment and gives rise to the structurally complex oral jaw apparatus, a composite of bone, cartilage, and dental tissues repeatedly modified across vertebrates ( 17 , 31 , 39 , 40 , 53 – 56 ). In contrast, PA2 develops within a hox-positive regulatory environment dominated by hox2a , which suppresses PA1 identity and specifies hyoid arch fate. Furthermore, knockdown experiments targeting this gene and gene cluster have resulted in homeotic mutations that shift the identity from PA2 to PA1 and can even induce tooth development in the second pharyngeal arch ( 55 , 57 – 60 ). This conserved developmental program may have limited the evolvability of PA2 derivatives. By contrast, the urohyal originates as a sesamoid ossification of the sternohyoideus tendon, potentially releasing it from these constraints and allowing its shape to vary as a result of differential muscular loading regimes ( 61 – 64 ). The slower evolution of the hyomandibula and ceratohyal may also reflect functional constraint, given their central roles in ventilation ( 49 , 65 – 68 ). The neurocranium, in turn, is not developmentally derived from any of the pharyngeal arches but, instead, represents a composite structure with multiple embryonic contributions (including mesodermal and neural crest–derived components) ( 69 – 72 ). It is also likely subject to strong selection across several functional axes, from housing and protecting the sensory capsules to providing areas for muscle attachments of several biomechanical systems ( 31 , 40 , 73 , 74 ). Consistent with previous studies of teleost cranial modularity, we recover rapid evolutionary change in the neurocranium in carangarians, suggesting that this module was repeatedly reshaped as lineages diversified across habitats ( 17 , 31 , 39 , 40 , 54 ). We also recovered significant habitat-associated differences in evolutionary integration, with benthic taxa exhibiting significantly stronger integration than benthopelagic or pelagic lineages ( Fig. 3, D to F , and fig. S3). Because flatfishes are known for pronounced integration ( 42 ), we repeated the analyses excluding this group. In the reduced dataset, benthic taxa instead exhibited the lowest integration, differing significantly from the other habitat groups (fig. S4). These results suggest that benthic species may be exploring two different modes of evolutionary integration, one that is highly integrated in flatfishes and another that is less integrated in benthic nonflatfishes. Consistent with this, we also tested for differences in the degree of modularity between habitats and found that benthic habitats were the least modular (fig. S5). In summary, carangarian skull evolution is partitioned into fast-evolving oral jaw and uro-cranial systems, slower hyoid arch–derived modules, and habitat-specific patterns of integration driven largely by flatfish cranial specialization. Early rapid evolutionary rate shifts characterize carangarian skull shape evolution Carangarian skull shape evolution is best described by a variable-rate model of trait evolution where rates vary across the individual branches of the phylogeny, both for the skull as a whole and for each individual module, indicating that evolutionary rates have repeatedly accelerated and slowed over the course of the radiation ( Fig. 4 ). The strongest rate accelerations occur early in the radiation, shortly after the K-Pg boundary and coincide with the initial divergence of benthic and pelagic lineages. These include pronounced rate increases associated with the origin of flatfishes during their transition to benthic habitats, as well as the early evolution of pelagic predators such as billfishes and barracudas. Later rate shifts are more localized and lineage specific, including shifts within Menidae (moonfish) and at the base of Carangidae (jacks and trevallies), with flatfishes maintaining elevated evolutionary rates through time relative to nonflatfishes. Fig. 4. Rapid adaptive radiation in carangarian fishes occurred along the benthic-pelagic axis. BayesTraits analyses of whole-skull shape across 188 species of carangarian fishes reveal heterogeneous rates of cranial evolution, including rapid rate shifts near the Cretaceous-Paleogene (K-Pg) boundary ∼66 million years ago (Ma). Bar plots show superimposed PC1 scores summarizing major axes of skull shape variation. When examined at the level of individual modules, rate heterogeneity is strongly structured by anatomy ( Fig. 5 ). The oral jaw and uro-cranium modules exhibit repeated rate accelerations, whereas the hyomandibula and ceratohyal modules show few rate shifts and consistently lower evolutionary rates. These results indicate that variation in evolutionary tempo during the radiation was concentrated in a restricted subset of cranial systems. Fig. 5. Distinct skull modules exhibit different patterns of ecomorphological diversification. BayesTraits analyses ( A , C , E , and G ) and phylomorphospace analyses ( B , D , F , and H ) illustrate the evolutionary dynamics of the four skull modules identified in Carangaria: the uro-cranium, oral jaws, hyomandibula, and ceratohyal. Species are colored according to habitat category. Insets depict representative morphologies for each module. Habitat-specific diversification is concentrated in distinct skull modules Carangarian modules exhibit clear ecomorphological differentiation, with habitat-associated diversification concentrated in a subset of cranial systems ( Fig. 5 and fig. S6). Like the whole-skull-shape dataset, habitat effects among modules are strongly phylogenetically structured. Among the different modules, we found significant relationships between habitat and module shape using a Procrustes ANOVA; however, after accounting for phylogenetic nonindependence using a Procrustes PGLS, we recover nonsignificant relationships across all modules (tables S3 and S6 to S9). While the specific relationship between skull shape and habitat is highly structured phylogenetically, we do recover habitat-specific differences in morphological disparity across the whole skull and between modules (tables S10 to S14). In the uro-cranium module, benthic species exhibit the highest morphological disparity and the fastest rates of shape evolution, a pattern driven primarily by flatfishes and their highly asymmetric skulls. Here, species rapidly modified this novel module that functionally linked the neurocranium to the urohyal in the hyoid arch. This coupling is especially pronounced in flatfishes where it allows species to ventilate both gill chambers while lying on their sides by shunting water through their specialized urohyal ( 75 ). Consequently, as flatfishes evolved asymmetrical body plans, they were able to maintain the functionality of their gill ventilation system, suggesting that their transition to an asymmetric body plan required highly coordinated changes across the skull ( 42 ). Other independently derived benthic lineages do not converge on the same region of morphospace, suggesting that this aspect of benthic diversification reflects lineage-specific evolutionary trajectories rather than a universal response to benthic transitions. This pattern of high morphological disparity coupled with high evolutionary rate has also been reported in bird beaks that rapidly diversified in the face of strong evolutionary integration with the braincase ( 23 , 76 – 78 ). In contrast to the uro-cranium module, the oral jaw module shows an inverse pattern of ecomorphological diversification, with pelagic species exhibiting the greatest morphological disparity and the fastest evolutionary rates (fig. S6). This pattern is driven by repeated evolution of elongate jaws in remoras, billfishes, and barracudas, which occupy extreme regions of oral jaw morphospace ( Fig. 5 ). Most of the shape variation in the oral jaws was restricted to PC1, which largely captures jaw elongation versus contraction. Previous studies have shown that variation along this axis may represent an evolutionary line of least resistance for most vertebrates as many independent clades exhibit similar patterns of shape variation in the skull and jaws; potentially reflecting the presence of a developmental bias toward the production of phenotypes along the elongated or foreshortened spectrum over other potentially viable phenotypes ( 4 , 74 ). In addition to evolutionary lines of least resistance, the oral jaws of pelagic species may be additionally constrained by the functional demands of pursuing evasive prey over large distances. Pelagic predators typically combine laterally compressed, hydrodynamic bodies that reduce drag with elongate jaws that can open and close rapidly ( 33 , 79 ). Together, developmental biases and performance constraints may canalize pelagic lineages along a narrow and repeatable trajectory of oral-jaw evolution, helping explain the notable convergence among pre– and post–KPG pelagic lineages. The ceratohyal module shows less habitat-associated divergence but does still show significant differences in morphological disparity between benthic and pelagic habitats, with most of this signal being driven by polynemid fishes. The hyomandibula exhibits little evidence of habitat-related differentiation, with extensive overlap in shape space among habitats. Disparity-through-time (DTT) analyses reinforce these patterns by revealing module-specific trajectories of ecological diversification (fig. S7). The oral jaw and uro-cranium modules show rapid early declines in subclade disparity following the K-Pg boundary for pelagic and benthic habitats, respectively. These sharp declines in subclade disparity have typically been linked to adaptive radiations where closely related species rapidly diverge into distinct ecomorphological niches ( 42 , 80 ). It is likely that these modules played a major role in the adaptive radiation that followed end-KPG extinction event that allowed some groups to evolve novel, innovative skull shapes like flatfishes while allowing other groups to refill previously occupied pelagic predatory niches by modifying their oral jaws. By contrast, the hyomandibula and ceratohyal modules exhibit more gradual and uniform declines in disparity across habitats through time, indicating a more constrained role in ecological diversification during the radiation. An important distinction emerging from our analyses is that the relationship between ecology and cranial diversification differs between benthic and pelagic transitions. Multiple independent shifts into pelagic habitats repeatedly involved rapid evolution and increased disparity within the oral jaw module, suggesting that the functional demands of open-water predation may have channeled evolution along similar trajectories. In contrast, benthic transitions appear to have been more historically contingent. The extreme “uro-cranial” diversification associated with flatfishes was not replicated across other independently derived benthic lineages, indicating that benthic ecology alone is insufficient to predict a common cranial outcome. Instead, lineage-specific developmental architectures and preexisting patterns of integration may have shaped the evolutionary responses available to different benthic clades. Together, these results suggest that deterministic and contingent processes can operate simultaneously during adaptive radiations, with modularity potentially mediating when ecological transitions lead to convergent versus lineage-specific outcomes. MATERIALS AND METHODS Phylogeny We used the recently published time-calibrated phylogenomic hypothesis for Carangaria, inferred from 990 exon markers and 389 species spanning all families ( 44 ). In the original study, relationships were estimated using both concatenation-based maximum-likelihood analyses in IQ-TREE and coalescent species-tree analyses in ASTRAL-III, thereby incorporating uncertainty in both topology and branch lengths. This is particularly important in the context of adaptive radiations, where early divergences are often separated by short internodes deep in time, making early relationships difficult to resolve. We estimated divergence times using treePL ( 81 ), calibrating the tree with family-level age constraints and the onset of the Carangaria radiation as inferred from the phylogeny of Harrington, Faircloth, Eytan, Smith, Near, Alfaro, and Friedman ( 43 ). Both phylogenies were pruned to include only the 188 species for which morphological data were available using the drop.tip function in ape ( 82 ). Both pruned trees were used in downstream phylogenetic analyses unless otherwise noted. Specimen selection and micro-CT scanning For our macroevolutionary analyses, we sampled a total of 202 specimens encompassing 188 total species of carangarian fishes. Most specimens were acquired through loans from museum collections (table S15), whereas others were collected in the field by the authors for the purposes of this study. Sampling was limited to adult individuals to reduce the effect of ontogenetic shape changes in our dataset ( 38 , 74 , 83 ). Specimens were subjected to micro–computed tomography (micro-CT) scanning to collect high-resolution three-dimensional skull shape data. Scans were conducted at Rice University and the Natural History Museum of Los Angeles County using a Bruker Skyscan 1273 and at the University of Washington Friday Harbor Labs using a Bruker Skyscan 1173. Larger specimens were scanned at the University of Michigan and the University Texas at Austin. We also supplemented our own micro-CT scan selection with specimens from MorphoSource. To increase phylogenetic sampling, in instances where a genus that was represented on the phylogeny lacked a micro-CT scan of the exact species, we substituted this species with a closely related congener. We ran all analyses with and without substitutions, and our results remained qualitatively the same. Micro-CT scans were imported into Amira ( 84 ) where they were segmented to remove scales and other debris and were then converted into .ply mesh files. These mesh files were subsequently imported into Stratovan Checkpoint where they were digitized with 132 landmarks (48 fixed, 84 sliding) in three dimensions across eight bones and bone complexes: the premaxilla, dentary, maxilla, articular, neurocranium, hyomandibula, ceratohyal, and urohyal (fig. S8 and table S16). These bones were selected because of their functional relevance for feeding and respiration and because they could be reliably identified across all the species in this study ( 85 – 92 ). Ancestral state reconstruction We used stochastic character mapping ( 93 , 94 ) to reconstruct the evolutionary history of habitat transitions in carangarian fishes. We first assigned species in Carangaria into three major habitat categories: benthic (bottom-dwellers), pelagic (open water dwellers), and benthopelagic (species occupying intermediate habitats just above the substrate), following the classification of Ribeiro et al . ( 41 ). For species that were absent from the previous study, we curated habitat categories from FishBase ( 95 ). Stochastic character mapping was performed using the make.simmap function in the R package phytools ( 96 ). The maximum likelihood Q -matrix was estimated from the data, and the prior for the root state was determined using its stationary distribution, conditional on the Q -matrix. We used the fitDiscrete function from the R package geiger ( 97 ) to determine the best-fitting model of character evolution between equal rate, symmetrical, and all-rates-different (ARD) models. To account for phylogenetic uncertainty, we fit different models of discrete trait evolution across the alternative phylogenetic hypotheses. We also used these trees for our stochastic character mapping analysis and estimated the ancestral state at each node using posterior probabilities summarized across 1000 simulations for each of the phylogenies. For the ancestral habitat reconstruction, the lowest AIC values were obtained for the ARD model across all phylogenies. Shape analyses We averaged all shape observations by species, and species averages were used in all downstream analyses. To account for variation in size, position, and differences in the position of articulating bones due to preservation artifacts, we subjected all shape coordinates to a local superimposition, which first performs a generalized Procrustes superimposition on the individual bones and then realigns the bones in the position of the mean specimen and superimposes all the articulating structures together ( 40 , 53 , 56 , 98 – 100 ). Semi-landmarks were slid by minimizing Procrustes distances. To visualize shape differences between species in a phylogenetic context, we paired a principal components analysis with a phylomorphospace approach that projects a phylogeny into a bivariate trait space comprising, in this case, PC axes ( 101 ). We also additionally performed relative warps to PC extremes to visualize specific shape changes across the skull using the representative Caranx ignobilis skull as a starting point. Meshes were warped in Stratovan Checkpoint. All other shape analyses were performed in the R package geomorph ( 102 ), unless otherwise noted. Phylogenetic signal analyses We quantified phylogenetic signal across the whole-skull dataset and within each cranial module using the physignal.eigen function in the R package geomorph ( 48 ). This approach estimates phylogenetic signal in multivariate Procrustes shape data by constructing a phylogenetic signal matrix based on a generalized multivariate extension of Blomberg’s K ( 103 ) and decomposing this matrix into orthogonal axes that represent decreasing levels of phylogenetic signal. In doing so, the method evaluates how phylogenetic signal is distributed throughout the morphospace and determines whether phylogenetic structure is broadly distributed across shape variation or concentrated along a small number of trait dimensions. Concentrated phylogenetic signal indicates that evolutionary history strongly constrains specific combinations of traits while other aspects of morphology are comparatively evolutionarily labile. We quantified phylogenetic signal using three summary statistics: the determinant of the phylogenetic signal matrix (det K ), which reflects the overall volume of phylogenetic signal across morphospace; the trace of the phylogenetic signal matrix (trace K ), which estimates the average phylogenetic signal across trait dimensions; and the multivariate K statistic ( K mult), a generalized multivariate extension of Blomberg’s K ( 104 ). Statistical significance for all metrics was assessed using permutation tests implemented in geomorph. Modularity analyses To quantify the degree of evolutionary modularity across the carangarian skull, we evaluated five hypotheses of modularity that reflect various functional and developmental interactions between bones following the approaches of ( 40 , 54 ) (fig. S9). The “functional 1” hypothesis partitions the skull into two large modules: a prey-capture module, which comprises the oral jaws (premaxilla, maxilla, dentary, and articular); and a second module reflecting cranial elevation and hyoid depression, which comprises the neurocranium, hyomandibula, urohyal, and ceratohyal ( 33 , 49 , 105 ). The “functional 2” hypothesis also defines two modules: a cranial elevation module that only consists of the neurocranium and a buccal expansion module that consists of all the other bones. The “functional 3” hypothesis divides the skull into three modules: a prey-capture module comprising the oral jaws; a cranial elevation module comprising the neurocranium; and a respiration module comprising the hyomandibula, urohyal, and ceratohyal. The “functional 4” hypothesis divides the skull into four modules: a prey capture module consisting of the oral jaws; a gill ventilation module that consists of the hyomandibula; a hyoid depression module that consists of the ceratohyal; and a uro-cranial module that merges the neurocranium and urohyal, reflecting the unique coupling seen in flatfishes that use a highly modified urohyal to shunt water between gill chambers while lying on their sides ( 75 ). The “developmental 1” hypothesis divides the skull into four modules based on developmental origin: a dorsal mandibular arch module that comprises the premaxilla and maxilla, a ventral mandibular arch module that comprises the dentary and angular, a neurocranium module, and a hyoid arch–derivative module ( 55 , 57 , 106 , 107 ). We used the CR to statistically evaluate hypotheses of modularity using the phylo.modualrity function in geomorph ( 108 , 109 ). This metric quantifies covariation within hypothesized modules relative to covariation between modules under a Brownian motion model, and significance is assessed by comparing the observed CR to a null distribution generated by permutation. Significant modularity is determined when the observed CR coefficient is smaller than the distribution of permuted values. We used the compare.CR function in geomorph to identify the hypothesis of modularity with the most statistical support by comparing effect sizes between models ( 108 ). We additionally quantified the strength of internal integration within individual bones using the relative eigenvalue index ( Z rel ), which quantifies the degree of covariation across datasets using a standardized effect size that allows for direct comparison ( 110 ). In addition to quantifying the degree of integration within individual bones, we also quantified the degree of integration between bones using a phylogenetic two-block partial least-squares analysis ( 109 ). Integration and modularity analyses were run with and without flatfishes to assess the relative impact of their highly divergent skull shapes on patterns of evolutionary trait covariation. Once we identified our best supported hypothesis of modularity, we tested for mosaic patterns of trait evolution across our different modules using the compare.evol.rates function in geomorph that estimates the rate of shape evolution within modular shape partitions and compares them to a null distribution to statistically test for differences in evolutionary rate between modules ( 108 ). All modularity analyses were run across the alternative phylogenetic hypotheses, and the rate of modular evolution was averaged across all topologies. In order to compare morphological disparities among habitat groups and across modules, we used the morphol.disp function in geomorph, testing for differences in morphological disparity between different habitat groups across the entire skull shape configuration and then again across the different modular subdivisions . We also conducted DTT analyses to examine temporal changes in subclade shape disparity in carangarians under a Brownian motion framework, using the full shape dataset as well as each modular subdivision ( 111 ). This approach quantifies relative subclade disparity through time by evaluating patterns at every node in the phylogeny. Observed disparity trajectories were then compared to expectations generated from 1000 Brownian motion simulations across the same phylogeny. From these observed and simulated values, we calculated the morphological disparity index (MDI), which measures departures of relative subclade disparity from Brownian motion expectations. Negative MDI values are typically interpreted as evidence of adaptive radiation ( 80 ). All DTT analyses were run in the R package Geiger ( 97 ) . Modeling rates of skull shape evolution To estimate branch-specific rates of shape evolution across carangarian fishes, we used BayesTraits v4 ( 112 , 113 ). This Bayesian approach uses a reversible-jump Markov chain Monte Carlo method to estimate the marginal likelihood of rate shifts in continuous trait data throughout a phylogeny. This technique can identify clade and species-specific rate changes. Given the challenges associated with evolutionary model fitting for high-dimensional data ( 109 ), we reduced the dimensionality by using a principal components analysis and only retaining the PC axes that summarized 85% of the total shape variance (20 axes for the total skull shape dataset, 11 axes for the uro-cranium, 19 axes for the oral jaws, 9 axes for the hyomandibula, and 13 axes for the ceratohyal). The PCs were scaled by a factor of 1000 to address computational issues in BayesTraits with very small numerical values ( 17 , 100 ). We used uniform, noninformative priors and ran four independent chains of 200 million generations each, discarding the initial 60 million generations as burn-in. Sampling occurred every 1.4 million generations after convergence, using a stepping-stone sampler. Convergence was assessed by rerunning the analysis and visually inspecting the trace of the marginal likelihoods using Tracer v1.7.1 ( 114 ). We compared five models of trait evolution: a single-rate Brownian model, which assumes a uniform Brownian motion rate across the phylogeny; a variable-rate Brownian motion model, which allows for rate variability across different branches and internal nodes; a Delta model, which models an early burst process; a single-peak Ornstein-Uhlenbeck (OU) model that models stabilizing selection; and a multipeak OU model based on habitat categorizations. Model comparison was done by calculating Bayes factors from the marginal likelihoods of the five models. The output from BayesTraits was analyzed using utility functions from the packages BTProcessR (v.0.0.1) and BTRTools ( 115 ). The variable rates model had the strongest support out of the five models (fig. S10), so we used the results of the variable-rate analyses to produce a collection of phylogenies in which each branch was scaled according to its Brownian motion rate of evolution. We performed BayesTraits analyses on the whole-skull configuration and all four modular subdivisions. Given the topological stability of the alternative carangarian phylogenies that we used and this study and the computational intensity of these analyses, we only used a single phylogeny for all the BayesTraits analyses. Procrustes ANOVA and PGLS analyses To evaluate the effect of habitat on skull shape and modular subdivisions, we used a Procrustes ANOVA using the procD.lm function in geomorph, which performs an ANOVA optimized for high dimensional data ( 108 , 109 ). To account for phylogenetic nonindependence between species, we performed a PGLS analysis using the procd.pgls function in geomorph ( 108 , 109 , 116 ). PGLS analyses were run across all alternative phylogenies and all modular subdivisions.
