{'fraction_non_alphanumeric': 0.03478980636099127, 'fraction_numerical': 0.024831945419885624, 'mean_word_length': 5.111128142244022, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Chemical Defense Balanced by Sequestration and De Novo Biosynthesis in a Lepidopteran Specialist

The evolution of sequestration (uptake and accumulation) relative to de novo biosynthesis of chemical defense compounds is poorly understood, as is the interplay between these two strategies. The Burnet moth Zygaena filipendulae (Lepidoptera) and its food-plant Lotus corniculatus (Fabaceae) poses an exemplary case study of these questions, as Z. filipendulae belongs to the only insect family known to both de novo biosynthesize and sequester the same defense compounds directly from its food-plant. Z. filipendulae and L. corniculatus both contain the two cyanogenic glucosides linamarin and lotaustralin, which are defense compounds that can be hydrolyzed to liberate toxic hydrogen cyanide. The overall amounts and ratios of linamarin and lotaustralin in Z. filipendulae are tightly regulated, and only to a low extent reflect the ratio in the ingested food-plant. We demonstrate that Z. filipendulae adjusts the de novo biosynthesis of CNglcs by regulation at both the transcriptional and protein level depending on food plant composition. Ultimately this ensures that the larva saves energy and nitrogen while maintaining an effective defense system to fend off predators. By using in situ PCR and immunolocalization, the biosynthetic pathway was resolved to the larval fat body and integument, which infers rapid replenishment of defense compounds following an encounter with a predator. Our study supports the hypothesis that de novo biosynthesis of CNglcs in Z. filipendulae preceded the ability to sequester, and facilitated a food-plant switch to cyanogenic plants, after which sequestration could evolve. Preservation of de novo biosynthesis allows fine-tuning of the amount and composition of CNglcs in Z. filipendulae.


Introduction
A driving force in speciation is to evolve, exploit and handle chemical defenses. Two central issues with regards to insect chemical defenses are how cost-efficient defenses against predators have evolved and how these are regulated. Insects acquire chemical defense compounds either through de novo biosynthesis, sequestration (uptake, accumulation and storage [1] of plantderived defense compounds) or by a combination of the two strategies [2]. De novo biosynthesis requires maintenance of a biosynthetic machinery as well as use resources that could otherwise be allocated to growth and development, but provides the possibility to tightly regulate the composition and amounts of defense compounds. Sequestration relies on the composition of the compounds in the food-plant and thus enables less control by the insect, but is a more cost-efficient strategy since the compounds do not have to be produced de novo. While some specialized leaf beetle (Chrysomelinae) species have evolved to biosynthesize defense compounds de novo, others sequester them from plants and metabolize them to generate new defense compounds [2]. Similarly, within butterflies (Heliconiini) there are species that either sequester or biosynthesize defense compounds de novo [3,4,5]. In contrast, the larvae of Zygaena moths (Zygaenoidae, Lepidoptera), are unique in that they can obtain the same chemical defense compounds through both de novo biosynthesis [4] and sequestration [6].
Plants produce an astonishing array of bioactive specialized compounds in the warfare against herbivores [7]. Cyanogenic glucosides (CNglcs) are one class of such compounds and they are present in more than 2650 higher plant species. They are generally regarded as feeding deterrents against herbivores due to their bitter taste, but they can also be bioactived by plant b-glucosidasemediated hydrolysis which leads to release of toxic hydrogen cyanide (HCN) [8]. Although highly efficient against generalist insect herbivores, many specialist insects have evolved mechanisms to tolerate CNglcs and some may even utilize them as phagostimulants and/or oviposition cues [9,10,11]. The Burnet moth Zygaena filipendulae contains the CNglcs linamarin and lotaustralin [12], that are used for defense against predators [13,14,15]. These CNglcs can be sequestered by the larva from its food-plant Lotus corniculatus (Fabaceae) [6] and also biosynthesized de novo from the amino acids valine (Val) and isoleucine (Ile), respectively [4]. The biosynthetic pathways in Z. filipendulae and Lotus japonicus involves the same intermediates and enzymatic steps [16], but analysis of the encoding genes revealed that the pathway for CNglc biosynthesis have evolved convergently in these two Kingdoms of Life [17]. The de novo biosynthesis is catalyzed by two multifunctional cytochromes P450 (P450s) and a UDP-glycosyltransferase (UGT) in both L. japonicus and Z. filipendulae [16,17,18]. The Z. filipendulae enzymes are CYP405A2, CYP332A3 and UGT33A1, respectively ( Figure 1) [17].
Z. filipendulae larvae accumulate CNglcs mostly in the haemolymph and cuticular cavities in the integument ( Figure 2 and Figure S1) [19]. Upon physical irritation, larval muscle contraction leads to CNglc secretion from two types of cavities in the form of sticky droplets (Figure 2A). The larger (type I) cavities are situated below the black pigmented patches on the larval body and react to slight physical irritation, while the smaller (type II) cavities requires a stronger irritation before they are emptied. The defense droplets are known to have a deterrent effect against predators, such as ants, frogs and birds [13].
The overall level and ratio between linamarin and lotaustralin has been shown to be tightly regulated in Z. filipendulae [11], probably due to the important roles these compounds play during the insect life-cycle [20]. They have been shown to take part in male-female communication, be part of a nuptial gift from the male to the female, and may also be involved in nitrogen metabolism [21]. Accordingly, Z. filipendulae larvae feeding on L. corniculatus lacking CNglcs (acyanogenic, [(2)diet]) show similar overall CNglc level and ratio of linamarin to lotaustralin as larvae feeding on cyanogenic plants [(+)diet], suggesting a fine-tuned ability to balance the de novo biosynthesis in response to the CNglc content of the food-plant [11]. It is not known, however, why the ratio between linamarin and lotaustralin is important, since they have very similar structures, differing only by a methyl group. Non-choice feeding studies show that Z. filipendulae larvae reared on (2)diet experience reduced growth, lower body mass at pupation and higher mortality compared to larvae reared on (+)diet [11]. In addition, free-choice feeding studies have shown that Z. filipendulae larvae preferentially feed on (+)diet [11]. Thus, de novo biosynthesis is associated with an apparent higher cost or reduced fitness, as compared to sequestration from the food-plant. Yet de novo biosynthesis has been preserved in evolution.
Here, we report how Z. filipendulae larvae alternate between de novo biosynthesis and sequestration based on the ingested amount of plant-derived CNglcs in the food-plant to secure homeostasis in their chemical defense. Contrary to earlier assumptions that hypothesized biosynthesis in the inner organs of the larva [22], we demonstrate that de novo biosynthesis takes place in organs and cell types associated with the integument. This localization infers the possibility of a rapid transport of newly biosynthesized CNglcs into the haemolymph and cuticular cavities for storage. We demonstrate that Z. filipendulae regulates CNglc biosynthesis, both at the transcript and protein level, as a response to the CNglc level in the food-plant and thereby probably optimizes resource allocation. Finally, our data supports the hypothesis that de novo biosynthesis of CNglcs in Zygaenidae preceded the ability to sequester, thereby facilitating colonization and subsequently uptake of CNglcs from their food-plant.

Results
De novo biosynthesis of CNglcs in larvae is dependent on the CNglc content of the food-plant Previous studies show that Z. filipendulae larvae prefer feeding on (+)diet, and that feeding on (2)diet results in growth reduction. In order to test if the larvae regulate the de novo biosynthesis of CNglcs in relation to CNglc content of the food plant, transcript levels of the biosynthetic genes were analyzed by quantitative realtime PCR (qRT-PCR) and RNA-Seq in seventh instar larvae collected in the field and then reared for 2 weeks on (+)diet and (2)diet respectively. The gene expression in males and females was first analyzed separately, but since there was no significant difference in gene expression between the two sexes, male and female larvae were examined jointly. The qRT-PCR analyses revealed that larvae reared on (2)diet expressed the three biosynthetic genes at levels more than threefold higher compared to larvae reared on (+)diet (MannWhitney U = 6343, n (2)diet = n (+)diet = 15, P,0.001; Figure 3A). The same result was obtained by RNA Seq which showed 3.2, 3.8 and 1.9 fold higher expression of CYP405A2, CYP332A3 and UGT33A1, respectively, between larvae reared on (2)diet and (+)diet. CYP405A2 expression tended to be higher than that of CYP332A3, which is consistent throughout the transcriptional analyses, whereas expression of UGT33A1 relative to the other genes is less consistent between the experiments. The larvae were collected in the field, and the large standard error of the mean observed for each gene and diet is most likely caused by the non-synchronized larval growth and development.
Antibodies raised against the three biosynthetic enzymes ( Figure  S2) were used to compare the levels of the individual biosynthetic enzymes in larvae reared on (2)diet and (+)diet respectively by Western blotting. High biosynthetic enzyme levels could only be detected in the larvae reared on (2)diet ( Figure 3B). CYP332A3 and UGT33A1 were not detected in larvae reared on (+)diet, and only a very faint band corresponding to CYP405A2 could be detected. This is in agreement with the qRT-PCR data that demonstrate a basal level of the CYP405A2 transcript even in the larvae reared on (+)diet, and shows that regulation of de novo biosynthesis of CNglcs is manifested on the transcription as well as the protein level. CYP405A2 controls the flux into CNglc biosynthesis and is regulated at both the transcript and protein level To follow the regulation of the pathway over time, third instar larvae hatched in the laboratory and reared on (+)diet were transferred to and reared on (2)diet for up to 3 weeks, and the expression of the three biosynthetic genes was analyzed by qRT-PCR. CYP405A2 encodes the enzyme that catalyzes the first step in the CNglc biosynthetic pathway, the transformation of the amino acids into the corresponding oximes. The expression of CYP405A2 varied over time (Kruskal-Wallis H = 18, n 7 = n 14 = n 17 = n 19 = 8, n 21 = 6, df = 4, P,0.01). At day 7 following transfer to (2)diet, the expression of CYP405A2 had only reached basal levels. CYP405A2 expression then increased, following a bell shaped curve with the highest expression at day 17, which was significantly higher than at day 7 (Posthoc multiple comparison test, P,0.05), after which basal levels were detected again at day 21, also significantly lower than at day 17 (Posthoc multiple comparison test, P,0.05; Figure 3C). In contrast, CYP332A3 and UGT33A1 exhibited more constant and much lower expression levels than observed for CYP405A2, except for day 7 and 21, when they were more highly expressed than CYP405A2. The highly time dependent expression levels imply that CYP405A2 encodes the enzyme that regulates the flux into the pathway.

The fat body and cells associated with the integument constitute the main sites of de novo biosynthesis of CNglcs in larvae
To identify the site(s) of de novo biosynthesis in Z. filipendulae larvae, transcript levels of the biosynthetic genes were analyzed in dissected larval tissues using qRT-PCR as well as thin larval transverse sections by in tube in situ PCR. qRT-PCR revealed tissue specific expression patterns (Kruskal-Wallis H = 142, n fb = n gu = n in+ep = n lg = n Mt = 21, df = 5, P,0.001), with high expression in the fat body and the integument including the epidermis, as well as low expression in the Malpighian tubules ( Figure 3D). There were no significant quantitative differences between the expression in the fat body and the integument. The expression in those tissues was significantly higher than that observed in the Malpighian tubules (Posthoc multiple comparison test, P,0.001). The expression in the Malpighian tubules was also significantly higher than the remaining tissues (Posthoc multiple comparison test, P,0.001). Similarly to what we previously observed in intact larvae ( Figure 3A), there was a tendency of higher expression of CYP405A2 and UGT33A1 compared to CYP332A3 (Kruskal-Wallis H = 13, n fb = n gu = n in+ep = n lg = n Mt = 7, df = 2, P,0.005), although only the latter difference was statistically significant (Posthoc multiple comparison test, P, 0.001). Using in tube in situ PCR the biosynthetic gene transcripts were amplified and labeled with tetramethylrhodamine isothiocyanate (TRITC), and visualized by fluorescence microcopy, which enabled detection at the tissue level. However, since in tube in situ PCR cannot be used for quantification of gene expression, the differences in intensity must be taken with caution. The fluorescence of CYP405A2 was highest within the epidermis, the fat body and sensory cells, followed by the cuticular cavities and the edge of the sensory hair follicles ( Figure 4B and G as well as Figure S3B). CYP332A3 showed the most intense fluorescence in the epidermis ( Figure 4C and H as well as Figure S3C). In contrast to the two P450 transcripts, the fluorescent pattern of the glycosyltransferase UGT33A1 was less confined, and a strong fluorescent signal was observed in the sensory hair follicles, the epidermis, the fat body, the cuticular cavities and the sensory cells ( Figure 4D, I and J). No fluorescent labeling was detected in the lamellate cuticle.
The antibodies raised against CYP405A2 peptides were used for localization studies in thin transverse larval sections. CYP405A2 was found to be situated in the lamellate cuticle, which is in contrast to the localization of the corresponding gene transcripts ( Figure 4G), as well as the cuticular cavities, the fat body, the epidermis and sensory cells ( Figure 5) in agreement with the in tube in situ PCR results. Unfortunately, antibodies raised against CYP332A2 and UGT33A1 peptides did not have the monospecificity required for immunolabeling studies using larval sections.

Discussion
Cyanogenesis, the liberation of HCN from CNglcs, is polymorphic in some plant species. Consequently, the level and ratios of linamarin and lotaustralin as well as the quantity of the degradation enzymes vary widely, as observed in e.g. L. corniculatus and Trifolium spp. (clover) [23,24,25]. Polymorphism in cyanogenesis has been observed among individual plants of the same species, in response to environmental challenges and during plant ontogeny [24,26,27,28,29]. It enables a plant population to  have a more plastic response required to cope with both generalist and specialist herbivores. Plants with high cyanogenesis show increased resistance against generalist herbivores and the defense is thus especially effective in years when such herbivores are abundant [30,31]. On the other hand, highly cyanogenic plants are more sensitive to frost and drought [31] and also preferred by specialist herbivores, such as Z. filipendulae [11]. Although Z. filipendulae larvae are seldom expected to feed on completely acyanogenic plants in vivo, and thereby to rely solely on de novo biosynthesis, the larvae would need to be able to adjust their CNglc levels due to the polymorphism in cyanogenesis in L. corniculatus populations, in order to maintain the optimal content and ratio of CNglcs during their life-cycle [11]. Sequestration seem to be playing the dominant role in CNglc acquisition, probably because it is associated with fewer energetic costs and thus results in increased fitness of the insects [11]. This study demonstrates that de novo biosynthesis of CNglcs in Z. filipendulae larvae is only dominant when required, and implies  (2)diet, respectively, with number of replicates equal to 10 for each diet. Equal amounts of protein were applied, as related to larval mass. C) Transcript levels in third instar larvae 7-21 days following transfer from (+)diet to (2)diet. Expression of CYP405A2 varies over time (Kruskal-Wallis H = 18, df = 4, P,0.01). The CYP405A2 transcript levels are significantly higher at day 14 compared to day 7 (Posthoc multiple comparison test, P,0.05) and day 21 (Posthoc multiple comparison test, P,0.05) respectively. The transcript levels of the other two biosynthetic genes do not differ significantly between the days. Means 6 SEM are shown with number of replicates equal to 8 at day 7-19 and 6 at day 21. Statistical differences between days are indicated by different letters and overlapping expression levels between days are indicated with multiple letters where overlapping groups share at least one letter. D) Transcript levels vary between tissues of seventh instar larvae reared on (+)diet or (2)diet (Kruskal-Wallis H = 142, n fb = n gu = n in+ep = n lg = n Mt = 21, df = 5, P,0.001). No significant difference is observed between fat body, integument and epidermis, while the transcript levels in these tissues are significantly higher than the remaining tissues (Posthoc multiple comparison test, P,0.001). The transcript levels of the Malphigian tubules are also significantly higher than the gonads, gut and labial glands (Posthoc multiple comparison test, P,0.001). fb, fat body; go, gonads (R); gu, gut; in, integument; lg, labial glands; and Mt, Malpighian tubules. Means 6 SEM are shown with number of replicates equal to 7 of each tissue. Statistical differences between tissues are indicated by different letters. doi:10.1371/journal.pone.0108745.g003 that the ability to de novo biosynthesize CNglcs probably complements sequestration in order to compensate for differences in turnover of linamarin and lotaustralin to maintain CNglc homeostasis [11].
The detailed expression analyses and immunolocalization studies demonstrate that de novo biosynthesis of CNglcs is mainly localized to the integument and the neighboring fat body. The fat body is a major site of fat storage and a central organ for integration and coordination of hormonal and nutritional signals regulating insect metamorphosis. In addition, the fat body is the site of synthesis of most haemolymph proteins as well as for circulating metabolites [32]. Our findings are in contrast to an earlier study in the closely related species Zygaena trifolii [33]. In that study, it was suggested that de novo biosynthesis of CNglcs takes place within organs such as the gut, fat body or haemolymph, while the epidermis is mainly involved in transport and accumulation of CNglcs within the cuticular cavities. Due to the apparent lack of cuticular ducts through the cuticle into the cavities or special morphological adaptations for secretion, CNglcs were further hypothesized to be transported into the cavities when these were formed in the course of the molting process [19]. However, a recent study demonstrates transport of CNglcs into the cavities in non-molting larvae [34]. This implies an alternative transportation mechanism in non-molting larvae. In addition, the data presented in the current study are supported by our earlier proteomic and enzyme activity and localization studies which showed biosynthetic enzyme activity in the integumental microsomal fraction from Z. filipendulae [17,20]. Taking all data into consideration, de novo biosynthesis of CNglcs most likely takes place both in the integument and the fat body. These sites of de novo biosynthesis infer a direct and continuous transport of CNglcs into the cuticular cavities as well as transport across the epidermis and from the fat body into the haemolymph. Since the transport proceeds against a concentration gradient (haemolymph: 0.05 mmol/ml, defensive fluid: 0.3 mmol/ml [35]), highly specific active transporters must be involved. An example is ABCtransporters that mediate the transport of the first intermediates in iridoid monoterpene de novo biosynthesis from the fat body in some leaf beetles (Chrysomelinae), to dorsal glands [36,37,38,39,40].
Some leaf beetles biosynthesize iridoid monoterpenes de novo from mevalonic acid whereas others produce them from precursors sequestered from their food-plants [41,42]. An intermediate in the biosynthesis of the iridoid monoterpenes, 8-hydroxygeraniol, is an allosteric competitive inhibitor of the conversion of 3-hydroxy-3-methylglutaryl-coenzyme A (HMG-CoA) into mevalonic acid by HMG-CoA reductase (HMGR). Consequently, de novo biosynthesis is repressed when the larva is able to sequester iridoid precursors from the food-plant [43]. In contrast to the strategy employed by leaf beetles, Z. filipendulae regulates de novo biosynthesis of CNglcs at both the transcript and protein levels ( Figure 3A and 3B).  When Z. filipendulae larvae were transferred from (+)diet to (2)diet, the transcript levels of the first gene in the pathway, CYP405A2, clearly changed over time, while the transcript levels of the other genes in the pathway appeared more constant. In addition, the expression of CYP405A2 was lower compared to the two other genes at the beginning and the end of the time study. The expression patterns may reflect down-regulation of the biosynthetic pathway during molting, which in Zygaena living in the field occurs every 8-10 days [44], although development on (2)diet is always delayed compared to development on (+)diet (personal observations). Molting could thus potentially occur before and after the peak exhibited at day 17. The fluctuation in expression of CYP405A2 over time indicates that CYP405A2 regulates the flux into the biosynthetic pathway, which is in agreement with it catalyzing the key signature step; the transformation of an amino acid to the corresponding oxime ( Figure 1). Down-regulation of only CYP405A2 would provide the larvae with a faster regulatory mechanism compared to down-regulation of the entire pathway. In plants, the signature step in a biosynthetic pathway for a specialized compound such as CNglcs is usually catalyzed by an enzyme with high substrate specificity [45], which would limit the number of substrates entering each particular pathway. Hence, the subsequent pathway enzymes may be more substrate promiscuous which would offer increased overall metabolic flexibility. CYP405A2 show higher preference for Ile than Val in vitro [17], which may serve to facilitate the suggested higher turnover of Ile-derived lotaustralin [46].
It is the general concept that Zygaenidae originally fed on acyanogenic plants belonging to the Celastraceae and was dependent on de novo biosynthesis of the two CNglcs linamarin and lotaustralin for defense [47]. Zygaena spp. later encountered and became adapted to cyanogenic plants [48] belonging to the Fabaceae, such as L. corniculatus. They could probably employ these as food plants because they already had the enzymatic machinery and possessed the necessary morphological adaptations to handle and store potentially toxic CNglcs. Similarly, de novo biosynthesis of saponins and cardenolides by leaf beetles (Chrysomelidae) [42,49] and CNglcs by Heliconius butterflies (Papilionoidea) [50,51] most likely facilitated colonization and subsequent sequestration from each of their respective food-plants. In analogy, we propose that the de novo CNglc biosynthetic pathway in Z. filipendulae was constitutively expressed before colonization of L. corniculatus. Thus, following the encounter with a cyanogenic food-plant, the larvae evolved the ability to regulate the pathway in dependence of the presence of CNglcs in the food-plant. By shifting from de novo biosynthesis to sequestration, the larva could probably preserve energy for primary metabolism and nitrogen for utilization in e.g. biosynthesis of the polymer chitin, a constituent of the integument [21]. Although it takes time before the larvae reach their full potential for de novo biosynthesis of CNglcs when transferred from (+)diet to (2)diet ( Figure 3D), and the option of sequestration is less costly [52], we speculate that the capacity to biosynthesize CNglcs de novo has been preserved to enable counteraction of the polymorphism in Lotus plants of both the total amounts and the ratio between linamarin and lotaustralin. The fact that the CNglc pathway was not completely repressed on (+)diet is yet another indication that, although sequestration is the major contributor to the CNglc content in Z. filipendulae [34], de novo biosynthesis would be carried out too in order to fine-tune the total amount and ratio of linamarin and lotaustralin.
This study demonstrates that the biosynthetic pathway for CNglcs is constitutively expressed but repressed when sequestration is possible. The question then arises why all three biosynthetic genes are down-regulated and not just CYP405A2, the first gene in the pathway. One possibility is that CYP332A3 and UGT33A1 are involved in other processes that to some degree correlate with the repression of the biosynthetic pathway for CNglcs, making their overall expression pattern similar to each other. For instance in vertebrates, many P450s and UGTs are involved in detoxification reactions and are often co-regulated [53]. Indeed, based on proteomics data CYP332A3 and UGT33A1, but not CYP405A2, are also present in the major organs involved in detoxification, the excretory Malpighian tubules and the gut [17]. This could indicate that these two enzymes have an additional function in detoxification. The strong expression pattern of UGT33A1 in multiple organs ( Figure 3D and 4I) also agrees with a very diverse expression pattern of UGTs with regards to tissue specificity and ontogeny observed in insects in general [54,55,56,57,58,59].

