Main

Pharyngeal gill arches and their derivatives have key roles in vertebrate evolution1,2,3,4,10. In early vertebrates and fishes, many of these roles relate to gills functioning as the primary site of gas exchange and ion regulation1,2,3,4. However, when and how vertebrate gills acquired these homeostatic functions is unclear.

Gas exchange and ion regulation are at present hypothesized to first recruit gills in stem vertebrates2,3,5. In this classic scenario, vertebrate ancestors used gills to filter-feed and were constrained to a small, worm-like existence by relying on the skin to breathe and to regulate the acid–base ion balance. Shifting these homeostatic functions to the gills relaxed these constraints, and facilitated the evolution of larger, armoured and more-active modes of life.

Support for this point of view is compelling but incomplete. Fossil and developmental studies support a stem vertebrate origin for structures that enhance gas exchange at gills8,11,12,13,14,15,16. However, these structures might simply enhance an already dominant capacity at gills, and there are no equivalent data for ionoregulatory structures. Work in larval teleosts provides some functional support, as gas exchange and ion regulation shift from the skin to the gills with increasing body size, dermal thickness and activity during embryonic development17,18. However, these data are potentially confounded by rapid developmental changes in morphology and behaviour, and/or derived aspects of teleost morphology and life history.

Here we characterize gill and skin function in a vertebrate (lamprey ammocoete; E.tridentatus), a cephalochordate (amphioxus; B.floridae) and a hemichordate (acorn worm; S.kowalevskii) that have small, worm-shaped bodies and the burrowing, filter-feeding traits of vertebrate ancestors2,6,7,9,19. Our results support a vertebrate origin for gas exchange at gills with increasing body size and activity, but an earlier chordate or deuterostome origin for ion regulation at gills. These findings are a functional complement to existing fossil and developmental data with regard to when and how vertebrate gills acquired their primary role in gas exchange, but they question the origins of ion homeostasis in vertebrates.

Gas exchange and ion regulation in ammocoetes

We first sought to test the effects of body size, dermal thickness and activity on the recruitment of gills for gas exchange and ion regulation. Ammocoetes, or at least a prolonged filter-feeding life stage, are likely to be a derived feature of modern lampreys20. However, we chose them as our model system because they closely resemble the presumed morphology and life history of vertebrate ancestors in being small, worm-shaped burrowers with filter-feeding gills21. Even if these traits were acquired secondarily through convergent evolution, they are likely to constrain the function of gills and skin for gas exchange and ion regulation in similar ways, and the absence of these traits in larval teleosts is a major limitation of previous work5. Post-embryonic ammocoetes are also a better test than larval teleosts for how dermal thickness (t) and body surface-area-to-volume ratio (SA:V) affect gill function, as they capture a tenfold drop in the diffusive capacity of the skin (SA t−1g−1) with little change to morphology or behaviour in this slow-growing, years-long life stage21 (Extended Data Fig. 1).

We used a divided chamber to directly measure contributions by skin and gills to different gas and ion fluxes simultaneously in vivo. Measurements were taken at rest (normoxia; 10 °C) and during acute challenges to oxygen supply (hypoxia; 20 °C) and demand (normoxia; 26 °C) to simulate activity and promote maximum gill recruitment. We predicted that gas exchange and ion regulation would shift from the skin to the gills with increasing body size and challenges to oxygen supply and demand.

Gas exchange at gills appears to be driven by increasing body size and activity in post-embryonic ammocoetes (Fig. 1). Oxygen uptake occurred primarily across the skin of our smallest ammocoetes in all conditions, and gill recruitment increased progressively with body size, temperature and hypoxia. Results for ammonia (Fig. 1) and a representative sample of CO2 excretion (Extended Data Fig. 2a) mirror those for oxygen uptake at rest, and were thus not measured during thermal or hypoxic challenges. Total flux rates for gases (Extended Data Fig. 3a,b) are consistent with previous measurements in free-swimming ammocoetes22, which suggests that our experimental preparation did not affect gas exchange in any unexpected way. This includes a close match between post-exercise rates of oxygen uptake and those measured during our acute thermal challenge, supporting this treatment as a proxy for maximum activity. To our knowledge, we are the first to measure CO2 excretion in ammocoetes in water, but the respiratory exchange ratio of around 0.7 is within the expected range.

Fig. 1: Gill contributions to gas exchange and ion regulation in ammocoetes (E. tridentatus).
figure 1

Percentage of total body oxygen uptake (blue; n = 40), ammonia excretion (orange; n = 36) and sodium uptake (pink; n = 18) occurring at the gills in normoxia at 10 °C. Grey and white symbols indicate the percentage of total body oxygen uptake occurring at the gills in thermal (normoxia at 26 °C; n = 26) and hypoxic (4 kPa partial pressure of oxygen (PO2) at 20 °C; n = 22) challenges, respectively. Data are presented as individuals and expressed as a function of body mass (g). Linear regression lines with 95% confidence intervals are fitted to each flux for each treatment. A multiple linear regression analysis of oxygen uptake with ANOVA finds a significant effect of body mass (P < 0.0001) and treatment (P < 0.0001), but no interaction (P = 0.2356, F = 1.471).