Conclusions
We demonstrate that insects like Zygaena larvae react to the content and composition of chemical defense compounds in their food-plants. De novo biosynthesis compensates for differences in ratios and overall content of CNglcs in the food-plant, and thereby serves to complement sequestration. The biosynthetic sites of CNglcs in Z. filipendulae larvae are the fat body and the integument. Their close physical contact to the main storage sites of CNglcs makes it possible to have a rapid replenishment of the reserves of defense compounds following encounters with predators. Biosynthetic regulation is manifested at different levels, which provides a cost-efficient utilisation of resources. We propose that the biosynthetic pathway was originally constitutively expressed and that repression of the pathway evolved following a host-plant shift to cyanogenic plants, and subsequent contrivance of sequestration. Finally, additional functions for the two subsequent enzymes involved in CNglc biosynthesis are suggested. In conclusion, this study illuminates the intricate fine-tuning of de novo biosynthesis and sequestration of a chemical defense compound in insects, and it highlights the complex mechanisms that have evolved to optimize defense compounds while at the same time probably conserving energy for growth and development.

Ethics statement
No specific permissions were required for collecting Z. filipendulae larvae or L. corniculatus plants, as none of these species are endangered in Denmark. Authors maintained the population at sustainable levels.

a) Insect rearing
Fifth to seventh instar Z. filipendulae larvae were collected from a natural population near Copenhagen (N 55u38.0779, E 12u15.7489) [11] and raised in the laboratory. Eggs laid in the laboratory later in the summer were collected, allowed to hatch and reared until diapause (fourth instar) in late summer. As Z. filipendulae larvae spend ,8 months in diapause (,September to April in the fourth instar), it was not feasible to maintain a continuous population in the laboratory. Larvae were reared in transparent plastic boxes, lined with tissue paper and supplied with new food plant material every 3 days. Two types of larval diets were used [11]: L. corniculatus lacking CNglcs [(2)diet]; and L. corniculatus producing CNglcs [(+ )diet]. Z. filipendulae reared on (+)diet as well as Z. filipendulae reared on (2)diet contain equivalent total amounts and ratios of linamarin and lotaustralin (,21 mg/mg fresh weight and a ,1:1 ratio of linamarin:lotaustralin) [11]. Larvae used in the time series experiment ( Figure 3D) were reared on (+)diet until they reached the third instar after which they were reared 3 weeks on (2)diet. Larvae used in the other experiments were reared on the respective diet for 2 weeks. Fifth instar larvae reared on (+)diet reached the seventh instar after 2 weeks, while seventh instar larvae reared on (2 )diet for 2 weeks remained in this instar because of reduced growth [11].

b) Dissection
In order to analyze the localization of biosynthetic gene transcripts and proteins, seventh instar Z. filipendulae larvae were dissected. These large last instar larvae were chosen to ease dissection and ensure high gene expression and protein levels. Following sedation in CO 2 larvae were dissected into fat body, gonads (R), gut, integument including nerves and muscles, labial glands and Malpighian tubules. Dissected tissues were immediately frozen in liquid nitrogen and stored at 280uC.

c) Quantitative real-time PCR
Quantitative real-time PCR (qRT-PCR) was used to analyze the transcription of the three biosynthetic genes, and was performed in accordance with the MIQE guidelines [60]. Total RNA was extracted from whole and dissected larvae using the RNeasy Mini Kit (Qiagen, Valencia, CA, US, including digestion with the RNase-Free DNase Set (Qiagen). cDNA was synthesized using the iScript cDNA Synthesis Kit (Bio-Rad Laboratories, Hercules, CA, US). The transcript levels were analyzed by qRT-PCR, run on a Rotor-Gene Q (Qiagen) using the DyNAmo Flash SYBR Green qRT-PCR Kit (Thermo Fisher Scientific, Waltham, MA, US), with gene specific (accession number GQ915312, GQ915314 and GQ915324) and reference gene specific (targeting a homologue to the RNA polymerase II 140 kD subunit from Drosophila melanogaster, herein called RpII140-RA, accession number KJ192329) primers (Table S1). The reference gene was used to normalize the expression levels and enable comparison of expression of different genes from separate reactions. The qRT-PCR was run according to the following conditions: a predenaturation step at 95uC for 7 min, 35 cycles at 95uC for 15 s, 55uC for 30 s, 65uC for 30 s, 78uC for 15 s (respective 76uC for RpII140-RA) and subsequent acquisition, followed by a final extension step at 78uC for 15 min, and melting curve analysis from 50 to 99uC. The results were analyzed using the standard curve method with the accompanying software. d) RNA-Seq data generation, assembly and digital gene expression analysis RNA-Seq was used to verify the results obtained by qRT-PCR. Total RNA was extracted from single seventh instar larvae reared on the respective host plants as described above, using the innuPREP RNA Mini Isolation Kit (Analytik Jena AG, Jena, Germany). Additional RNA purification, quantification and quality control were performed following the protocols described previously [61]. Sequencing of the two mRNA pools was performed at the Max Planck Genome Center (Cologne, Germany), RNA-Seq assays were performed on an Illumina HiSeq2500 Genome Analyzer platform, using 26100 bp pairedend sequencing with RNA fragmented to an average of 230 bp size.
Quality control measures, including the filtering of high-quality reads based on the score value given in ''fastq'' files, removal of reads containing primer/adaptor sequences and trimming of read length, were performed using the CLC Genomics Workbench software 6.5 (http://www.clcbio.com). The de novo transcriptome assembly (TA) was performed with a total of 73 million sequence reads using the CLC Genomics Workbench software by comparing an assembly with standard settings and two additional CLCbased assemblies with different parameters, selecting the presumed optimal consensus transcriptome as described before [61]. The resulting final de novo TA consisted of 29,395 scaffolds larger than 250 bp with a N50 contig size of 1813 bp, an average scaffold length of 1130 bp and a maximum scaffold length of 25,190 bp. Digital gene expression analysis was carried out by using QSeq Software (DNAStar Inc., Madison, CA, US) to remap the Illumina reads obtained from the larvae onto the reference backbone and then counting the sequences to estimate expression levels. Read mapping parameters and global normalization were described previously [62].

e) Transcript localization
To localize the transcripts of the biosynthetic genes, in situ in tube PCR was performed as previously described [63], with gene specific primers (Table S1) on 80 mm transverse sections prepared on a vibratome (Leica VT 1000S, Leica Microsystems, Wetzlar, Germany) from fourth to fifth instar larvae, fixed in formalinacetic acid-alcohol (FAA) and embedded in 5% agarose. The transcript levels of earlier instars were too low for detection, while larvae of later instars could not be sectioned without disturbing the anatomy and loosing inner organs and tissues using this method. The sections were labeled by tetramethylrhodamine isothiocyanate (TRITC) and visualized using fluorescence microscopy (Leica DMR HC, filter N2.1, l ex BP 515-560 and l em LP 590). Thermocycling conditions were 98uC for 30 s followed by 35 cycles at 98uC for 10 s, 58uC for 30 s and 72uC for 20 s followed by a final extension at 72uC for 5 min.