Source data

Conversely, ion regulation at the gills appears to be unrelated to body size and activity in post-embryonic ammocoetes (Fig. 1). All ion uptake in ammocoetes occurred at the gills, and there was no evidence for a shift from the skin. This is especially notable because our smallest ammocoetes had a body SA:V, dermal thickness and rate of sodium uptake that were similar to those of newly hatched salmonids, which acquire 80% of sodium at the skin17,23 (Extended Data Figs. 1 and 3c). A representative sample for calcium uptake in our smallest ammocoetes was also entirely at the gills (Extended Data Fig. 2a), and although the relative levels of calcium uptake by skin and by gills in larval teleosts are unknown, our total uptake rates of around 3 nmol g−1 h−1 (Extended Data Fig. 2c) are consistent with rainbow trout acclimated to similar levels of environmental calcium24. The uncoupling of sodium uptake from ammonia excretion differs from observations in freshwater teleosts25. However, the reliance of ammocoetes on the skin for a large share of ammonia excretion is consistent with reports in Petromyzon marinus26. To our knowledge, these are the first direct measurements of ion uptake in lampreys at any life stage.

Pre-vertebrate origins of gill function

The complete absence of ion flux at the skin of even our smallest ammocoetes suggests that the evolutionary origins of ion regulation at vertebrate gills might be unrelated to body size, dermal thickness or activity, and/or that they might precede the origin of vertebrates. However, these results are from a single taxon, and despite resembling vertebrate ancestors in many ways, ammocoetes have specialized and derived traits that may confound our results. Specifically, their freshwater residency and osmoregulatory physiology might increase gill recruitment for ion regulation in a way that deviates from the ancestral condition1.

A pre-vertebrate origin for gas exchange at gills is also possible. Gills were not the primary site of gas exchange in our smallest ammocoetes, but they did contribute to a substantial extent, especially in hypoxia (around 45–50%). Hypoxia is common in the presumed burrowing lifestyle of vertebrate ancestors and could have selected for gas exchange at gills before the origin of vertebrates and their transition to larger, more-active modes of life. However, vertebrate-specific pharyngeal adaptations that enhance gill ventilation, perfusion and diffusion may underlie the observed contributions (muscular pharyngeal pump, pillar cells and so on)8.

To test for pre-vertebrate origins of gas exchange and ion regulation at gills, we next characterized gill function in the hemichordate S.kowalevskii and cephalochordate B.floridae. We inferred a common ancestry for gill function shared between these representatives and ammocoetes. The relatively simple gill bars of S. kowalevskii and B. floridae differ from the more-elaborate gill arches and lamellae of ammocoetes, but comparisons between these gill structures are strengthened by a shared developmental origin from homologous outpockets of pharyngeal endoderm7,19. As with ammocoetes, S.kowalevskii and B.floridae resemble vertebrate ancestors in being small, worm-like burrowers with filter-feeding gills. However, they are marine osmoconformers that lack the vertebrate pharyngeal adaptations that enhance gill ventilation, perfusion and diffusion, thus addressing many of the caveats associated with ammocoetes.

Gas exchange in acorn worms

The acorn worm S.kowalevskii was too fragile for the divided chamber that was used to measure gill recruitment for gas exchange in ammocoetes. We instead used the regenerative capacity of S.kowalevskii27 to separate worms into viable halves with and without gills for respirometry. We predicted that if S.kowalevskii gills were a primary site of gas exchange, then whole worms and anterior worm halves with gills would have a greater capacity for gas exchange than posterior worm halves without gills. As with ammocoetes, measurements were also made during acute thermal and hypoxic challenges to ensure maximum recruitment of gills. However, only oxygen uptake and ammonia excretion are reported, as we lack the resolution to measure CO2 excretion in seawater.

Our results indicate that the gills of S.kowalevskii are not a primary site of gas exchange. Worm halves without gills had rates of oxygen uptake and ammonia excretion that were at least as high as whole worms and worm halves with gills in all treatments (Fig. 2). Rates are similar to those of other aquatic ectotherms22, and temperature effects (ratio between rates over a span of 10 °C (Q10)) lower than 2 for oxygen uptake and higher than 3 for ammonia excretion support 20 °C as a suitable thermal challenge near the upper limit of our winter-acclimated worms28.

Fig. 2: Gas exchange in whole and halved acorn worms (S. kowalevskii).
figure 2

a,b, Oxygen uptake (a) and ammonia excretion (b) in whole worms (black), posterior halves (white) and anterior halves (grey) in normoxia at 10 °C and 20 °C and in hypoxia at 20 °C. Posterior halves lack the pharynx and gills. Data are presented as mean ± s.d. with individuals superimposed (n = 8 for all groups, except n = 6 for ammonia excretion at 10 °C). Letters indicate significant differences within treatments (one-way ANOVA with Tukey’s post-hoc test; P < 0.05). Ammonia excretion not measured in hypoxia (see Methods). Exact P-values: P = 0.8256 (a, 10 °C), P = 0.8732 (a, 20 °C), P = 0.0253 (a, hypoxia), P = 0.6115 (b, 10 °C) and P = 0.0826 (b, 20 °C).

Source data

Notably, posterior worm halves without gills had slightly higher rates of oxygen uptake in hypoxia than did whole worms and anterior halves with gills (Fig. 2a). The reasons for this are unknown, but worm halves without gills might simply have a shorter diffusion distance, as the posterior body wall is generally thinner29. Alternatively, whole worms and anterior halves with gills might reduce their oxygen demand in hypoxia relative to posterior halves without gills. Many organisms suppress their activity and metabolic rate in hypoxia30, which requires sensory and processing capacities that posterior worm halves may lack. Sensory perception and processing in hemichordates are largely unstudied, but concentrated cell bodies of neurons in the proboscis and collar of anterior worm halves are speculated to have such a role31. Regardless of why oxygen uptake is higher in halves without gills in hypoxia, the results still indicate that gills are not a primary site for gas exchange.

We were unable to measure gill recruitment for gas exchange in the cephalochordate B.floridae. The morphology of this organism precludes the methods that were used to isolate gill function in ammocoetes and acorn worms. However, morphometric work by others estimates that cephalochordate gills have less than 5% of the total body diffusive capacity32. Diffusive capacity is an excellent predictor of the contributions of gills and skin to gas exchange at rest in larval fishes, coming within 2% of direct measurements made in divided chambers23,33. Functional data are preferred to account for the effects of convection during challenges to oxygen supply and demand, but cephalochordate gills are still unlikely to be a primary site of gas exchange with such a small diffusive potential—especially without the vertebrate pharyngeal adaptations that enhance gill perfusion and ventilation. For example, ammocoetes challenged with temperature and hypoxia only increase the contributions of gills to gas exchange by approximately twofold from rest, despite a closed circulatory system and robust, muscular ventilation (Fig. 1). Thus, even if cephalochordate gills had vertebrate-like convection, contributions to gas exchange would probably still be less than 10%.

Ion regulation in acorn worms and amphioxus

The high ion content of seawater hindered our use of radioisotopes to directly measure ion flux at the gills and skin of amphioxus and acorn worms as we did for ammocoetes. We instead measured common markers for specialized cells called ionocytes that drive trans-epithelial ion regulation in vertebrates25. Markers include (1) activity or expression of key ion transporters such as Na+,K+-ATPase (NKA) and V-type H+-ATPase (VHA), which power most ion-transport pathways in ionocytes25; (2) expression of forkhead box protein I (foxI), which drives ionocyte specification and differentiation in vertebrates34,35,36; and (3) colocalization of foxI with key ion transporters in discrete epithelial cells.

The gills of B.floridae showed a strong signal for vertebrate-like ionocytes across all markers. The activities of NKA and VHA in the gills were tenfold higher than those in the skin (Fig. 3a), matching the pattern in ammocoetes (Extended Data Fig. 4), and consistent with levels in other vertebrate gills37,38. Expression of a putative sodium–proton exchanger (NHE), carbonic anhydrase and foxI was also four-, four- and tenfold higher in the gills than in the skin, respectively (Fig. 3b and Extended Data Fig. 5). But, perhaps most compelling, the expression of foxI and NKA was restricted to a discrete epithelial domain in each pharyngeal gill bar (Fig. 4a–f, outlined section), colocalizing as observed in the NKA-rich ionocytes of zebrafish34. Furthermore, these foxI+NKA+ cells were also immunopositive for a Na-K-Cl cotransporter (NKCC; Fig. 4d–f), which is another hallmark of gill ionocytes in marine teleosts and lampreys25.

Fig. 3: Ionocyte marker activity and expression in amphioxus (B. floridae) and acorn worms (S. kowalevskii).
figure 3

ad, ATPase activity (a,c) and gene expression (b,d) for ionocyte markers in amphioxus (a,b) and acorn worms (c,d). White and grey symbols represent skin and gills, respectively. Gene expression relative to geometric mean of EF1A and 18S. Data are presented as mean ± s.d. with individuals superimposed (n = 10). Asterisks indicate significant differences between skin and gills for a single marker with two-tailed Student’s t-test. In all figures, *P ≤ 0.05, **P ≤ 0.01, ***P ≤ 0.001 and ****P ≤ 0.0001. Exact P-values: P < 0.0001 (a, NKA and VHA), P = 0.3228 (b, AE), P = 0.0003 (b, NHE), P = 0.0412 (b, CA), P < 0.0001 (b, foxI), P = 0.0009 (c, NKA), P = 0.3646 (c, VHA), P = 0.7728 (d, AE), P = 0.1655 (d, NHE), P = 0.3281 (d, CA) and P < 0.0001 (d, foxI). AE, anion exchanger; CA, carbonic anhydrase.

Source data

Fig. 4: Putative ionocytes in the pharyngeal gill bars of amphioxus (B. floridae) and acorn worms (S. kowalevskii).
figure 4