f) Extraction of enzymes
Total protein was extracted from intact and dissected seventh instar larvae. Following tissue disruption in liquid nitrogen, the homogenate was dissolved in 2 ml 2% dithiothreitol (DTT) in 0.2 M NaOH and centrifuged at 10,0006 g for 10 min. The supernatant was recovered and precipitated with an acetone/ trichloroacetic acid (80/20) solution. Following centrifugation the pellet was washed in 80% acetone, which was removed following another centrifugation step. Finally, the pellet was resuspended in 50 mM Tris-HCl buffer (pH 8.0).

g) Western blotting
The levels of the biosynthetic proteins were analyzed using Western blotting. A crude preparation of the biosynthetic enzymes was subjected to SDS-PAGE (12% Criterion XT Bis-Tris Precast Gels, Bio-Rad), and the separated proteins were transferred to a nitrocellulose membrane (Millipore, Darmstadt, Germany) using a wet electroblotter (Bio-Rad). Following incubation with polyclonal antibodies targeting the biosynthetic enzymes (1:1000 dilution, Figure S2) and peroxidase conjugated anti-rabbit IgG antibody produced in goat (1:5000 dilution; Thermo Scientific Pierce, IL, US) as secondary antibody, the biosynthetic enzymes were detected using the ChemiDoc-It 2 Imager system (Analytika Jena AG). The chemiluminescent signal was recorded using a cooled CCD camera.