ai, Masson’s trichrome staining (a,g), mRNA in situ hybridization by chain reaction for foxI (b,c,h,i), and immunostaining for NKA and NKCC (df) in the pharyngeal gill bars of amphioxus (af) and acorn worms (gi). Putative ionocytes are in outlined sections. The dashed box in g is the area shown in h,i. Experiments were repeated independently three times with similar results. Scale bars, 50 μm.

These findings are consistent with immunohistochemical evidence for the presence of ion transporters in the gills of B.floridae39, and with work in Branchiostoma japonicum, in which NKA expression is sevenfold higher in the gills than in the skin40. However, we believe this to be the first discovery in cephalochordates of a distinct ionocyte cell type on the basis of specific co-expression of multiple molecular markers including foxI.

The gills of S.kowalevskii are also implicated in ion regulation, but the results are less clear. As in amphioxus, foxI expression was eightfold higher in the gills than in the skin (Fig. 3d), and in situ hybridization revealed that this expression was similarly restricted to a discrete epithelial domain on each pharyngeal gill bar (Fig. 4g–i). However, we were unable to detect specific expression of NKA, VHA or NKCC by immunofluorescence. This might be an issue with antibody reactivity, but could also be linked to broadly distributed ion-transport machinery. Indeed, ATPase activities and gene expression for most other markers in S.kowalevskii were similar across the gills, skin and other tissues (Extended Data Figs. 4a,d and 6 and Extended Data Tables 1 and 2).

In light of these results, S.kowalevskii gills might have the majority of ionocytes for epithelial ion transport as indicated by foxI expression, but all tissues might have a high capacity for intracellular ion regulation. A high capacity for intracellular pH regulation by tissues without ionocytes is common among CO2-tolerant fishes, in which extracellular pH regulation by ionocytes at gills often becomes limited or insufficient for the protection of other tissues during severe acid–base disturbances41. Indeed, acorn worms may require such a capacity in their burrows during intertidal fluctuations to CO2 and salinity30, or during regeneration when tissue fragments must maintain ion homeostasis independently. Alternatively, the foxI+ cells in S.kowalevskii might be latent homologues42 with a shared specification pathway that was subsequently coopted for, or gave rise to, ionocytes in chordates.

Origins of gill function

Together, our results support a vertebrate origin for gas exchange at gills with increasing body size and activity, but an earlier chordate or deuterostome origin for ion regulation (Extended Data Fig. 7). Of our study taxa, only ammocoete gills are recruited for gas exchange, and only secondarily with increasing body size or challenges to oxygen supply and demand. By contrast, the gills of all three taxa are implicated in ion regulation, with especially strong support in ammocoetes and amphioxus.

For gas exchange, this work is a key functional complement to fossil and developmental studies that support the role of gill recruitment in the stem vertebrate transition to larger, armoured and more-active modes of life8,11,13,14,15,16. Furthermore, it suggests that hypoxia associated with the burrowing behaviour of vertebrate ancestors is another potentially important selective pressure driving this recruitment. However, this work challenges our understanding of when and how gills acquired their primary role in ion regulation. Our findings suggest that ion regulation did not shift from the skin to the gills with gas exchange in stem vertebrates, as previously hypothesized5, and that it is unrelated to body size, dermal thickness and activity. Instead, gills are likely to have acquired a function in ion regulation before the origin of vertebrates, either in stem chordates or near the inception of pharyngeal pores in stem deuterostomes.

A pre-vertebrate origin for ion regulation at gills also questions our understanding of its ancestral function. Maintaining the extracellular acid–base balance is widely accepted as the ancestral function of ion regulation at vertebrate gills1, and this might be so for deuterostomes in general as well. However, there is little support for robust extracellular acid–base regulation in non-vertebrate deuterostomes43, and they may lack the required circulatory adaptations29. Early deuterostomes might have instead relied on intracellular regulation by tissues for ion homeostasis, and we find support for this capacity in S.kowalevskii.

Alternatively, ion regulation at early deuterostome gills might have been linked to feeding. As in our study species, pharyngeal gill bars of early deuterostomes are believed to be filter-feeding structures with a mucociliary epithelium that captured food from the inhalant water flow2,3,7,8,9,44. Filter-feeding may rely on epithelial ion regulation at gills to drive active nutrient uptake, as seen in crustaceans45, and/or to ensure proper secretion of mucins for particle entrapment and transport46. A function in mucin secretion is of particular note because the ionocytes that have this role in the mucociliary epithelia of mammalian lungs and amphibian skin are likely to be homologous with those of teleost fish gills that maintain the extracellular ion balance. Although embryonic origins have yet to be determined in all cases, ionocyte homology across these vertebrate taxa is supported by foxI orthologues controlling cell specification and differentiation34,35,36. foxI also serves as an important marker for ionocytes in adult tissue, as its expression persists in mature cells. The foxI+ cells that we observe in adult amphioxus and acorn worm gills are thus consistent with the presence of homologous, vertebrate-like ionocytes in these tissues too—especially in amphioxus, in which they co-express other ionocyte markers such as NKA and NKCC. Furthermore, the areas that correspond to these foxI+ domains have previously been described as distinct regions of non-ciliated secretory cells with mucin vesicles47,48 that, in amphioxus, form the primary source of mucin in the pharyngeal gill bars49 (Extended Data Fig. 8).

We propose that ancestral ionocytes served to facilitate mucin secretion for filter-feeding near the origin of pharyngeal gill pores in stem deuterostomes. These cells and their machinery perhaps then served as an exaptation to maintain the extracellular ion and acid–base balance with the evolution of an improved circulatory system in vertebrates. Regulation of extracellular ion homeostasis by the skin of larval teleosts might therefore be a derived embryonic trait that is expressed before the completion of gill development, rather than a relic of the ancestral condition as previously hypothesized5.

Methods

Animal collection and husbandry

Ammocoetes (E.tridentatus) were collected by dip-net from the Salmon River near Langley, British Columbia (49° 07' 39.2" N, 122° 34' 55.5" W) and transported to the University of British Columbia’s Vancouver campus for experimentation between 2014 and 2018. Animals were held at 10 °C on a 12-h–12-h photoperiod in recirculating aquaria (96 l) filled with dechlorinated Vancouver city tap water (Na+, 0.06 mM; Cl, 0.05 mM; Ca2+, 0.03 mM; Mg2+, 0.007 mM; K+, 0.004 mM; alkalinity in mg CaCO3 l−1, 3.3; pH 6.5)50 and 5 cm of burrowing substrate. Ammocoetes were fed baker’s yeast twice weekly, and water changes were made every five days.

Acorn worms (S. kowalevskii) were purchased from the Marine Biological Laboratory in Woods Hole, USA, and shipped to the University of British Columbia’s Point Grey campus in Vancouver, Canada. Worms were held in static, 40-l seawater tanks (10 worms per tank; 34 parts per thousand (ppt) artificial seawater made from Instant Ocean salt mix) at 10 °C on a 12-h–12-h light–dark photoperiod. Tanks were supplied with sandy substrate, and 30% water changes were performed twice weekly. Acorn worms used in experiments had a mean wet mass of 0.105 ± 0.009 g (n = 60).

Amphioxus (B. floridae) were purchased from Gulf Specimen Marine Laboratories in Panacea, Florida, USA, and also shipped to the University of British Columbia’s Point Grey campus in Vancouver, Canada. B. floridae were held in identical conditions to S. kowalevskii, but maintained at 20 °C. Amphioxus used in experiments had a mean wet mass of 0.049 ± 0.005 g (n = 20).

All animals from all species were held for at least 1–2 weeks under their respective conditions and fasted 24–48 h before experimentation. All animal care and experimentation conformed to the guidelines set by the Canadian Council on Animal Care (CCAC) and was approved by the University of British Columbia’s Animal Care Committee (ACC) under the animal use protocol A19-0284.

Ammocoete in vivo protocols

Divided flux chambers

Ammocoetes were placed in divided flux chambers similar to those used previously33. To place ammocoetes in chambers, animals were lightly anaesthetized (0.05 g l−1 MS-222; tricaine methanesulfonate, Syndel) and passed through small holes in latex dental dams (Hygenic Corporation). Latex dams were fitted immediately posterior to branchial pores to separate the head and gills from the body. Once fitted, anterior and posterior chamber halves were placed on opposing sides of the latex dam to encompass anterior and posterior portions of the animal. Each acrylic chamber half was fitted with a stir bar, overflow tube and two needle ports for oxygen probes and water sampling. Chamber dimensions varied to accommodate the large range of sizes of the animals, and were such that body mass approximated 5–20% of chamber volume. Once in the flux chambers, animals were flushed with fresh water free of anaesthetic and subjected to one of three experimental protocols as described below. At protocol completion, animals were euthanized with a lethal dose of MS-222, cut into anterior and posterior halves at the point of chamber division and weighed, and a subset of animals were analysed for surface area as described below. All experiments were performed during daylight hours (08:00–19:00) under identical photoperiods.

Normoxia at 10 °C and 20 °C

Ammocoetes in open flux chambers were acclimated for 2 h in an aerated water bath at 10 °C or 20 °C. Chambers were sealed following acclimation, and water PO2 was recorded from anterior and posterior chamber halves simultaneously with needle-type optodes (Presens). Chamber halves were flushed when oxygen saturation fell below 80%, and PO2 measurements were repeated for three cycles. During each cycle at 20 °C, 20-μl samples of water were also taken at regular intervals from each chamber half through needle ports with a gas tight syringe (Hamilton). Water samples were immediately analysed for total CO2 as described below. After PO2 measurements and CO2 sampling, chambers were opened to the air, and a radioisotope (22Na or 45Ca) was added to either anterior or posterior halves. Water samples of 750 μl were taken from both chamber halves at 5 min, 2 h and 4 h after isotope addition. Five hundred microlitres of each sample was immediately frozen at −20 °C for later measurement of total ammonia, and the remaining sample was analysed for ion content and radioactivity. Surface area and wet mass for ammocoete halves were calculated following measurements for radioactivity as described below.

Normoxia at 26 °C

Animals in open flux chambers were subjected to an acute temperature ramp from 10 °C to 26 °C over 2 h in an aerated water bath. An upper temperature of 26 °C was used because it yielded the maximum ventilation rate. Chambers were sealed at 26 °C, and water PO2 was recorded from both chamber halves as in normoxia at 10 °C. Ventilation frequency was recorded for 1 min during each cycle for all animals.

Hypoxia at 20 °C

Ammocoetes in open flux chambers were subjected to acute hypoxia by bubbling nitrogen into the surrounding water bath (20 °C). The water bath PO2 was reduced to around 4 kPa (about 20% saturation) over 20 min, and animals were left to acclimate for 1 h before chamber halves were sealed. Water PO2 was recorded by optodes in both chamber halves simultaneously once sealed, and the ventilation frequency was recorded for 1 min. Trials were terminated when chamber oxygen fell below 3% saturation.

Acorn worm in vivo protocols

Normoxia at 10 °C

Eight whole worms were transferred to acrylic respirometers (4 ml) in an aerated water bath at 10 °C. Each respirometer was fitted with a stir bar, overflow tube and needle-type oxygen probe (Presens). After a 1-h acclimation period in respirometers open to the water bath, respirometers were sealed and the PO2 was recorded until it fell to around 80% saturation. Respirometers were then manually flushed, and the cycle was repeated twice more. After the third cycle, a razor blade was used to cut animals in half with a transverse section immediately posterior to the hindmost gill pores. Animal halves were left to recover in 10 ml aerated chambers at 10 °C for at least 12 h after fragmentation. After recovery, animal halves were returned to 4-ml respirometers and subjected to the same measurements of PO2 as whole animals. At trial completion, animal halves were euthanized with a lethal dose of MS-222 and weighed. For measurements of ammonia excretion, a separate group of six whole worms was placed in 10-ml aerated chambers. From the aerated chambers, 1-ml water samples were taken every 30 min for 4 h and frozen at −20 °C for later measurement of total ammonia. After the final water sample, animals were cut in half as above and left to recover overnight. Animal halves were then subjected to the same measurements as whole worms, and euthanized and weighed at trial completion.

Normoxia at 20 °C

Acorn worms were subjected to the same protocol as outlined for normoxia at 10 °C, but all measurements were performed at 20 °C and oxygen uptake and ammonia excretion were measured simultaneously in the same animals. Eight whole worms were warmed to 20 °C from 10 °C overnight in a water bath at 2.5 °C h−1 before experimentation. The temperature of 20 °C was chosen as an ecologically relevant thermal challenge that would substantially increase oxygen demand from 10 °C, but not result in mortality over 24–36 h. This temperature was chosen on the basis of previous work with summer-acclimated worms51 that recommended that rearing temperatures should not exceed 24 °C.

Hypoxia at 20 °C

Eight whole worms at 10 °C were warmed to 20 °C as in the previous protocol. Worms were placed in submerged respirometers open to the water bath. The water bath PO2 was then reduced to around 4 kPa (about 20% saturation) with a nitrogen sparge. After a 1-h acclimation at this reduced PO2, respirometers were sealed and the PO2 was recorded until it dropped to around 1% saturation. Whole worms were then euthanized with a lethal dose of MS-222 and weighed. A different, second set of eight whole animals at 10 °C was partitioned into anterior and posterior halves as in the previous protocols. Worm halves recovered for 12 h, and were then subjected to the same temperature ramp, experimental protocol and measurements as whole animals in hypoxia. This second, naive set of worms was used for fragmentation to avoid any potential confounding effects that pre-exposure of whole animals to hypoxia might have on gas exchange. Ammonia excretion was not measured in hypoxia because (1) PO2 below around 20% saturation could not be maintained in open respirometers; and (2) ammonia production during closed respirometry trials was below assay sensitivity.

Gas and ion flux analyses

O2 uptake

Mean slopes were taken from the linear portions of three O2 cycles for each chamber (acorn worms) or chamber half (ammocoetes) recorded with OXY-4V2_11TX data acquisition software (Presens). Mean slopes were then adjusted with background respiration values from blank trials to yield a ∆PO2 h−1 (mm Hg O2 h−1). From these mean rates, chamber volumes (ml), animal or fragment wet mass (g) and O2 solubility values52 (μmol O2 ml−1 mm Hg−1) were used to calculate oxygen uptake rates for whole and fragmented acorn worms (\(\dot{M}\)O2, in μmol O2 g−1 h−1). For ammocoetes, oxygen uptake rates were calculated in the same way for each chamber half, and then summed to yield whole-body \(\mathop{M}\limits^{.}\)O2.

Ammonia excretion

Water samples were analysed for total ammonia (NH3 and NH4+; hereafter written as NH3/4+) colorometrically53 using a SpectraMax 190 microplate reader (Molecular Devices). The difference in ammonia concentration between initial and final water samples was used to calculate the rate of change in the concentration of ammonia (nmol NH3/4+ ml−1 h−1) for a chamber (acorn worms) or chamber half (ammocoetes). From this rate, chamber volumes and animal or fragment wet mass (g) were used to calculate ammonia excretion rates for whole or fragmented acorn worms (\(\mathop{M}\limits^{.}\)NH3/4+). For ammocoetes, ammonia excretion rates were calculated in the same way for each chamber half, and then summed to yield whole-body \(\mathop{M}\limits^{.}\)NH3/4+.

CO2 excretion

Water samples (20 μl) were analysed for total CO2 as before54. Total CO2 was expressed as a concentration (μmol ml−1) and all values for a given trial were plotted as a function of time (h). The slope of this line equals the rate of change in CO2 concentration for a chamber half (μmol CO2 ml−1 h−1). From this rate, chamber half volumes (ml) and animal wet mass (g) were used to calculate CO2 excretion rates for each chamber half, and then summed to yield whole-body \(\mathop{M}\limits^{.}\)CO2 (μmol CO2 g−1 h−1).

Na+ uptake

At trial completion, ammocoetes were rinsed three times with 5 mM cold NaCl to displace surface-bound 22Na and once with deionized water. Whole ammocoetes and water samples were measured for radioactivity in counts per minute (cpm) with a gamma counter (PerkinElmer). Trials were discarded if activity above background was found in water samples from the chamber half that did not receive isotope injection. Water Na+ concentration was determined by flame atomic absorption spectrometry (Varian). Sodium uptake rates were calculated as in a previous study55 and reported as μmol Na+ g−1 h−1. Owing to the absence of sodium uptake from posterior chamber halves, uptake rates were only calculated from trials where isotope was added to anterior chamber halves.

Ca2+ uptake

Calcium uptake rates were measured in a subset of our smallest ammocoetes (0.08 ± 0.003 g, n = 15) to determine whether the pattern observed for Na+ uptake could be applied to ion regulation more generally. Analysis was identical to that for Na+ uptake with the following exceptions. At trial onset, 100 μl of 45Ca working solution was injected to either chamber half to yield around 0.4 μCi per ml of chamber water. At trial completion, ammocoetes were rinsed twice in a 10 mM cold CaCl2 solution, once in 50 mM EDTA and once in deionized water. Whole ammocoetes were digested overnight at 40 °C in a 5:1 volume:mass ratio of 1 M nitric acid. Digest aliquots and water samples were then diluted five times in Ultima Gold AB liquid scintillation cocktail (PerkinElmer) and measured for radioactivity with a liquid scintillation counter (LSC-2000; Beckman Coulter). A quench curve was constructed with varying amounts of tissue digest so that counting efficiency could be corrected to be the same as that of water samples. Calcium uptake was reported as nmol Ca2+ g−1 h−1 and calculated as described previously56. Owing to the absence of calcium uptake from posterior chamber halves, uptake rates were only calculated from trials in which isotope was added to anterior chambers (n = 8).

Per cent flux at ammocoete gills

Flux rates for anterior and posterior chamber halves were adjusted with epidermal surface area to represent flux at gills and skin, respectively17,57. After surface area correction, the per cent flux at gills was then calculated by dividing anterior chamber flux rates by total flux rates.

Ammocoete epidermal surface area, thickness and cutaneous diffusion capacity

At trial completion, a subset of 15 euthanized ammocoetes was fixed in 70% ethanol for 48 h after mass and length measurements. The epidermis was removed from each half, flattened under coverslips and photographed with a dissecting scope. Epidermal surface area (cm2) for each half was measured in photos with ImageJ (NIH), and the percentage of the total body surface area present in anterior chamber halves was plotted as a function of body mass (g). These data were fitted with an allometric curve (y = 32.058x−0.075, R2 = 0.81) that was used to calculate anterior surface area for all ammocoetes.

For epidermal thickness, a subset of ammocoetes was euthanized, weighed, measured for length, fixed and prepared for sectioning as described previously58. For each individual, 5-μm transverse sections were made at midpoints of the pharynx, body and anus. Epidermal thickness was measured at all three midpoints under a microscope with ImageJ (NIH) and used to calculate a mean thickness (μm) for each individual. Mean epidermal thicknesses for all ammocoetes were plotted as a function of body mass and fitted with an allometric curve (R2 = 0.92; Extended Data Fig. 1b).

To calculate cutaneous diffusion capacity, mass-specific surface area (cm2 g−1) of ammocoetes sampled during experimentation was plotted as a function of wet mass (g) and fitted with an allometric curve (R2 = 0.99; Extended Data Fig. 1a). The equation of this line was divided by that for epidermal thickness to yield a model estimating cutaneous diffusion capacity (cm2 μm−1 g−1; Extended Data Fig. 1c).

Tissue sampling for ionocyte markers

Animals were pinned to silicone-coated Petri dishes in seawater for dissection. Tissue samples were carefully excised with the aid of a dissecting microscope, transferred to RNase-free bullet tubes, flash-frozen in liquid N2 and stored at −80 °C. For B.floridae, tissue samples were taken for gills (all pharyngeal gill bars), skin (outer dermis excluding the atrial lining), hepatic caecum and muscle (dorsal section immediately posterior to atriopore). For S.kowalevskii, tissue samples were taken for gills (all pharyngeal gill bars), skin (outer dermis), intestine (entire gut tube posterior to hindmost gill pores) and muscle (entire proboscis). Animals of a given species were all sampled within a 4-h period, and each dissection was under 10 min. A total of 20 animals per species were sampled (10 for ATPase measurements and 10 for gene expression). NKA activity was also measured in gill, skin, intestine and muscle of E.tridentatus (n = 10).

ATPase activity

NKA and VHA activities were measured using modified versions of the protocols outlined previously38,59. NKA and VHA activities are reported as μmol ADP per mg protein per hour. Additional detail is provided in the Supplementary Information.

Gene expression

Target sequences (Extended Data Table 1) were identified in B.floridae and S.kowalevskii with reciprocal best BLAST hits for characterized proteins in Danio rerio and/or Homo sapiens60. Species-specific primers for B.floridae and S.kowalevskii were designed for corresponding transcripts from RefSeq mRNA databases (NCBI txid7739 and txid10224, respectively) with PrimerQuest (Integrated DNA Technologies) for use with quantitative PCR with reverse transcription (qRT–PCR; primer sequences listed in Extended Data Table 2). Tissue homogenization, RNA extraction, cDNA synthesis and qRT–PCR were performed as described previously61. Gene expression values are normalized to skin and reported relative to the geometric mean of 18S (accession numbers M97571.1 and L28054.1 for B.floridae and S.kowalevskii, respectively) and EF1A (accession numbers XM_002604676.1 and NM_001184809.1 for B.floridae and S.kowalevskii, respectively). Additional detail is provided in the Supplementary Information, including sequence alignments assessing ionocyte marker suitability (Supplementary Figs. 18 and Supplementary Table 1) and upstream scans for putative promoter binding sites for foxI (Supplementary Table 2). Sequence accession numbers used for gene expression are also listed in the figure source data files.

Microscopy

Whole S.kowalevskii and B.floridae were euthanized as above and fixed in 4% paraformaldehyde in DEPC-treated phosphate-buffered saline (PBS) overnight at 4 °C. Fixed samples were then rinsed in PBS and dehydrated into 100% methanol for storage at −20 °C. Pharyngeal regions were dissected from dehydrated samples before paraffin embedding and sectioning.

Paraffin embedding, sectioning (7 μm thickness) and immunofluorescence were performed according to a previous report62. Antibodies were diluted as follows: rabbit anti-NKA (1:200), mouse anti-NKCC (1:100; T4, Developmental Studies Hybridoma Bank), goat anti-rabbit 647 (1:500; Thermo Fisher Scientific) and goat anti-mouse 488 (1:500; Thermo Fisher Scientific). Rabbit anti-NKA is NAK121 (ref. 63) and was provided by J. Wilson. Negative controls were performed in tissue sections for each species by running the staining protocol without each primary antibody to confirm the absence of non-specific signal. Additional protocol detail is provided in the Supplementary Information.

mRNA in situ hybridization by chain reaction was performed on paraffin sections as described previously64, with modifications as per another previous report65. Hairpins and custom probe sets were purchased from Molecular Instruments for foxI transcripts in S.  kowalevksii (lot PRK271, amplifier B1) and B.  floridae (lot PRK274, amplifier B1).

Masson’s trichrome and Alcian blue stainings were performed as described before66. All sections were imaged on a Zeiss Axioscope A1 with Colibri 7 light source (ZEISS). Images were captured in ZEN (v.2.3; ZEISS), and edited for Fig. 4 with Adobe Creative Suite. All experiments were repeated at least three times independently with similar results.

Statistics and reproducibility

Data were analysed with Prism 9 for macOS (v.9.3.1; GraphPad Software). Ammocoete gill contributions to gas exchange and ion regulation were subjected to a multiple linear regression analysis with ANOVA using treatment and body mass as factors. Gas exchange in whole and fragmented acorn worms was analysed with a one-way ANOVA and Tukey’s post-hoc test. Activity and expression of ionocyte markers in amphioxus and acorn worms were analysed with a two-tailed Student’s t-test (Fig. 3), one-way ANOVA with Tukey’s post-hoc test (Extended Data Figs. 4a,b,d, 5 and 6b,d) or Kruskal–Wallis test with Dunn’s post-hoc test (Extended Data Figs. 4c,e and 6a,c). All data were analysed with t-tests or ANOVA passed tests of normality and equal variance, but some did require log or root transformation. Kruskal–Wallis tests were only used when normality and equal variance were not achieved by simple data transformation.

Sample sizes were determined from previous studies that found meaningful biological effects with similar methods17,57. Experiments were not replicated, so that the number of animals euthanized could be kept as low as reasonably allowable. For in vivo measurements of gas and ion flux, animals were randomly assigned to one of three experimental treatments (normoxia, high temperature or hypoxia). However, blinding was not possible as water temperature and oxygen levels required close monitoring and manipulation. All remaining in vitro data collection and analyses were blind to treatments.

Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.