h) Immunolocalization
Immunolocalization was performed on 100 mm sections prepared on a vibratome (Leica VT 1000S) from second to third instar larvae reared on (+)diet in order to determine the localization of CYP405A2. Larvae of later instars could not be sectioned using this method. CYP405A2 was detected using polyclonal antibodies against CYP405A2 (dilution 1:100, Figure  S2) as primary antibodies and anti-rabbit IgG antibody produced in goat with fluorescein isothiocyanate (FITC) attached (dilution 1:160) as secondary antibody (F9887; Sigma-Aldrich, MO, US) according to [64]. The localization of CYP405A2 was visualized using fluorescence microscopy (Leica DMR HC, filter N2.1, l ex BP 515-560 and l em LP 590).

i) Statistical analysis
All statistical analyses were performed using the statistical software R [65]. Transcript data was log e and cube root transformed respectively and tested for normality using the Shapiro-Wilks normality test. After applying Fischer's exact test for equal variances, differences in gene expression between two groups were evaluated using a Mann Whitney U test, and differences in gene expression between more than two groups were evaluated using a Kruskal-Wallis rank sum test followed by a posthoc multiple comparison test with Bonferroni correction. Differences were considered statistically significant at P,0.05. All data were presented as mean 6 SEM. Figure S1 Resin embedding and larval cross sectioning. Fifth instar Z. filipendulae larvae were frozen in liquid nitrogen and stored at 280uC. Larvae were allowed to thaw and fixated in 2% paraformaldehyde in 0.2 M phosphate buffer (0.5 M Na 2 HPO 4 and 0.23 M NaH 2 PO 4 , pH 7.0) overnight at 4uC. Following 3 times 20 min washes in phosphate buffered saline (PBS, 8 mM K 2 HPO 4 , 15.4 mM NaCl and 3.9 mM KH 2 PO 4 , pH 7.0), the samples were dehydrated 1 h each in 25, 50, 75 and 100% acetone in PBS buffer. Samples were then infiltrated with Technovit 8100 solution A (Heraeus Kulzer, Wehrheim, Germany) overnight followed by embedding in Technovit 8100 solution B according to the manufacturers protocol. After polymerization, sections (20 mm thickness) were prepared using a Reichert-Jung 2030 rotary microtome (Reichert-Jung, Germany). Cross sections were stained with Toluidine Blue and visualized using light microscopy (Leica DMR HC, Leica Microsystems). (TIF) Figure S2 Generation of antibodies. Epitope candidates were obtained using the Peptide CAD software (Agrisera AB, Vä nnä s, Sweden). Sequences were chosen based on localization in protein models made using the Phyre software [66], and specificity using BLAST searches against the Z. filipendulae transcriptome [67]. Antibodies towards CYP405A2, CYP332A3 and UGT33A1, were obtained in rabbits following injection of three pairs of haptens QNVEHRYFKTGKNI and LRRYKLSVAKEPDI, AEQLVQKIERDFVK and QVLHKYRVEPATDS, as well as KSDEVQAILKDERG and LRQVLGDDIPTLSE respectively conjugated to the 67 kDa bovine serum albumin subunit by Agrisera AB. Antibody specificity was tested by Western blots. Cross-reactive polyclonal antibodies targeting the NADPHcytochrome P450 reductase (POR) were used as a positive control. Size of enzymes, as predicted by the ProtParam server [68]: POR -76.37 kDa, CYP405A2 -57.82 kDa, CYP332A3 -58.91 kDa and UGT33A1 -60.31 kDa. (TIF) Figure S3 Tissue specific de novo cyanogenic glucoside biosynthetic gene expression in Z. filipendulae larvae. Tissue localization of de novo CNglc biosynthetic genes in a representative larva determined by in tube in situ PCR analysis using fluorescence microscopy with 80 mm transverse sections. A) Negative control excluding primers in the PCR reaction, visualized with red light excitation and 370.4 ms exposure time. B-D) Expression of CYP405A2, CYP332A3 and UGT33A1 respectively as monitored by TRITC labeling, visualized with red light excitation and 960.8 ms exposure time. br, basal ring; cII, type II cuticular cavity; ep, epidermis; fb, fat body; hf, hair follicle; and sh, sensory hair (seta). Scale bars: 100 mm.

(TIF)
Table S1 Primer sequences for qRT-PCR. Primers targeting the three de novo CNglc biosynthetic genes and the reference gene RpII140-RA, a homologue to the RNA polymerase II 140 kD subunit from Drosophila melanogaster. Primer efficiency: 95-105%. T m , predicted melting temperature (64)/melting temperature given by melting curve; F, forward; and R, reverse. (DOCX)