Skip to main content
Nature Portfolio logoLink to Nature Portfolio
. 2024 May 29;630(8016):392–400. doi: 10.1038/s41586-024-07463-4

The sex of organ geometry

Laura Blackie 1,2,3,#, Pedro Gaspar 1,2,3,#, Salem Mosleh 4,10, Oleh Lushchak 1, Lingjin Kong 1,2, Yuhong Jin 1,2, Agata P Zielinska 1,2, Boxuan Cao 1,2, Alessandro Mineo 1,2,3, Bryon Silva 1,2,3, Tomotsune Ameku 1,2,3, Shu En Lim 5,6, Yanlan Mao 5,6, Lucía Prieto-Godino 3, Todd Schoborg 7, Marta Varela 8, L Mahadevan 4,9, Irene Miguel-Aliaga 1,2,3,
PMCID: PMC11168936  PMID: 38811741

Abstract

Organs have a distinctive yet often overlooked spatial arrangement in the body15. We propose that there is a logic to the shape of an organ and its proximity to its neighbours. Here, by using volumetric scans of many Drosophila melanogaster flies, we develop methods to quantify three-dimensional features of organ shape, position and interindividual variability. We find that both the shapes of organs and their relative arrangement are consistent yet differ between the sexes, and identify unexpected interorgan adjacencies and left–right organ asymmetries. Focusing on the intestine, which traverses the entire body, we investigate how sex differences in three-dimensional organ geometry arise. The configuration of the adult intestine is only partially determined by physical constraints imposed by adjacent organs; its sex-specific shape is actively maintained by mechanochemical crosstalk between gut muscles and vascular-like trachea. Indeed, sex-biased expression of a muscle-derived fibroblast growth factor-like ligand renders trachea sexually dimorphic. In turn, tracheal branches hold gut loops together into a male or female shape, with physiological consequences. Interorgan geometry represents a previously unrecognized level of biological complexity which might enable or confine communication across organs and could help explain sex or species differences in organ function.

Subject terms: Organogenesis, Drosophila


In fruit flies, three-dimensional organ arrangement is stereotypical, sexually dimorphic and actively maintained by muscle-vessel mechanochemical crosstalk.

Main

Recognition that internal organs reside in specific positions in the body is arguably as old as the study of anatomy, with anomalies such as mirror image transpositions (‘situs inversus’) described as far back as Aristotle2. Although our mechanistic understanding of how organs acquire their characteristic sizes and shapes is advancing at a remarkable pace68, the factors determining their higher-level spatial arrangement have received less attention. This is partly because multi-organ relationships are less amenable to the molecular, genetic and imaging approaches which have enabled progress at the organ level, but also because it is easy to dismiss the consistency of such spatial arrangements as a developmental accident.

In principle, a relatively small animal such as Drosophila melanogaster, with specialized organs and well-established mechanisms of endocrine interorgan communication, provides an opportunity to investigate the spatial arrangement of internal organs; its sophisticated experimental tools enable functional interrogation of the underlying genetic mechanisms. In practice, its chitin exoskeleton has rendered previous attempts to visualize its internal organs comprehensively either not three-dimensional (3D) (for example, dissections) or relatively low-throughput (for example, tissue clearing).

We now circumvent this issue by scaling up micro-computed tomography (microCT)911, previously applied to smaller groups of flies12,13, to acquire 3D volumetric scans of larger numbers of intact adult Drosophila (Fig. 1a,b, Extended Data Fig. 1a,b, Supplementary Video 1 and Methods). This allows us to quantitatively describe and functionally interrogate the shape, position and relative arrangement of most organs.

Fig. 1. Sex differences in organ shape and interorgan adjacencies.

Fig. 1

a,b, Anteroposterior microCT slices overlaid with 3D organ reconstructions for male (a) and female (b) fruit flies. c, Gut regions (R1–R5) and shape descriptors: curvature (κ); torsion (τ); radius (r) of gut tube and tilt angle of midgut loops relative to main gut axis; t, tangent vector; n, normal vector; b, binormal vector; and s, arclength. d, Average gut centrelines. e,f, Gut shape variability PCA plot for whole gut (e) and midgut loops (f) with extremes of variation along each PC depicted (Methods). g, Relative and absolute lengths of anterior midgut, midgut loops and hindgut represented by colour shades. h, Male midgut loops are on average more tilted (horizontal) than females. i, Multidimensional scaling plot showing significant difference between male and female normalized gut curvature. j, Females have higher average normalized gut curvature for most of the midgut loop region. ko, 3D segmentation heatmaps showing gut proximity to testes (k), ovaries (l), CNS (m) and crop (n) and crop proximity to testes (o). pr, 3D segmentations showing crop contacting right ovary (p), crop duct proximity with gut and CNS (q) and crop duct configurations (r). p, Left ovary (dark brown) is on average larger than right ovary (light brown). q, Dorsal–ventral cross-sections through top and centre of proventriculus showing crop duct position asymmetry (red) relative to gut (orange) (right). Line graph: mean and standard deviation. Boxplot: line, median; box, first and third quartiles; whiskers, minimum and maximum. e,f,i, Ellipses represent 95% confidence spaces. n denotes number of biologically independent samples. Statistical significance was assessed using two-sided two-sample t-test (h) and two-sided paired t-test (p). ***P < 0.001. See Supplementary Information for organ contact frequencies, exact P values, statistical tests and sample sizes. Blue, males; orange, females. CNS, central nervous system comprising brain and ventral nerve cord; R, right; L, left; A, anterior; P, posterior; D, dorsal; V, ventral.

Source Data

Extended Data Fig. 1. Sex differences, variation and plasticity of gut shape.

Extended Data Fig. 1

a,b, Sample layout for microCT, showing parallel stacking of sample tubes (a) and a radiograph exemplifying a batch scan of multiple Drosophila specimens (b). c, PCA plot of shape variability in hindgut centrelines for wild-type OregonR. Male and female hindguts are significantly different in shape (Supplementary Table 5-6). d-f, Relative length (% of whole gut length) (d) and absolute length (e) of different gut regions and average gut radius (f) for OregonR. g-h, Gut torsion normalized by length (g) and radius (h) along midgut loop region for OregonR. i, PCA plot of wild-type CantonS whole gut shape variability showing male and female guts are significantly different in shape. j,k, Average CantonS gut centrelines (j) and gut length (k) showing differences between males and females. l, PCA plot of w1118 gut shape variability showing male and female guts are significantly different in shape. m,n, Average w1118 gut centrelines (m) and gut length (n) showing differences between males and females. o, Anteroposterior slices of female microCT scans overlaid with 3D reconstructions of the gut (orange) and ovaries (brown), showing differences in gut position between ovoD1 mutant females and controls. p, PCA plot of ovoD1 gut shape variability showing significant difference in shape to controls. q,r, Average ovoD1 mutant female gut centreline (q) and gut length (r) showing differences relative to controls. s, Anteroposterior slices of female microCT scans overlaid with 3D reconstructions of the gut (orange) and ovaries (brown), showing gut and ovary positions in flies starved for 48 h and controls. t, PCA plot of 48 hour-starved gut shape variability showing significant difference in shape to controls. u,v, Average gut centrelines (u) and gut length (v) of flies starved for 48 h, showing differences relative to controls. Line graphs: mean and standard deviation. Boxplots: line = median, box = first quartile and third quartile, whiskers = minimum and maximum. PCA plots: ellipses represent the 95% confidence space for each group. Diagrams represent the extremes of variation along each PC (see methods). n = number of biologically independent samples. Statistical significance was assessed using one-way ANOVA followed by Tukey post-hoc tests (d,e,r,v) or a two-sided two-sample t-test (f,k,n): non-significant (n.s.)= P > 0.05; ***= P < 0.001. See Supplementary Information for exact P-values, statistical tests and sample sizes. Males are in blue, females in orange and controls in lighter matching colours. Ctrl = control group (see genotypes in Supplementary Information).

Source Data

Gut shape is stereotypical and sexually dimorphic

We first focus on the intestinal tract, repurposing a neurite tracing tool to extract the centreline of the gut from our scans and convert it into a 3D shape (Fig. 1c,d and Methods). Geometric morphometric shape analysis reveals several recurrent features; as well as a previously described hindgut clockwise coil1416, we observe a sharp bend in the central R3 midgut region surrounded by two loops with antiparallel turning angles. As a result of this configuration, two regions of the main digestive portion of the intestine (midgut R2 and R4 regions) which might be assumed to be apart are, in fact, stacked together (Fig. 1c,d). More unexpectedly, we find that both the shape of these midgut loops, the hindgut and that of the intestine as a whole are sexually dimorphic (Fig. 1d–f, Extended Data Fig. 1c, Supplementary Tables 16 and Supplementary Video 1). Female guts are longer and thicker, as might be expected from their overall larger size17 (Extended Data Fig. 1d–f) but this is not allometric: the sex difference in gut length is accounted for by the length of the central midgut loops, whereas the length of the anterior midgut and hindgut are comparable between the sexes (and therefore relatively shorter in females) (Fig. 1g and Extended Data Fig. 1d,e). Sex differences in gut shape were also apparent in two other independent genetic backgrounds: wild-type CantonS flies, as well as flies harbouring a mutation in the white gene (w1118, commonly used in experiments involving transgenic flies) (Extended Data Fig. 1i–n and Supplementary Tables 710).

To understand what specific 3D features differ between males and females, we developed methods to quantify the local geometry of the gut along its entire length, parametrized by local curvature and torsion of the gut centreline, the radius of the gut tube along its length and the tilt of the midgut loops relative to the gut longitudinal axis (Fig. 1c gives definitions and Methods describe algorithms used). Whilst the average torsion of the gut is comparable between males and females (Extended Data Fig. 1g), they differ in several shape features: female guts have a larger radius and their midgut loops have higher curvature and are less tilted than those of males (Fig. 1h–j and Extended Data Fig. 1f,h). Sex differences in gut shape and curvature are, to some extent, independent of sex differences in gut length: they are still apparent when curvature is normalized by length (Fig. 1i,j) and persist in female flies in which the length of the female gut has been genetically or environmentally shortened to be more comparable to that of males (ovoD1 mutant flies18 and flies starved for 48 h19, respectively; Extended Data Fig. 1o–v and Supplementary Tables 1113).

Together, these data show that the intestinal tract of adult Drosophila has a consistent yet sexually dimorphic 3D shape.

Organ adjacencies are stereotypical and sexually dimorphic

As well as enabling investigation of the geometry of individual organs, our volumetric scans provide the opportunity to explore organ adjacencies in 3D. To this end, we segmented all visible organs and repurposed methods normally used in computer graphics for comparing surface mesh reconstructions to describe and quantify organ proximity (Methods). This revealed that organs are tightly packed in the body cavity (Fig. 1a,b), with some interorgan distances lying in the less than 10 μm range (Supplementary Table 14). Our analysis confirmed proximity between the testes and posterior midgut in males20 and further revealed that this same intestinal region is adjacent to the left ovary in females (Fig. 1k,l, Extended Data Fig. 2a–d and Supplementary Table 14). We also observed unexpected adjacencies and previously undescribed left–right asymmetries. Indeed, the anterior portion of the small intestine abuts the abdominal ganglion of the central nervous system (Fig. 1m). The stomach-like crop is adjacent to the central loops of the small intestine, to the right ovary in females and to the testes in males (Fig. 1n–p, Extended Data Fig. 2e,f and Supplementary Table 14). Both the crop position and the ovary volume (and testes position21,22 but not the testes volume) are asymmetric. Indeed, the crop duct typically (but not always) emanates from the left side of the foregut–midgut junction then turns towards the right side of the midgut and (possibly consistent with ref. 23) the left ovary is on average larger and less likely to make contact with the crop than is the right ovary (Fig. 1p–r and Extended Data Fig. 2g–i).

Extended Data Fig. 2. Multi-organ analyses.

Extended Data Fig. 2

a-f, Gut proximity to testes apical tip (a-b), testes (c), ovaries (d) and crop (e-f) in wild-type OregonR flies, shown by heatmap on representative 3D segmentation of the gut (a,e, Key in Fig. 1) and by plotted distance along the whole gut length (b,c,d,f). g, 3D volume segmentation showing crop duct proximity with gut and CNS in males (left). Dorsal-ventral cross-sectional views through upper thorax at top and centre of the proventriculus showing asymmetry of crop duct position (red) relative to gut (orange, right). h, 3D volume segmentation showing crop duct configurations and anterior midgut of OregonR females. i, 3D segmentation of male genital tract including testes (blue), accessory glands, ejaculatory duct and ejaculatory bulb (shades of brown). Volume of left and right testes is not significantly different. j, Gut proximity to ovaries in ovoD1 mutant and control females, shown by plotted distances to positions along the whole gut length. k-l, Ovary (k) and gut (l) volumes in ovoD1 mutant females and controls. m, Gut proximity to ovaries in 48 hour-starved and control females, shown by plotted distances to positions along the whole gut length. n-o, Ovary (n) and gut (o) volumes in 48 hour-starved females and controls. p-r, Gut length (p), total gonad volume (q) and crop volume (r) for OregonR males and females. (These data were used in Procrustes ANOVA to assess constraint on gut shape, see Supplementary Tables 1719). Line graphs: mean and standard deviation. Boxplots: line = median, box = first quartile and third quartile, whiskers = minimum and maximum. n = number of biologically independent samples. Statistical significance was assessed using two-sided paired t-test (i) or a two-sided two-sample t-test (k,l,n-r): non-significant (n.s.) = P > 0.05; *** = P < 0.001. See Supplementary Information for exact organ contact frequencies, P-values, statistical tests and sample sizes. Males are in blue, females in orange and controls in lighter matching colours. Ctrl = control group (see genotypes in Supplementary Information).

Source Data

In many animals, including flies and humans, organ size and volume remain plastic in adult life; it is conceivable that such plasticity impacts the stereotypical organ distances and adjacencies we have observed. To begin to explore this idea, we sought to reduce organ size in adult females in two independent ways: nutritionally (by starving the flies for 48 h) and genetically (in female flies harbouring an ovoD1 mutation which reduces ovary size and gut length18,24) (Extended Data Figs. 1r,v and  2k,l,n,o). Notably, organ shrinkage does not invariably result in increased interorgan distances: although the distance between gut and ovary was increased in ovoD1 mutant females as expected, it was preserved in starved females (Extended Data Fig. 2j,m and Supplementary Tables 15 and 16).

Together, these data show that organ adjacencies are stereotypical and sexually dimorphic, and can be spared or modulated depending on context.

Extrinsic control of gut shape by a vascular-like organ

Our analysis of ovoD1 mutant female flies with reduced organ volumes (Extended Data Figs. 1o–r and 2j–l and Supplementary Tables 11 and 15) suggests that the tight packing of organs in the body cavity can act as a significant geometrical constraint on organ shape. Consistent with this idea, statistical analysis of how gut shape covaries with the volume of adjacent organs (Extended Data Fig. 2q,r) indicates that sex differences in gut shape partly ensue from sex differences in physical constraints provided by the tight packing of neighbouring organs in the confined space of the abdomen (Supplementary Tables 1719).

However, this covariation analysis revealed residual, unaccounted for variability, even after considering the contributions of gut length, the volume of other organs and potential batch effects (Extended Data Fig. 2p–r and Supplementary Tables 1719): an idea further supported by the finding that sex differences in gut shape are still apparent in starved flies or ovoD1 flies with greatly reduced ovaries (Extended Data Fig. 1p,q,t,u and Supplementary Tables 1113). We had observed that intestinal regions with high curvature (for example, the central midgut loops) are more profusely populated by terminal branches of the tracheal system: a vascular-like system of interconnected tubes which delivers oxygen to insect organs (Fig. 2a,b and Extended Data Fig. 3a–c). Tracheal branches in this region often span adjacent loops, suggestive of a role for trachea in mechanically holding together apposed gut regions (Fig. 2c). To begin to test a potential role for the tracheal system in extrinsically controlling intestinal shape, we acutely ablated terminal tracheal branches in adult flies. This was achieved by expressing the pro-apoptotic BCL2-associated X (Bax) protein specifically in adult terminal tracheal cells. Effective and selective ablation was confirmed with markers for both the terminal tracheal cell nuclei and branches (Drosophila serum response factor (DSRF) staining and trh(GMR14D03)-GAL4-driven CD8::GFP expression, respectively)25 (Fig. 2d and Extended Data Fig. 3d). Adult-specific loss of the terminal tracheal branches which populate the intestine resulted in a discernible effect on gut shape in both male and female flies (Fig. 2e, Extended Data Fig. 3d and Supplementary Tables 20 and 21). This effect was particularly prominent in the densely tracheated central midgut loops, which had become more relaxed and less tightly packed (Fig. 2f,g and Extended Data Fig. 3d).

Fig. 2. Tracheal branches hold gut loops together.

Fig. 2

a, Tracheal branches visualized in different gut regions: sparse and parallel to length of R1; dense and perpendicular to length of R3–R4; sparse and perpendicular to length of R5. b, Correlation between average intensity of tracheal signal from btl>myr::GFP females and average gut curvature of wild-type OregonR females at the same relative midgut positions. c, Tracheal branches span across gut loops. d, The trhTS>Bax expression reduces tracheal terminal branches (top) and numbers of DSRF-positive nuclei (bottom) in female midguts. e, Average trhTS>Bax gut centrelines show differences in gut shape relative to controls. f, Multidimensional scaling plot showing change in gut curvature normalized by gut length in trhTS>Bax compared to controls. g, The trhTS>Bax guts show reduced average curvature normalized by gut length relative to controls. h, Hand>bnlRNAi expression reduces tracheal branches (left top, quantified in right top) and number of DSRF-positive nuclei (left bottom, quantified in right bottom) in female midguts. n values are shown. i, Average Hand>bnlRNAi gut centrelines showing differences in gut shape relative to controls. j, Multidimensional scaling plot showing change in gut curvature normalized by gut length between controls versus Hand>bnlRNAi. k, Hand>bnlRNAi guts show reduced average curvature normalized by gut length relative to controls. Line graph: mean and standard deviation. Boxplots: line, median; box, first quartile and third quartile; whiskers, minimum and maximum. Multidimensional scaling plot: ellipsoids represent 95% confidence space for each group, arrows represent shift in mean from control to experimental manipulation. n denotes number of biologically independent samples. Statistical significance was assessed using one-way ANOVA followed by Tukey post hoc tests (h). **P < 0.01; *** P < 0.001. Supplementary Information gives exact P values, statistical tests and sample sizes. Males, blue; females, orange; controls, lighter matching colours. Ctrl, control group (see genotypes in Supplementary Information). Scale bars, 200 μm.

Source Data

Extended Data Fig. 3. Genetic targeting of intestinal trachea.

Extended Data Fig. 3

a-c, Similar pattern of gut tracheation and gut curvature, shown by average intensity of tracheal signal from btl>myr::GFP and average gut curvature of OregonR (lighter matching colours) along the midgut for males (a) and females (b) and correlated at same relative midgut positions for males (c). d, trhTS>Bax reduces tracheal terminal branches (top) and number of DSRF-positive nuclei (middle) in male midguts. PCA plot of trhTS>Bax gut shape variability (bottom left). Groups are significantly different in shape (Supplementary Tables 20,21). trhTS>Bax have differences in gut length relative to controls (bottom right). e, Hand>bnlRNAi reduces trachea in male midguts, shown by decrease in trachea branches (top), or in number of DSRF-positive nuclei (middle). PCA plot of Hand>bnlRNAi gut shape variability (bottom left). Groups are significantly different in shape (Supplementary Tables 24-25). Hand>bnlRNAi show marginal differences in female gut length relative to controls (bottom right). f, HandTS>bnlRNAi reduces trachea in the midgut, shown by decreased trachea branches (top) and quantified by the total tracheal branch length (bottom). g-h, vm>bnlRNAi decreases number of DSRF-positive nuclei (g, quantified in h). i, PCA plot of vm>bnlRNAi gut shape variability. Groups are significantly different in shape (Supplementary Tables 26-27). j,k Average vm>bnlRNAi gut centrelines (j) and gut length (k) showing altered shape but no differences in gut length relative to controls. Line graphs show mean. Boxplots: line = median, box = first quartile and third quartile, whiskers = minimum and maximum. PCA plots: ellipses represent the 95% confidence space for each group. Diagrams represent the extremes of variation along each PC (see methods). n = number of biologically independent samples. Statistical significance was assessed using one-way ANOVA followed by Tukey post-hoc tests (d-f,h,k): non-significant (n.s.) = P > 0.05; ** = 0.01 > P > 0.001; *** = P < 0.001. See Supplementary Information for exact P-values, statistical tests and sample sizes. Males are in blue, females in orange and controls in lighter matching colours. Ctrl = control group (see genotypes in Supplementary Information). Scale bars: 200 μm.

Source Data

Although these experiments suggested that tracheal branches hold gut loops together, they also ablated the terminal tracheal branches of other organs and reduced gut length (Extended Data Fig. 3d and data not shown). We therefore sought to more specifically target intestinal tracheal branches and considered gut-borne signals that might sustain intestinal tracheation. The fibroblast growth factor (FGF) ligand Branchless (Bnl) is expressed in the intestine and has been shown to promote tracheal branching2630. Using a previously generated reporter of endogenous bnl expression (bnl-LexA)31, we revealed a regional and temporally regulated pattern of bnl expression: transiently in intestinal muscles soon after adult emergence and, subsequently, in intestinal enterocytes (Fig. 3a). We validated this intestinal expression pattern by generating a new endogenous bnl reporter which does not delete any bnl exons (Extended Data Fig. 4a,c,d). In normal homoeostatic conditions and in contrast to regenerative contexts28,30, no bnl expression was observed in trachea themselves or other intestinal cell types using either reporter (Fig. 3a and Extended Data Fig. 4a,c,d and data not shown). However, bnl expression is higher in gut regions which will become more highly and densely tracheated (Extended Data Fig. 4b): might gut-derived Bnl control the tracheation of the intestine? Temporal and cell-type-specific downregulation experiments using Hand-Gal4 or vm(GMR13B09)-Gal4 (two independent muscle drivers; see Extended Data Fig. 4e,f for their expression in gut muscles and other tissues) indicated that depletion of the Bnl ligand pool made by intestinal muscles during pupation/early adult life (but not that made by enterocytes later on in adult life; Extended Data Fig. 5a,b,e,f and Supplementary Tables 22 and 23) resulted in complete and specific loss of intestinal terminal tracheal cells, as revealed by markers for both the terminal tracheal cell nuclei and branches (DSRF staining and QF6-driven mtdTomato, respectively) (Fig. 2h and Extended Data Fig. 3e–h and data not shown). Akin to the effects observed on acute tracheal ablation, loss of intestinal terminal tracheal cells impacted several features of gut shape, including a reduction in curvature and relaxation of the midgut loops (Fig. 2i–k, Extended Data Fig. 3e,i–k and Supplementary Tables 2427). We ruled out the possibility that bnl affects gut shape by acting on the gut itself by downregulating breathless (btl, coding for the receptor for Bnl) in gut epithelial cells (mex1, esg>btlRNAi). In contrast to the tracheal manipulations, this had no effect on gut tracheation or shape (Extended Data Fig. 5c,d,g,h and Supplementary Tables 28 and 29).

Fig. 3. Sex differences in tracheal branching and gut muscle-derived bnl expression.

Fig. 3

a, The bnl expression in guts at 5 h (top) and 7 days (bottom) after pupal eclosion (APE), visualized by bnl-LexA>myr::GFP expression (left) and quantified along midgut length (right). b, RNA-seq profiling of male and female dissected midguts, visualized as the log2-transformed fold change in expression between groups plotted against adjusted (adj.) P value (using raw transcriptomics data from ref. 17). Genes significantly upregulated (P < 0.05) in males and females are coloured in blue and orange, respectively. The bnl expression is significantly upregulated in females. c, Labelling of tracheal terminal cells by DSRF staining in OregonR flies shows difference in tracheal terminal cell number between male and female guts (quantified in right). d, Trachea labelled with btl>myr::GFP, showing differences between males and females. Quantifications show higher total tracheal length, tracheal coverage by gut area and tracheal branching (number of Sholl intersections) in females compared to males. Males have longer mean tracheal branch lengths than females. Line graphs: mean and standard deviation. Boxplots: line, median; box, first quartile and third quartile; whiskers, minimum and maximum. n denotes number of biologically independent samples. Statistical significance was assessed using two-sided two-sample t-tests (c,d). *P < 0.05; **P < 0.01; ***P < 0.001. See Supplementary Information for exact P values, statistical tests and sample sizes. Males, blue; females, orange. Scale bars, 200 μm.

Source Data

Extended Data Fig. 4. Expression of bnl and gut muscle drivers.

Extended Data Fig. 4

a, bnl expression (bnl-Gal4>StingerGFP) in the gut epithelium and muscles at different stages of development: in larval enterocytes (top left), in adult gut muscle at 5 h after pupal eclosion (APE) (middle left) and in adult enterocytes at 7 days APE (bottom left). Schematic shows bnl locus and the position of T2A-Gal4 insertion (top right). GFP intensity quantified at 5 h APE (middle right) and 7 days APE (bottom right). b, Histogram of Pearson correlation coefficients between gut curvature and bnl intensity along midgut. Grey bars represent correlations with a “control” bnl intensity generated by fitting an autoregressive process to the true data (see Methods). c, bnl expression (bnl-Gal4>StingerGFP) at 5 h APE in gut R3 region showing enterocyte expression (top) and R2 region showing muscle expression (bottom). d, bnl expression (bnl-Gal4 > StingerGFP) overlaps F-actin-rich muscle layer, shown by Phalloidin staining (Phal), but not intestinal stem cells or enteroblasts, shown by horseradish peroxidase staining (HRP), nor enteroendocrine cells, shown by Prospero staining (Pros). e, Hand expression (Hand-Gal4>myr::GFP) in: adult brain, ventral nerve cord, heart, indirect flight muscle, fat body, crop, hindgut, ovaries and testes. f, vm expression (vm-Gal4>myr::GFP) in: adult brain, ventral nerve cord, heart, Malpighian tubules, fat body, crop, hindgut, ovaries and testes. Line graphs: mean and standard deviation. n = number of biologically independent samples. See Supplementary Information for exact P-values, statistical tests and sample sizes. Males are in blue and females in orange. Scale bars: (a,c) 200 μm, (d) 50 μm, (e,f) 100 μm.

Source Data

Extended Data Fig. 5. Lack of epithelial contribution to gut shape phenotypes.

Extended Data Fig. 5

a,b, bnl downregulation from gut enterocytes (mex1>bnlRNAi) does not reduce tracheal branches (QF6>mtdTomato) (top (a), quantified in left (b)), or number of DSRF-positive nuclei (bottom (a), quantified in right (b)). c-d, btl downregulation from gut epithelium for 3 days prior to pupal eclosion (mex1,esgTS>btlRNAi) does not reduce tracheal branches (QF6>mtdTomato) (top (c), quantified in left (d)), or number of DSRF-positive nuclei (bottom (c), quantified in right (d)). e, PCA plot of mex1>bnlRNAi gut shape variability showing no significant difference in shape to controls. f, Average mex1>bnlRNAi gut centrelines show no differences in shape relative to controls. g, PCA plot of mex1,esgTS>btlRNAi gut shape variability showing no significant difference in shape to controls. h, Average mex1,esgTS>btlRNAi gut centrelines show no significant differences in shape relative to controls. Boxplots: line = median, box = first quartile and third quartile, whiskers = minimum and maximum. PCA plots: ellipses represent 95% confidence space for each group. Diagrams represent the extremes of variation along each PC (see methods). n = number of biologically independent samples. Statistical significance was assessed using one-way ANOVA followed by Tukey post-hoc tests (b,d): non-significant (n.s.) = P > 0.05. See Supplementary Information for exact P-values, statistical tests and sample sizes. Males are in blue, females in orange and controls in lighter matching colours. Ctrl = control group (see genotypes in Supplementary Information). Scale bars: 200 μm.

Source Data

Finally, we also conducted laser ablations of the tracheal branches which span adjacent midgut regions in dissected guts ex vivo. We observed ablation-induced tracheal recoil in 22 out of 25 guts (Supplementary Video 2 and data not shown), confirming that trachea hold tension, at least ex vivo.

Together, these experiments indicate that gut shape is actively maintained beyond development by an extrinsic tubular network which mechanically holds the loops together.

Muscle–vessel crosstalk renders gut shape sexually dimorphic

The tracheal ablation experiments revealed a role for trachea in maintaining gut shape but a question remained as to how gut shape becomes sex-biased. Closer inspection of the intestinal tracheal system indicated that it is sexually dimorphic at several levels. Females have more terminal tracheal cells on their midgut, as shown by quantifications of two independent nuclear markers (DSRF staining and nuclear GFP expressed from btl-GAL4) (Fig. 3c and Extended Data Fig. 6a). Four independent membrane labels (membrane reporters expressed from btl-GAL4, QF6, DSRF-GAL4 and trh-GAL4; Fig. 3d and Extended Data Fig. 6b) further indicate that terminal tracheal cells are also more highly branched in females. The scarcer branches of males are slightly longer than those of females, potentially suggestive of a tiling/contact inhibition mechanism (Fig. 3d and Extended Data Fig. 6b) but female guts have increased tracheal coverage, even after accounting for their larger size (Fig. 3d). (Of note, we have observed that gut tracheation is reduced in the white genetic background, commonly used as a ‘wild-type’ background, relative to truly wild-type flies. The sexual dimorphism in all these features was nonetheless apparent in both genetic backgrounds (Fig. 3c and Extended Data Fig. 6a) but we routinely ensure that all experimental flies are matched to at least one control with regard to the presence/absence of the white gene for this reason).

Extended Data Fig. 6. Sex differences in the intestinal tracheal network.

Extended Data Fig. 6

a, Trachea labelled by DSRF staining in w1118 (top) and btl>StingerGFP (bottom) show difference in tracheal terminal cell number between male and female guts (quantifications in right). b, Trachea labelled by QF6>mtdTomato (top), DSRF > CD8::GFP (middle) or trh > CD8::GFP (bottom), showing higher total tracheal length and tracheal branching (no. sholl intersections) in females compared to males and shorter mean tracheal branch lengths in females compared to males (except in QF6>mtdTomato) (quantifications shown in right). Boxplots: line = median, box = first quartile and third quartile, whiskers = minimum and maximum. n = number of biologically independent samples. Statistical significance was assessed using two-sided two-sample t-tests (a,b): non-significant (n.s.) = p > 0.05; ** = 0.01>p > 0.001; *** = p < 0.001. See Supplementary Information for exact p-values, statistical tests and sample sizes. Males are in blue, females in orange. Scale bars: 200 μm.

Source Data

Might sex differences in tracheation extrinsically impart sex differences to gut shape? We first proposed that the sex of the trachea might be cell-intrinsically controlled by the sex-determination pathway; most sex differences in Drosophila result from sex-chromosome-dependent, female-specific expression of the Sex lethal (Sxl) RNA-binding protein. Sxl induces female-specific alternative splicing of the transformer (tra) gene, leading to a functional, female fate-determining Tra protein (TraF) only in females3239. Having detected TraF expression in female tracheal cells (data not shown), we sought to masculinize tracheal cells in females by downregulating tra. However, and in contrast to its masculinizing effects on other cell types such as gut stem cells17, tracheal-specific downregulation of tra using two independent RNAi lines failed to masculinize terminal tracheal cell number and we observed no or inconsistent masculinization of tracheal branching or gut shape (Extended Data Fig. 7a–g and Supplementary Tables 30 and 31).

Extended Data Fig. 7. tra-mediated tracheal masculinizations.

Extended Data Fig. 7

a–d, Expression of two traRNAi lines in tracheal cells, by means of btl > TRiPJF03132 (a,b) and btl > GD764 (c,d), does not effectively masculinize midgut trachea, as seen by trachea labelled by btl>myr::GFP (top (a,c), quantified in left (b,d)), or by DSRF-positive tracheal terminal cell nuclei (bottom (a,c), quantified in right (b,d)). e, PCA plot of btl>traRNAi.GD764 gut shape variability showing no significant difference in shape to controls. f,g, Average btl>traRNAi.GD764 gut centrelines (f) and gut length (g) show no differences relative to controls. We note that we did not use a UAS-Dcr-2 transgene to enhance tra downregulation as its expression in trachea results in deleterious phenotypes in the absence of other transgenes. Boxplots: line = median, box = first quartile and third quartile, whiskers = minimum and maximum. PCA plots: ellipses represent the 95% confidence space for each group. Diagrams represent the extremes of variation along each PC (see methods). n = number of biologically independent samples. Statistical significance was assessed using one-way ANOVA followed by Tukey post-hoc tests (b,d,g): non-significant (n.s.) = p > 0.05; * = 0.05>p > 0.01; *** = p < 0.001. See Supplementary Information for exact p-values, statistical tests and sample sizes. Males are in blue, females in orange and controls in lighter matching colours. Ctrl = control group (see genotypes in Supplementary Information). Scale bars: 200 μm.

Source Data

Our previous transcriptomics experiments17 had suggested sex-biased expression of the gut-derived Bnl ligand which promotes tracheal growth (Fig. 3b). We confirmed and extended this observation using our bnl reporters; bnl expression is strongly female-biased, first in gut muscles after pupation and in enterocytes thereafter (Fig. 3a and Extended Data Fig. 4a,c). Because of the effects on tracheal survival observed following complete depletion of gut muscle-derived Bnl (Fig. 2h and Extended Data Fig. 3e), we wondered whether the sex differences in gut-derived Bnl may extrinsically sculpt sex differences in the tracheal network. To test this, we sought to masculinize—rather than totally deplete as in our previous experiment—bnl expression in gut muscles. Gut muscle-specific downregulation of tra or its upstream regulator Sex lethal (Sxl) had no effects in male flies but effectively masculinized bnl expression levels in the gut muscles of female flies (Fig. 4a,b and Extended Data Fig. 8a,b). Female flies with masculinized bnl expression had a masculinized (reduced) gut tracheal network, both at the level of terminal tracheal cell number and tracheal branching (Fig. 4a,c and Extended Data Fig. 8a,c). As expected, this manipulation had no effect on the tracheal network of male flies (Fig. 4a,c and Extended Data Fig. 8a,c). Concurrent with these tracheal masculinizations, gut shape was also specifically affected in female flies with SxlRNAi- or traRNAi-driven masculinized bnl expression: reduced curvature was apparent in the midgut loops of female but not male flies (Fig. 4d–f, Extended Data Fig. 8d–i and Supplementary Tables 3235). Conversely, ectopic expression of the female determinant Sxl in gut muscles had no effect on female flies but resulted in feminization (increase) of all these three features in male flies: bnl expression in the gut muscles, terminal tracheal cell number and tracheal branching (Fig. 4g–i). Accordingly, gut shape was specifically affected in male flies (Fig. 4j–l, Extended Data Fig. 8j,k and Supplementary Tables 36 and 37).

Fig. 4. Sex reversals of intestinal muscles impact tracheal branching and gut shape.

Fig. 4

ac, Hand>SxlRNAiGL0034 masculinizes bnl expression at 5 h APE, seen by bnl-lexA>myr::GFP (top of a, quantified in b) and reduces the number of DSRF-positive tracheal terminal cells in females (bottom of a, quantified in c). d, Average centrelines of Hand>SxlRNAi guts, showing altered shape in central midgut region of females relative to controls. e, Multidimensional scaling plot showing change in gut curvature normalized by gut length for Hand>SxlRNAi females compared to controls and no change in males. f, Female Hand>SxlRNAi show reduced average gut curvature normalized by gut length relative to controls. gi, Hand>Sxl feminizes bnl expression at 5 h APE, seen by bnl-lexA>myr::GFP (top of g, quantified in h) and increases the number of DSRF-positive tracheal terminal cells in males (bottom of g, quantified in i). j, Average centrelines of Hand>Sxl guts showing altered shape in central midgut region of males relative to controls. k, Multidimensional scaling plot showing change in gut curvature normalized by gut length for Hand>Sxl males to controls and no change in females. l, Male Hand>Sxl show increased average gut curvature normalized by gut length. Line graphs: mean and standard deviation. Boxplots: line, median; box, first quartile and third quartile; whiskers, minimum and maximum. Multidimensional scaling plots: ellipsoids represent 95% confidence space for each group, arrows represent shift in the mean from control to experimental manipulation. n = number of biologically independent samples. Statistical significance in c and i was assessed using one-way ANOVA followed by Tukey post hoc tests. NS, not significant (P > 0.05). ***P < 0.001. See Supplementary Information for exact P values, statistical tests and sample sizes. Males, blue; females, orange; controls, lighter matching colours (see genotypes in Supplementary Information). Scale bars, 200 μm.

Source Data

Extended Data Fig. 8. Genetic sex reversals of intestinal muscles.

Extended Data Fig. 8

a-c, Hand>traRNAi.JF03123 masculinizes bnl expression at 5 h after pupal eclosion (APE), seen by bnl-lexA>myr::GFP (top (a), quantified in (b)) and reduces tracheal branches (QF6>mtdTomato) (middle (a), quantified in left (c)) and the number of DSRF-positive nuclei (bottom (a), quantified in right (c)). d, PCA plot of Hand>traRNAi gut shape variability. Females are significantly different in shape to controls (Supplementary Tables 32-33). e, Average Hand>traRNAi gut centrelines show altered shape in the central midgut region in females relative to controls. f, Multidimensional scaling plot representing similarity in gut curvature normalized by gut length between Hand>traRNAi and controls. Arrows represent shift in the mean from control to Hand>traRNAi. g, Hand>traRNAi females have reduced average gut curvature normalized by gut length along midgut loop region relative to controls. h, PCA plot of Hand>SxlRNAi gut shape variability. Groups are significantly different in shape (Supplementary Tables 34-35). i, Hand>SxlRNAi guts show differences in length in females relative to controls. j, PCA plot of Hand>Sxl gut shape variability. Males are significantly different in shape to controls (Supplementary Tables 36-37). k, Hand>Sxl guts show no differences in length relative to controls. Line graphs: mean and standard deviation. Boxplots: line = median, box = first quartile and third quartile, whiskers = minimum and maximum. d,f,h,j, Ellipses represent 95% confidence space for each group. Diagrams represent the extremes of variation along each PC (see methods). n = number of biologically independent samples. Statistical significance was assessed using one-way ANOVA followed by Tukey post-hoc tests (c,i,k): non-significant (n.s.) = p > 0.05; * = 0.05>p > 0.01; *** = p < 0.001. See Supplementary Information for exact p-values, statistical tests and sample sizes. Males are in blue, females in orange and controls in lighter matching colours. Ctrl = control group (see genotypes in Supplementary Information). Scale bars: 200 μm.

Source Data

Together, these experiments show sex differences in the genetic and mechanical crosstalk between the gut and its trachea: gut muscles render trachea sexually dimorphic through their sex differences in Bnl expression levels. In turn, the tracheal sexual dimorphism maintains gut shape in a male or female 3D configuration.

Gut–trachea coupling is physiologically significant

Finally, we explored the physiological significance of the coupling between gut and trachea. We first analysed flies with specific loss of intestinal trachea. This was achieved by gut muscle-specific downregulation of the FGF ligand Bnl, Hand>bnlRNAi: the genetic manipulation which more specifically affects gut trachea without affecting the gut itself (gut length is unaffected in males and only modestly affected in females) or other trachea in the fly (as would be the case for the tracheal ablation, trhTS>Bax). Notably, even in the presence of trachea in control animals, expression of hypoxia reporters is higher in the midgut relative to other organs (Extended Data Fig. 9a). Gut tracheal ablation failed to further upregulate expression of these hypoxia reporters (Fig. 5a,b and Extended Data Fig. 9b), arguing against oxygen delivery being the main role of intestinal trachea in normal, homoeostatic conditions. Consistent with this idea, other intestinal features such as transit, excretion and intestinal stem cell proliferation were largely unaffected in flies lacking gut trachea during normal homeostasis (Extended Data Fig. 10a,e,f). Absence of gut trachea does, however, impact whole-body physiology, particularly in females and in response to challenges. Specifically, it differentially impacts two hyperproliferative responses: on the one hand, it increases age-induced hyperproliferation40 in the intestinal epithelium (Fig. 5c). By contrast, it reduces damage-induced intestinal proliferation in flies fed a detergent (dextran sulfate sodium (DSS))/sucrose mixture41 relative to the baseline intestinal proliferation observed in sucrose-fed flies (Fig. 5d). And although it does not affect food intake (Extended Data Fig. 10b–d), it leads to reduced ability to withstand starvation in both sexes (Extended Data Fig. 10g,h) and blunts reproductive output in females (Fig. 5e): a phenotype which was also apparent in female flies with masculinized gut muscles (Hand>SxlRNAi) (Fig. 5f).

Extended Data Fig. 9. Hypoxia reporters in the presence and absence of trachea.

Extended Data Fig. 9

a, Expression of SimaODD::GFP across several tissues (brain, midgut and gonads), showing higher GFP levels in the adult midgut of both males and females. b, Expression of bnlRNAi from gut muscle (Hand>bnlRNAi) in males does not change levels of SimaODD::GFP (top) nor Ldh::GFP (bottom) compared to controls. Ctrl = control group (see genotypes in Supplementary Information). Scale bars: 200 μm.

Fig. 5. Physiological importance of gut trachea.

Fig. 5

a,b, Expression of bnlRNAi from gut muscle (Hand>bnlRNAi) does not change amounts of SimaODD::GFP (top of a, quantified in top of b) nor Ldh::GFP (bottom of a, quantified in bottom of b). c, Expression of bnlRNAi from gut muscles (Hand>bnlRNAi) increases number of mitoses in 20-day-old flies, seen by number of pH 3-positive cells. d, Hand>bnlRNAi expression in DSS-treated guts reduces mitotic indices in midgut of 7-day-old females relative to DSS-treated controls, seen by number of pH 3-positive cells. e,f, Expression of Hand>bnlRNAi (e) or Hand>SxlRNAi (f) reduces fecundity in females relative to controls, as measured by the number of laid eggs per fly on days 2, 5 and 8 after mating. GFP intensity and GFP/RFP ratio graphs show mean and standard deviation. Boxplots: line, median; box, first quartile and third quartile; whiskers, minimum and maximum. n denotes number of biologically independent samples. Statistical significance was assessed using one-way ANOVA followed by Tukey post hoc tests (cf). *P < 0.05; **P < 0.01; ***P < 0.001. See Supplementary Information for exact P values, statistical tests and sample sizes. Males, blue; females, orange; controls, lighter matching colours (see genotypes in Supplementary Information). Scale bars, 200 μm.

Source Data

Extended Data Fig. 10. Functional interrogation of flies with reduced gut tracheation.

Extended Data Fig. 10

a, Expression of bnlRNAi from gut muscles (Hand>bnlRNAi) does not change mitotic indices in midgut of 7-day-old flies seen by number of pH3-positive cells. b, Hand>bnlRNAi expression marginally reduces total number of sips during 1 h of feeding, as recorded in a FlyPad device (see Methods). c-d, Hand>bnlRNAi expression does not alter FCF blue-dyed food contents in gut of adult flies fed ad libitum (c) or starved for 16 h and re-fed for 15 min (d), as measured by blue dye absorbance at 634 nm from cleared homogenates of groups of 3 flies. e, Hand>bnlRNAi expression does not alter food transit time in gut, measured by percentage of flies with dyed food present in portions of the gut (midgut, hindgut and ampulla). Only size-matched guts are shown to rule out effects of gut size (see Methods). f, Hand>bnlRNAi expression does not alter the total number of faecal deposits, quantified by bromophenol blue-dyed deposits after 60 h of feeding (see Methods). g-h, Hand>bnlRNAi expression reduces survival in male (g) and female (h) flies starved in 1% agar relative to respective controls, shown by Kaplan-Meier survival curves. Boxplots: line = median, box = first quartile and third quartile, whiskers = minimum and maximum. n = number of biologically independent samples. Statistical significance was assessed using one-way ANOVA followed by Tukey post-hoc tests (a–d,f), logistic regression with Chi2 post-hoc tests (e) and log-rank test (g,h): non-significant (n.s.) = p > 0.05; * = 0.05>p > 0.01; ** = 0.01>p > 0.001; *** = p < 0.001. See Supplementary Information for exact p-values, statistical tests and sample sizes. Males are in blue, females in orange and controls in lighter matching colours. Ctrl = control group (see genotypes in Supplementary Information).

Source Data

Discussion

We have described and genetically interrogated a previously unrecognized level of organization: the stereotypical yet sexually dimorphic spatial arrangement of internal organs. Our findings provide an example of bidirectional muscle–vessel mechanochemical communication which renders organ shape different between the sexes. Organ networks, such as the insect trachea or the vertebrate vasculature, reach virtually all other tissues in the body. Hence, sex differences in their anatomy and/or activity could result in sex differences in the anatomy and function of many—perhaps all—of their target cells and organs. In this regard, human somatic organs show anatomical sexual dimorphisms which cannot always be explained by the male–female difference in body size42. Hence, alongside intrinsic sex chromosome and extrinsic sex hormone effects, possible contributions of ‘vascular sex’ to the sex of other somatic organs deserves further investigation.

Tracheal branches are known to be remodelled by nutrient scarcity, infection and tumourigenesis28,30,43. In light of the increased intestinal stem cell proliferation we have observed in aged flies lacking gut trachea, possible remodelling and contributions of trachea to age-related intestinal dysplasia deserve further investigation, particularly given its known female bias4447. Extrinsic, trachea-like mechanisms also instruct gut looping during embryogenesis in both flies and vertebrates4852. A case in point—and one particularly reminiscent of gut–tracheal contacts—is the physical mechanism enabled by the attachment of the gut tube to the dorsal mesentery in vertebrates and driven by the differential growth of these two tissues48,50,52. Our findings raise the possibility that the shape and function of vertebrate guts remain sensitive to the plasticity of tethering systems beyond development, providing one reason why gut shape may need to be extrinsically controlled. Differences in these tethering systems (trachea, vasculature and mesentery) could also account for differences in organ shape between related species.

Why do trachea make the gut loop in a male or female way? Although trachea are the respiratory system of insects, our results argue against an oxygen-delivering role for gut trachea in homoeostatic conditions. Instead, in the absence of gut trachea, we find that the gut changes its shape and female fecundity is reduced. We suggest that trachea maintain (or, when required, change) the 3D configuration of organs to enable or constrain paracrine and/or contact-based exchange of peptide ‘hormones’, metabolites and/or mechanical cues in or between them. If secreted, signals could be confined spatially by the fact that adult haemolymph is very viscous and, in some areas of the body cavity, must pass through very narrow spaces between organs5355, potentially rendering insect circulation less ‘open’ than once thought, at least in adults. Proximity-enabled, spatially confined communication could help explain paradoxes which have emerged from the study of ‘systemic’ signals. Molecules such as cytokines, amino acids or insulin-like peptides are reported to relay different information across different organs20,43,5661; how do target organs know where these ‘promiscuous’ signals come from and what response they are meant to elicit? We propose that the same signal can be used to convey a different message between organs A and B and between organs A and C because C is never in reach of A.

This logic might be relevant beyond animals with an open circulation: the position of specific organs or organ portions relative to the direction of circulation and/or innervation could, in some cases, restrict their ability to communicate. A paradigm in which to explore this idea is provided by the physiological connections between the mammalian intestine and neighbouring organs, such as the pancreas; these involve both secreted signals and direct innervation across organs that bypasses the central nervous system6265. Local interactions might also be significant in disease or therapy: might some of the benefits of certain types of bariatric surgery, in which the connection of specific gastrointestinal tract regions is surgically altered, result from altered gastrointestinal geometry? Similarly, disorders such as inflammatory bowel disease or colorectal cancer have regional and/or sex-biased incidence for reasons that are not fully understood6669. By considering organ and interorgan geometry in 3D, we hope that specific features of organ shape and/or position can help diagnose gastrointestinal disorders or even predict them ahead of their clinical manifestation.

Methods

Fly husbandry

Flies were raised on a standard cornmeal/agar diet (6.65% cornmeal, 7.15% dextrose, 5% yeast, 0.66% agar supplemented with 2.2% nipagin and 3.4 ml l−1 of propionic acid). All experiments were conducted at 25 °C, 65% humidity and on a 12 h light/dark cycle, unless otherwise stated. Flies were virgin and aged to 5 h or 7 days after eclosion for experiments, unless otherwise stated. Experimental and control flies were raised in identical conditions and processed at the same time. For example, for dissections, experimental and control flies, males and females were dissected and processed at the same time on the same slide. For microCT, they were fixed at the same time, mounted in the same tube and scanned at the same time in each batch.

Temperature-sensitive experiments

For expression of UAS-Bax to trigger apoptosis, flies were raised at 18 °C for 7 days after eclosion and then transferred to 29 °C for 3 days for transgene induction.

For expression of UAS-bnlRNAi in pupal stages and early adults, larvae were raised at 18 °C and shifted to 29 °C within the first 20 h of pupal formation and until 7 days after pupal eclosion.

For expression of UAS-btlRNAi in the gut epithelium or UAS-traRNAi in trachea, larvae were raised at 18 °C and shifted to 29 °C within the first 20 h of pupal formation and until 7 days after pupal eclosion.

Fly stocks

The following fly stocks were used in this study: Hand-Gal4[MI04106-TG4.0] (BDSC 66795), mex1-Gal4 (ref. 70), esg-Gal4 (ref. 71; NP7397), btl-Gal4 (ref. 72; DGGR 109128), trh-Gal4 (ref. 25; GMR14D03, BDSC 47463), vm-Gal4 (ref. 25; GMR13B09, BDSC 48547), DSRF-Gal4 (ref. 73; BDSC 25753), bnl-Gal4[MI00874-TG4.1] (this study, see below for details), bnl[lexA] (a gift from S. Roy; ref. 31), QF6 (a gift from J. Cordero; ref. 74), UAS-traRNAi.TRiPJF03132 (BDSC 28512), UAS-traRNAi.GD764 (VDRC 2560), UAS-SxlRNAi.TRiPGL00634 (BDSC 38195), UAS-bnlRNAi.GD3070 (VDRC 5730), UAS-btlRNAi.KK100331 (VDRC 110277), UAS-Bax (a gift from J. Cordero; ref. 75), UAS-myr(src)::GFP M7E (BDSC 5432), UAS-StingerGFP (ref. 76; BDSC 84278), UAS-Flybow.1.1B (used as 10xUAS-CD8::GFP; ref. 77; BDSC 56803), QUAS-mtdTomato-3xHA (ref. 74; BDSC 30005), 13xlexAop2-IVS-myr::GFP (ref. 78; BDSC 32209), OregonR (ref. 79), w1118 (GD control; VDRC 60000), UAS-mCherryRNAi.Valium10 (TRiP control; BDSC 35787), ovoD1 (BDSC 1309), UAS-Dcr-2 (BDSC 24646 and 24650), UAS-Gal80TS (ref. 80; BDSC 7108), UASp-Sxl.alt5-C8 (used as UAS-Sxl; ref. 81; BDSC 58484), Ubi-EGFP.ODD, Ubi-mRFP.nls (ref. 82; BDSC 86536) and Ldh::GFPYD0852 (a gift from U. Banerjee; ref. 83).

The bnl-Gal4 line was generated through integration of a promoterless T2A-Gal4 transgene into the MiMIC insertion bnl[MI00874] through recombination-mediated cassette exchange, as described in the Trojan-MiMIC technique84. Like bnl[lexA] (ref. 31), this reporter results in a bnl mutation and is homozygous lethal; the bnl coding sequence is fused to T2A-Gal4 after the first bnl exon resulting in a truncated protein after translation (schematic in Extended Data Fig. 4a). Unlike bnl[lexA], however, our construct does not eliminate any endogenous genomic regions and the inserted T2A-Gal4 is under the control of the endogenous bnl promoters/enhancers.

Immunohistochemistry and tissue stainings

Adult guts were dissected in PBS and then transferred to PBS in a well drawn onto a poly-l-lysine-coated slide (Sigma, P1524) using hydrophobic silicone (Intek Adhesives, Flowsil). Guts were fixed at room temperature for 20 min with 4% formaldehyde in PBS. All washes were done with PBS-T (PBS, 0.2% Triton X-100) following standard protocols. Primary antibodies were incubated overnight at 4 °C and secondary antibodies were incubated at 4 °C for 2–3 h. The following primary antibodies were used: mouse anti-DSRF 1:1,000 (Active Motif, 39093), goat anti-GFP 1:1,000 (Abcam, ab5450), rabbit anti-mCherry 1:1,000 (Abcam, ab167453), mouse anti-Prospero 1:1,000 (DSHB, MR1A) and anti-horseradish peroxidase (HRP) rhodamine (TRITC)-conjugated 1:500 (Jackson ImmunoResearch, 123-025-021). The following fluorescent secondary antibodies were used: anti-rabbit FITC-conjugated (Jackson ImmunoResearch, 711-97-003), anti-mouse Cy3-conjugated (Jackson ImmunoResearch, 715-166-150), anti-mouse Cy5-conjugated (Jackson ImmunoResearch, 715-175-151) and anti-goat FITC-conjugated (Jackson ImmunoResearch, 112-095-044) and were diluted 1:500. Guts were mounted in Vectashield with DAPI (Vector laboratories).

Confocal microscopy

Fluorescent images were taken on a Leica SP5 confocal microscope (1.5152 µm pixel size, 8-bit, 1,024 × 1,024 pixels) or a Leica SP8 DLS confocal microscope (1.4127 µm pixel size, 8-bit, 1,024 × 1,024 pixels) with a ×10 objective and using standard PMT detectors. Z-stacks were acquired with z-step size of 5 µm.

MicroCT scans

Adult flies were prepared for microCT using a modified version of a previously described protocol12. Flies were anaesthetized with CO2 and transferred to an Eppendorf tube with PBS-T (PBS, 0.5% Triton X-100) for 5 min or until all the flies had sunk to the bottom of the tube. Flies were then fixed in Bouin’s fixative (Sigma, HT10132) for 16–24 h before being washed in PBS for a day with several solution changes. Flies were then stained in 1:1 Lugol’s solution (Sigma, 62650):water for 4 days. Flies were washed once in water and then mounted in p10 pipette tips as follows: two p10 pipette tips were filled with water and the small opening sealed with parafilm. About ten flies were placed end to end inside each tip and the tips were stacked by inserting the tip of one into the open end of the other and then sealing with parafilm. The relative homogeneity and symmetry of Drosophila samples allowed us to mount two such tip stacks side by side to double imaging throughput and still retain sufficient contrast to resolve organ structures. This allowed us to mount and scan around 40 flies per scanning session, with each p10 tip containing about 10 flies (Extended Data Fig. 1a). Flies were imaged on the following scanners with the following settings. Zeiss Xradia Versa 510: 40 kV, 75 μA, 3 W, 2.95 pixel size, 0.45 rotation step (801 projection images), LE1 filter, ×4 objective. Bruker Skyscan 1272: 40 kV, 110 μA, 4 W, CMOS camera scanning at a 2.95 μm pixel size, 0.3–0.35 rotation step, 30 μm random movement and four frame averaging. Bruker SkyScan 1172 with a 11 MP CCD detector: 40 kV, 250 μA, 10 W, 2.49 μm pixel size, 0.4 rotation step (479 projection images), 10 μm random movement and four frame averaging. For most experiments, all flies in an experiment were scanned with the same scanner. When several scanners were used, a batch factor was applied in the analysis to control for any potential differences. Images were reconstructed using the Zeiss Reconstructor software v.11 or the Bruker NRecon software, then background was subtracted and images were Gaussian smoothed in FIJI v.2.0.0-rc-69/1.52p.

RNA-seq data

RNA-seq data were generated as previously described17. RNA was extracted from three samples of 30 pooled dissected guts from each sex from wild-type flies: w, Su(H)GBE-LacZ/w; esg-Gal4 NP7397, UAS-GFP, Tub-Gal80TS/+. Data visualization was produced with R (v.4.2.1)85 using a standard volcano plot script.

Tracheal ablations

Sets of three to five guts were dissected from btl>myr::GFP-expressing virgin female flies and lightly attached onto a poly-l-lysine-coated glass bottom FluoroDish (WPI, FD35-100), containing haemolymph-like HL3 saline86. Guts were mounted unstretched to preserved their naturally coiled shape and avoid manual rupture of trachea spanning across gut loops. Laser ablations were focused on trachea spanning across R2, R3 and R4 regions of the midgut. Imaging and ultraviolet-laser ablation of individual tracheal branches was done with a Nikon CSU-W1 SoRa spinning disk microscope, using the NIS-Elements software. Time-lapse recordings lasted between 30 s and 5 min after tracheal ablation.

Starvation experiments

For the microCT experiments, 7-day-old adult flies raised on the standard cornmeal/agar diet were placed in vials containing 1% agar jelly and starved for 48 h, before processing for imaging.

To assess resistance to starvation, groups of 30–35 virgin flies were transferred to vials containing 1% agar jelly and death events were recorded three or four times a day from 08:00 to 20:00, until all flies had died. Flies were transferred to fresh vials containing the same medium every 3 days during this process. Survival curves were obtained using the Kaplan–Meir estimate and the difference between curves was assessed using the log-rank Mantel–Cox test, using the GraphPad Prism (v.9.4.1) software.

Fecundity

To assess fecundity, virgin female flies were placed with males for about 20 h for mating. Groups of three mated female flies were placed in vials containing dark media for contrast during egg counting, consisting of 5% of sucrose, 10% autolysed yeast and 1% agar. Flies were allowed to lay eggs for 24 h. Eggs were counted at days 2, 5 and 8 after mating under microscope.

Quantifications

Tracheal cell numbers

DSRF-positive and StingerGFP-positive nuclei were counted in FIJI on maximum intensity projections of confocal stacks manually with the help of Cell Counter for keeping track of counted nuclei. Malpighian tubules and hindgut regions were excluded from these quantifications.

Tracheal filament length and branching

Tracheal filament 3D reconstruction and quantification was performed using Imaris x64 v.9.9.0 (RRID:SCR_007370) using the Filament Tracer and Batch packages (RRID:SCR_007366). Using the surfaces tool, a mask was applied to the tracheal signal channel to reduce signal background before segmentation. The filaments tool was applied using the autopath algorithm to segment all filaments between 2 and 30 µm in diameter. The batch package was used to apply the same settings to a set of images acquired at the same time and from the same microscope slide. The ‘sum of filament lengths’ was taken as the total tracheal length, ‘dendrite mean length’ was taken as the mean tracheal branch length and ‘filament number of Sholl intersections’ was taken as a proxy measurement of tracheal branching. Sholl analysis measures the average number of filament intersections on concentric spheres spaced at 1 μm diameters. Tracheal coverage was measured in FIJI, by segmenting trachea area using autothreshold from the btl>myr::GFP signal and representing this as a percentage of gut area. Gut area was measured in FIJI, using manual gut outlines obtained with the magnetic lasso tool in Adobe Photoshop v.25.3.1.

Measurement of intensity along gut length

The intensity of myr::GFP or Stinger::GFP driven by bnl-lexA, bnl-Gal4 or btl-Gal4 or the intensity of ODD::GFP, nls::RFP and ldh::GFP, was measured along the midgut length in FIJI from z-stacks projected using maximum intensity. Measurements were taken along a 30 pixel-wide line drawn manually using the freehand line tool through the centre of the gut tube along gut length. A landmark was manually placed in the centre of the R3 region and its x,y coordinate extracted. Gut length was adjusted relative to the position of the R3 landmark to give percentage position along gut length with R3 aligned between sexes at 50% gut length. In R v.3.6.0, intensity values for several flies were binned into 40 bins along gut length and the mean and standard deviation found for each bin. Code is available on GitHub through Zenodo (10.5281/zenodo.10905446)87.

Food intake

To assay the amount of food ingested, we used the standard cornmeal/agar diet supplemented with 1% FCF Blue (Sigma, 80717). For analysis of feeding ad libitum, flies were transferred from the standard diet to the 1% FCF Blue-supplemented diet and allowed to feed for 4 h. For analysis of feeding after starvation, flies were starved for 16 h in vials containing 1% agar jelly and then transferred to the 1% FCF Blue-supplemented diet and allowed to feed for 15 min. Fed flies were frozen in liquid nitrogen and transferred in groups of three to 2 ml round bottom microtubes with 0.5 ml of water and a 5 mm stainless-steel metal bead (QIAGEN, 69989). Fly tissues were homogenized using a QIAGEN TissueLyser II for 90 s at 30 Hz and the homogenates were cleared by centrifugation at 10,000g for 10 min. From each microtube, 0.2 ml of clear supernatant was transferred into a 96-well, flat-bottom, optically clear plate (Thermo Fisher Sterilin, 611F96). A BMG Labtech FLUOstar Omega plate reader was used to measure dye content by reading the absorbance at 629 nm.

FlyPAD assays were performed as previously described20,88. Half the electrode wells of a given flyPAD arena were filled with a pellet disc of cornmeal/agar diet, punched with a 1 ml pipette tip to the exact diameter of the inner electrode circle. The remaining electrode wells were left empty to record non-feeding baseline interactions. Flies were allowed to feed in the flyPAD arenas for 1 h, at 25 °C and 65% humidity. The Bonsai software was used to register capacitance and a MATLAB R2023b custom script was used to extract the total number of sips per fly during 1 h (ref. 89). All flyPAD experiments were performed at the same time of day between 10:00 and 13:00. Data for experimental and control genotypes used for comparison were always acquired in the same flyPAD assay.

Intestinal transit

To assess intestinal transit, groups of 30 virgin flies raised on standard cornmeal/agar diet were starved for 16 h in vials containing 1% agar jelly and then allowed to feed for 15 min in vials containing standard cornmeal/agar diet supplemented with 0.5% bromophenol blue (BPB) sodium salt (Sigma, B5525). Fed flies were quickly frozen in liquid nitrogen. Presence of dyed food in the whole gut versus stereotypically demarcated portions of the gut (midgut, hindgut or ampulla) was visually scored from dissected guts and these guts were mounted stretched on sticky poly-l-lysine-coated slides and lined side-to-side from left to right with reference to the order of dissection. Guts were imaged with a Leica MZ16 FA stereomicroscope and a Nikon DS-Fi3 camera. Gut length was measured using the freehand line tool in FIJI, drawn through the centre of each gut. To compare size-matched guts, we excluded guts from the test group that had length smaller than the mean − 1 s.d. of the control group. The effect of sex and genotype on the presence of food in the whole versus portions of the gut was statistically analysed by a logistic regression using the glm function in the VGAM package v.1.1 in R v.4.2.1.

Intestinal excretion

To assess intestinal excretion, groups of six virgin flies raised on standard cornmeal/agar diet were transferred to 5 mm clear plastic dishes, each containing a wedge of 0.5% BPB-supplemented food and allowed to feed and excrete for 60 h (refs. 90,91). Deposits left on the lids of the assay dishes were imaged using a transparency scanner (Epson Perfection V700) and quantification of the total amount of deposits was done using the T.U.R.D software91.

Gut proliferation

Mitotic indices were quantified by manually counting phospho-histone H3-positive cells using a Nikon50i fluorescent microscope. These were quantified in young virgin flies at 7 days after pupal eclosion or in aged virgin flies at 20 days after pupal eclosion. For damage-induced regeneration assays, virgin flies were transferred to an empty vial containing a piece of 3.75 × 2.5 cm2 paper imbibed with 500 ml of 5% sucrose solution (control) or 5% sucrose plus 3% DSS solution. Flies were transferred to a new vial with fresh feeding paper every day for 3 days before gut dissection and quantification of mitotic indices.

Segmentations

ITK-snap (v.3.8.0)92 was used to manually segment each of the organs. For ovaries and testes, the adaptive paintbrush tool was used. For the crop, the polygon tool was first used to segment the organ perimeter in every 20–30 slices in the axial plane, followed by use of the morphological interpolation tool to fill the spaces in between these presegmented slices93. We expanded this presegmented scaffold using an active contour model. For the gut, centreline traces (see below) were increased to a 5 pixel-wide line in FIJI and were imported into ITK-snap as seeds for the active contour model. For the crop and gut, the active contour model was run using the edge attraction mode with a smoothing factor of 2.5 and expansion (balloon) force, smoothing force (curvature) and edge attraction force (advection) were all set to maximums during the evolution of the model. Further manual corrections were performed using the adaptive paintbrush tool.

For visualization purposes, segmentations were converted into triangular meshes using the marching cubes algorithm run in FIJI with the Wavefront obj package. Using Meshlab (v.2020.07)94, meshes were simplified using quadric edge collapse decimation to reduce the number of faces to 10% and smoothened using HC Laplacian smoothing95.

Organ volumes were measured from segmentations in FIJI. The area of the segmented region was measured on each image slice, summed and multiplied by the slice depth to calculate the volume.

Centreline tracing

Centrelines of the gut tube were traced using the simple neurite tracer plugin (v.3.1.6)96 in FIJI. Images were first inverted in intensity to make the centre of the gut of highest intensity for the simple neurite tracer algorithm to follow.

Landmarks for defining midgut loops

Landmarks were manually marked on the microCT stacks using the FIJI multipoint tool to extract their x,y,z coordinates. Two landmarks were used—the distinction between the apical midgut and the midgut loops was defined as the first main inflection of the midgut, which generally correlated with the point where the midgut transitions from the thorax to the abdomen. The distinction between the midgut loops and the hindgut was defined as the transition between the midgut and the hindgut, easily recognizable morphologically in the microCT image stacks by a reduction in gut diameter and in X-ray absorbance. The x,y,z coordinates of these landmarks were used to subset the centrelines to the midgut loop region before further processing.

Geometric morphometrics and PCA analysis

We performed morphometric analysis in R (v.3.6.0) using the geomorph package (v.3.2.1)9799. Centreline data from simple neurite tracer were imported into R (v.3.6.0) using the nat package (v.1.8.18)100 and divided into 1,000 (for whole gut centrelines) or 500 (for midgut loop region centrelines) equally spaced pseudolandmarks using the geomorph package. Landmark coordinates were then aligned using a generalized procrustes analysis (GPA) to standardize for size and orientation. For visualization of the average centrelines of a group of flies, corresponding GPA aligned landmark coordinates were averaged and then plotted in 3D.

Variation in gut shape was analysed using a principal component analysis (PCA) of the GPA aligned centreline coordinates. A Procrustes type III analysis of variance (ANOVA) with random residual permutation procedures (RRPP; RRPP package v.0.5.2)98,99 was run to test whether variation in gut shape was significantly associated with variation in other factors using the procD.lm function. The 3D Procrustes aligned shape coordinates were set as the response variable and crop volume, genital volume, gut length, imaging batch and sex were set as the predictor variables (shape ~ sex + gonad volume + crop volume + gut length + batch; Supplementary Tables 1719). Batch was included to control for groups of flies scanned on different scanners or the same scanner at different times. For testing the differences between the male versus female and control versus experimental groups, a model with interaction terms was used: shape ~ genotype * sex + batch * genotype + batch * sex or shape ~ genotype * sex, when only one batch was present (Supplementary Tables 12,13and 2037). Post hoc pairwise comparisons of Procrustes distances between least squares means and variances of the groups was then conducted using the pairwise function with RRPP101 with shape ~ batch or shape ~ 1 as the null model where appropriate. Code is available on GitHub through Zenodo (10.5281/zenodo.10905446)87.

For all PCA displays, the diagrams at both ends of each principle component (PC) axis represent the extremes of variation along each PC: average shape in grey, theoretical maximum or minimum shape along each PC in black, as previously described102. For all displays in this study, the average coordinates of each Procrustes landmark along the gut were used to generate the average gut centreline in grey. The black lines represent the coordinates of the landmark points from the hypothetical extremes of variation of each PC.

Measurements of gut length

Gut length measurements were taken from centreline length measured using the nat package v.1.8.18 in R (v.3.6.0)85. Anterior midgut, midgut loops and hindgut measurements were taken from centrelines subsetted by landmarks as described above.

Measurements of radius

Gut segmentations were converted into triangular meshes using the marching cubes algorithm run in FIJI with the Wavefront obj package. Using Meshlab (v.2020.07)94, meshes were simplified using quadric edge collapse decimation to reduce the number of faces to 10%. The radius is then estimated by finding the minimum distance between a given point on the centreline and the unsmoothed gut mesh of the segmentation. Repeating this for all points on the centreline gives the radius as a function of arclength. To smooth the radius as a function of arclength, the function LowpassFilter was implemented in Mathematica (v.13.1)103 with a cutoff parameter of 0.3.

Extraction of curvature and torsion along gut length

To approximate the curvature and torsion along the centreline obtained from simple neurite tracer, the centrelines were first parameterized using an arclength coordinate, s, calculated for each point on the curve by summing the lengths of the line segments leading up to it, starting from the anterior. Value s varies between 0 and the length of the centreline (L). The centreline in the vicinity of each point was approximated using a third-degree Taylor expansion of the curve position. For this, a neighbourhood of size δ = 0.05 × L was chosen around a given point on the curve, which consists of points whose distance from the point of interest is less than δ and then it was fitted it to a cubic polynomial using the function polyfit implemented in the Python package NUMPY104:

x(s)=x+x(s)(ss)+12x(s)(ss)2+16x(s)(ss)3

Here, xs*, xs*, xs* are the first, second and third derivatives of the position with respect to s, evaluated at the point whose arclength is s*. Local curvature κ(s*) and torsion τ(s*) were computed, using the Frenet–Serret formulae adapted to our parameterization and assuming the curvature is locally uniform:

κ(s)=|x(s)|,τ(s)=(x(s)×x(s))x(s)κ2(s)

This was repeated for all points on the curve to obtain local approximations of the curvature and torsion. To further smooth the curvature and torsion as a function of arclength, the function LowpassFilter with a cutoff parameter of 0.3 was implemented in Mathematica. Curvature and torsion have units of inverse length and, therefore, are not invariant with respect to scale—for example, if we double the size of the centreline without changing its shape, the curvature and torsion will decrease by a factor of two. To produce scale invariant quantities, that depend on the shape of the centreline but not its size, the normalized curvature and torsion is defined by multiplying them by the total length of the centreline. Code is available on GitHub through Zenodo (10.5281/zenodo.10905446)87.

Comparison of curvature using multidimensional scaling

To compare the curvature of two different centrelines, they were first registered to know which point on the first centreline corresponded to a given point on the second105. For this, elastic distortion was minimized on the basis of the Fisher–Rao metric as described in refs. 106,107, which is implemented in the Python package scikit-fda108.

Once this was known, the two centrelines were compared on a regional basis, by computing the total Euclidean distance between the local morphometric biomarker (such as normalized curvature (κ~L×κ)), at corresponding points and averaged over the entire centrelines. For example, if the normalized curvatures of the first and second centrelines are κ~1(s1) and κ~2(s2), where s1 and s2 are the respective arclength parameters, the registration is given as the function s2 = γ(s1) and the distance between two centrelines can be computed using the formula:

dist(κ~1,κ~2)=1L[κ~1(s1)κ~2(γ(s1))]2ds1.

To discretize the curves, with equally spaced points in the coordinate s1 (denoted as sn, where n = 1, 2, …., 200), the integral was replaced with a sum,

dist(κ~1,κ~2)=1200n=1200[κ~1(sn)κ~2(γ(sn))]2

To calculate the relative distances between pairs of centrelines, the distances were divided by the maximum distance (across all pairs of centrelines in each analysis). Once the distance was computed for each pair of centrelines, a multidimensional scaling (MDS) algorithm was used, which converted the distances between the guts into a 3D coordinate for each gut (μ1, μ2, μ1) such that the distance between each pair of points in the MDS space is as close as possible to the original computed matrices. We used the following reference to convert our distances into MDS coordinates109. Once the coordinates were obtained for each group, the region occupied in the MDS space was estimated by fitting a normal distribution to the points and drawing the 95% confidence intervals.

Lastly, to test the location change of the region centrelines with experimental manipulations, the LocationTest function in Mathematica was used to compute the P value from several applicable tests (t-test, paired sample t-test, Z-test, paired sample Z-test, Mann–Whitney U-test, Sign test, Wilcoxon signed-rank test) and returned the P value from the most powerful test (one with the highest probability of rejecting the null hypothesis) that applies to the data. Code is available on GitHub through Zenodo (10.5281/zenodo.10905446)87.

Correlation of curvature and tracheal intensity

Average tracheal intensity along gut length was measured as described above, for the midgut not including the hindgut of btl>myrGFP male and female flies and correlated with the average curvature along length for OregonR male and female flies of the equivalent gut region. Pearson’s product moment was calculated.

Correlation of curvature and bnl intensity

Males and females were analysed separately. Curvature and bnl intensity were normalized so that their range is [−1, 1] for each gut to allow for comparison across them. For example, if Ibnl(s) is the measured intensity as a function of arclength for a single fly, the corresponding normalized intensity will be

I~Ibnlmin(Ibnl)max(Ibnl)min(Ibnl)

with a similar expression for the centreline curvature. Each centreline curvature was paired with a bnl intensity curve from a fly of the same sex and an elastic registration was performed between them as mentioned above and then the Pearson correlation coefficient was computed. For the females, there are 39 measured centreline curvatures and 28 bnl intensity curves, leading to 39 × 28 = 1,092 correlation coefficients whose values are given in the orange histogram in Extended Data Fig. 4b. Similarly, for the males there are 41 measured centreline curvature and 27 bnl intensity curves, leading to 41 × 27 = 1,107 correlation coefficients whose values are given in the blue histogram in Extended Data Fig. 4b.

To obtain a control for the measured histogram, bnl intensity curves were simulated by fitting the actual bnl intensity curves to an autoregressive stochastic process (using the command ARProcess in Mathematica). Repeating the analysis above leads to the histograms shown in grey in Extended Data Fig. 4b. Code is available on GitHub through Zenodo (10.5281/zenodo.10905446)87.

Tilt

To estimate the tilt of the midgut loop region relative to the entire gut centreline, the main axis of each gut was calculated as the largest eigendirection of the covariance matrix. The covariance matrix C for a given set of points in 3D, where each point is labelled by the index i and position vector xi, is given by

C=1n1i=1n(xix¯)T(xix¯)

where n is the total number of points and x¯ is the average position of all the points. The main axis of the midgut loop region is denoted by Vm and the entire gut by Vg; the angle between them was determined as φ = cos−1(Vg . Vm)/(|Vg||Vm|).

Measurements of proximity

The proximity between meshes was measured in R v.3.6.0. All surface meshes from the organ segmentations were simplified using quadric edge collapse decimation in Meshlab (v.2020.07)94 to reduce the number of faces to 1%, other than the testes apical tip meshes which contained few faces so were instead reduced to 10%. Mesh vertex coordinates were then read into R and the minimal distance between each vertex on organX and all the vertices on organY was calculated using a nearest neighbour algorithm using the RANN package (v.2.6.1)110. For reference to the midgut loops of the gut or for plotting along gut length, the centreline coordinates were replotted as 100 equally spaced points using the nat package (v.1.8.18)100. The centreline is then related to the gut mesh by finding the nearest 20 vertices on the mesh for every centreline point. The minimum distance of these 20 vertices to organY is then assigned to the centreline point for averaging and for plotting. For restricting to midgut loops, the landmarks were used to cut the centreline. Code is available on GitHub through Zenodo (10.5281/zenodo.10905446)87.

For visualization of proximities as shown in figures, the Hausdorff Distance function in Meshlab94,111 was used which samples each vertex of meshX and finds the closest point on meshY to generate a minimal distance value between meshes for each vertex. These minimal distances were then displayed on the mesh as a heatmap in the Paraview software (v.5.10.0)112.

Crop duct quantifications

The directions of the crop duct leaving the proventriculus and travelling through the thorax to enter the crop were manually recorded from viewing the microCT scans from several planes in ITK-snap. Four different configurations were recorded: passing from left to right in an s-shaped pattern, passing from left to right in a straight line, staying on one side of gut and inverted passing from right to left.

Position of the crop and contact it made with the ovaries was manually scored from viewing the microCT scans in several planes in ITK-snap.

Experimental design and statistical analyses

For each experiment, a minimum of nine samples per group were examined per genotype or condition. Fly numbers are not limiting so no power calculations were used to predetermine sample size. Oversampling was mitigated by choosing sample sizes on the basis of previous knowledge of phenotypic variability in controls and other mutants. Similar sample sizes for different animal groups (for example, downregulations versus controls) were tested in the same experimental design. Exact sample sizes are provided in the Supplementary Information. Experimental and control flies were bred in identical conditions and were randomized whenever possible (for example, with regard to housing and position in tray). Control and experimental samples were processed at the same time and mounted on the same slides for confocal imaging or the same tips for microCT scanning. All replicates were biological rather than technical and all measurements were taken from distinct samples. Experiments were typically repeated two to three times and only those experiments for which repeats resulted in comparable outcomes are included in the manuscript. Experiments were controlled for sex, mating status, genotype, age and physiological state (for example, starved or ad libitum-fed). Details are provided elsewhere in the Methods and Supplementary Information. No data points or outliers were excluded from our experiments and blinding was performed for a subset of experiments. Quantification of DSRF stainings, filament tracing of fluorescently labelled trachea and quantifications of bnl expression along gut length was done on data blinded for genotype. Blinding for sex was not possible as this is visually obvious by differences in the length and diameter of the Drosophila gut. Similarly, blinding for sex was not possible for microCT scans as ovaries and testes were visible in the images.

All statistical analyses were carried out using R including use of ‘dplyr’ package (v.1.0.10). For multiple comparisons between groups, data were analysed using one-way ANOVA followed by a post-hoc TukeyHSD test. For single pairwise comparisons, we used Student’s t-tests. Boxplots and line graphs were plotted in R using the ‘ggplot2’ package (v.3.4.0). For boxplots, the minimum, maximum, median, first quartile and third quartile are indicated with all data points shown as dots. In all figures, n denotes the number of biologically independent samples and P values are indicated as asterisks highlighting the significance of comparisons (non-significant (NS): P > 0.05; *P < 0.05; **P < 0.01; ***P < 0.001). For Procrustes ANOVA, P values are capped at a minimum of P = 0.001 as the RRPP procedure uses 1,000 iterations. Further information about sample size, P values and statistical tests used for each experiment can be found in the Supplementary Information.

Reporting summary

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

Online content

Any methods, additional references, Nature Portfolio reporting summaries, source data, extended data, supplementary information, acknowledgements, peer review information; details of author contributions and competing interests; and statements of data and code availability are available at 10.1038/s41586-024-07463-4.

Supplementary information

Supplementary Information (56.6KB, docx)

List of full genotypes, sample sizes, P values and statistical tests used and tables of organ contact frequencies.

Reporting Summary (75.9KB, pdf)
Peer Review File (3.9MB, pdf)
Supplementary Tables (40.1KB, xlsx)

Supplementary Tables 1–37 statistical tests for geometric morphometric analysis of gut shape and values for proximity between organs.

Supplementary Video 1 (6.2MB, mov)

3D reconstructions of wild-type male and female gut. 360° rotation of representative 3D segmentations of male and female wild-type OregonR whole guts from proventriculus to ampulla, visualizing differences in shape and size. Male blue; female, orange.

Supplementary Video 2 (8.8MB, mov)

Trachea hold tension ex vivo. Laser ablation of trachea on ex vivo gut with trachea labelled with btl>myr::GFP. Two representative videos are shown—the first demonstrates trachea recoil after ablation (22 out of 25 guts) and second is an example of trachea and gut loop recoil (8 out of 25 guts). Initial paused frame indicates ablation ROI in red. Scale bar, 100 mm.

Source data

Source Data Fig. 1 (53.5KB, xlsx)
Source Data Fig. 2 (87.2KB, xlsx)
Source Data Fig. 3 (26.9KB, xlsx)
Source Data Fig. 4 (102.2KB, xlsx)
Source Data Fig. 5 (55.1KB, xlsx)

Acknowledgements

We thank U. Banerjee, J. Casanova, J. Cordero and S. Roy for providing reagents. We are grateful to D. Dormann, C. Whilding and D. Matharu for imaging quantification advice, B. Lenhard for statistical advice and C. Amourda, H. Beckwith and L. Gartner for discussions or comments on the manuscript. N. Cakir, E. Elveren, I. Geraldes and B. Mizrak provided experimental assistance and A. Weston and L. Collinson supported us with our initial microCT scans. This work was funded by an ERC Advanced Grant (ERCAdG 787470 ‘IntraGutSex’, a UKRI Frontier Research Guarantee grant EP/Y036298/1), MRC intramural funding and the Francis Crick Institute, which receives its core funding from Cancer Research UK (CC2258), the UK Medical Research Council (CC2258) and the Wellcome Trust (CC2258). T.S. was supported by grants from the National Heart, Lung and Blood Institute of the National Institutes Health (1K22HL137902-01) and an Institutional Development Award from the National Institute of General Medical Sciences of the National Institutes of Health under grant no. 2P20GM103432. A.M. was funded by an EMBO LTF (63-2017). S.M. and L.M. were partially funded by a DARPA MURI grant MINT and by the Simons Foundation. S.E.L. was supported by a Wellcome Trust grant no. 225439/Z/22/Z. Y.M. was supported by the MRC award MR/W027437/1, a Lister Institute Research Prize and the EMBO Young Investigator Programme.

Extended data figures and tables

Author contributions

L.B. and P.G. performed most of the experiments including microCT scanning and reconstruction, quantification of tracheal cell numbers and branches and organ segmentations. L.B. also performed centreline and landmark extractions, wrote code for and performed geometric morphometric analysis, wrote code for and performed organ proximity analysis, wrote code for finding intensity along gut length, performed crop duct scoring, correlation of curvature with trachea intensity and measurement of organ volumes. P.G. also performed stem cell proliferation analyses, feeding and food transit assays and assisted with FlyPad feeding experiments, lifespan and fecundity analysis experiments. S.M. performed the mathematical analysis of curvature, torsion, radius, tilt and correlation of curvature with bnl intensity. O.L., L.K., Y.J., A.P.Z. and B.C. assisted with microCT scanning and organ segmentations. O.L. also performed starvation and fecundity experiments. A.M. performed stem cell proliferation analyses and contributed muscle driver stainings. B.S. conducted FlyPad assays. T.A. assessed the sex determination pathway in tracheal cells. S.E.L. and Y.M. assisted with the ex vivo tracheal ablations. L.P.-G. and T.S. supported and conducted our pilot microCT scans, respectively. M.V. assisted with organ proximity analysis. L.M. supervised the mathematical analysis of gut shape features. I.M.-A. conceived, coordinated and supervised the project. L.B., P.G. and I.M.-A. wrote the paper, with input from all the authors.

Peer review

Peer review information

Nature thanks Iswar Hariharan, Chrysoula Pitsouli, Akhila Rajan and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are availalable.

Funding

Open Access funding provided by The Francis Crick Institute.

Data availability

All reconstructed microCT scans, gut centreline files and organ segmentation files are available through Figshare (10.25418/crick.25598859)113. All remaining data generated or analysed during this study are included in the Article (and its Extended Data and Supplementary Information). Further information can be requested from the corresponding author. Source data are provided with this paper.

Code availability

Code generated and used in this study is available on GitHub through Zenodo (10.5281/zenodo.10905446)87.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

These authors contributed equally: Laura Blackie, Pedro Gaspar

Extended data

is available for this paper at 10.1038/s41586-024-07463-4.

Supplementary information

The online version contains supplementary material available at 10.1038/s41586-024-07463-4.

References

  • 1.Aristotle. The History of Animals (Zinc Read, 2023).
  • 2.Falcon, A. & Lefebvre, D. Aristotle’s Generation of Animals (Cambridge Univ. Press, 2018).
  • 3.Hippocrates of Kos & Adams, F. On the Sacred Disease (Dalcassian, 2023).
  • 4.Leroi, A. M. The Lagoon: How Aristotle Invented Science (Bloomsbury, 2015).
  • 5.Vesalius, A. The Fabric of the Human Body: An Annotated Translation of the 1543 and 1555 Editions of “De Humani Corporis Fabrica Libri Septem”, by D.H. Garrison and M.H. Hast (Karger, 2013).
  • 6.Martinez-Arias, A. The Master Builder: How the New Science of the Cell is Rewriting the Story of Life (Basic Books, 2023).
  • 7.Collinet C, Lecuit T. Programmed and self-organized flow of information during morphogenesis. Nat. Rev. Mol. Cell Biol. 2021;22:245–265. doi: 10.1038/s41580-020-00318-6. [DOI] [PubMed] [Google Scholar]
  • 8.O’Brien LE. Tissue homeostasis and non-homeostasis: from cell life cycles to organ states. Annu. Rev. Cell Dev. Biol. 2022;38:395–418. doi: 10.1146/annurev-cellbio-120420-114855. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Morton EJ, Webb S, Bateman JE, Clarke LJ, Shelton CG. Three-dimensional X-ray microtomography for medical and biological applications. Phys. Med. Biol. 1990;35:805–820. doi: 10.1088/0031-9155/35/7/001. [DOI] [PubMed] [Google Scholar]
  • 10.Weinhardt V, et al. Quantitative morphometric analysis of adult teleost fish by X-ray computed tomography. Sci. Rep. 2018;8:16531. doi: 10.1038/s41598-018-34848-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Wong MD, Dorr AE, Walls JR, Lerch JP, Henkelman RM. A novel 3D mouse embryo atlas based on micro-CT. Development. 2012;139:3248–3256. doi: 10.1242/dev.082016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Schoborg TA, Smith SL, Smith LN, Morris HD, Rusan NM. Micro-computed tomography as a platform for exploring Drosophila development. Development. 2019;146:dev176685. doi: 10.1242/dev.176685. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Mattei, A. L., Riccio, M. L., Avila, F. W. & Wolfner, M. F. Integrated 3D view of postmating responses by the Drosophila melanogaster female reproductive tract, obtained by micro-computed tomography scanning. Proc. Natl Acad. Sci. USA112, 8475–8480 (2015). [DOI] [PMC free article] [PubMed]
  • 14.Gonzalez-Morales N, et al. The atypical cadherin dachsous controls left–right asymmetry in Drosophila. Dev. Cell. 2015;33:675–689. doi: 10.1016/j.devcel.2015.04.026. [DOI] [PubMed] [Google Scholar]
  • 15.Hayashi T, Murakami R. Left–right asymmetry in Drosophila melanogaster gut development. Dev. Growth Differ. 2001;43:239–246. doi: 10.1046/j.1440-169x.2001.00574.x. [DOI] [PubMed] [Google Scholar]
  • 16.Hozumi S, et al. An unconventional myosin in Drosophila reverses the default handedness in visceral organs. Nature. 2006;440:798–802. doi: 10.1038/nature04625. [DOI] [PubMed] [Google Scholar]
  • 17.Hudry B, Khadayate S, Miguel-Aliaga I. The sexual identity of adult intestinal stem cells controls organ size and plasticity. Nature. 2016;530:344–348. doi: 10.1038/nature16953. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Ahmed SMH, et al. Fitness trade-offs incurred by ovary-to-gut steroid signalling in Drosophila. Nature. 2020;584:415–419. doi: 10.1038/s41586-020-2462-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.O’Brien LE, Soliman SS, Li X, Bilder D. Altered modes of stem cell division drive adaptive intestinal growth. Cell. 2011;147:603–614. doi: 10.1016/j.cell.2011.08.048. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Hudry B, et al. Sex differences in intestinal carbohydrate metabolism promote food intake and sperm maturation. Cell. 2019;178:901–918. doi: 10.1016/j.cell.2019.07.029. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Coutelis JB, Petzoldt AG, Speder P, Suzanne M, Noselli S. Left–right asymmetry in Drosophila. Semin. Cell Dev. Biol. 2008;19:252–262. doi: 10.1016/j.semcdb.2008.01.006. [DOI] [PubMed] [Google Scholar]
  • 22.Miller A. Position of adult testes in Drosophila melanogaster Meigen. Proc. Natl Acad. Sci. USA. 1941;27:35–41. doi: 10.1073/pnas.27.1.35. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Lobell AS, Kaspari RR, Serrano Negron YL, Harbison ST. The genetic architecture of ovariole number in Drosophila melanogaster: genes with major, quantitative and pleiotropic effects. Genes Genomes Genet. 2017;7:2391–2403. doi: 10.1534/g3.117.042390. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Busson D, Gans M, Komitopoulou K, Masson M. Genetic analysis of three dominant female-sterile mutations located on the X chromosome of Drosophila melanogaster. Genetics. 1983;105:309–325. doi: 10.1093/genetics/105.2.309. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Jenett A, et al. A GAL4-driver line resource for Drosophila neurobiology. Cell Rep. 2012;2:991–1001. doi: 10.1016/j.celrep.2012.09.011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Centanin L, et al. Cell autonomy of HIF effects in Drosophila: tracheal cells sense hypoxia and induce terminal branch sprouting. Dev. Cell. 2008;14:547–558. doi: 10.1016/j.devcel.2008.01.020. [DOI] [PubMed] [Google Scholar]
  • 27.Jarecki J, Johnson E, Krasnow MA. Oxygen regulation of airway branching in Drosophila is mediated by branchless FGF. Cell. 1999;99:211–220. doi: 10.1016/S0092-8674(00)81652-9. [DOI] [PubMed] [Google Scholar]
  • 28.Perochon J, et al. Dynamic adult tracheal plasticity drives stem cell adaptation to changes in intestinal homeostasis in Drosophila. Nat. Cell Biol. 2021;23:485–496. doi: 10.1038/s41556-021-00676-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Sutherland D, Samakovlis C, Krasnow M. A. branchless encodes a Drosophila FGF homolog that controls tracheal cell migration and the pattern of branching. Cell. 1996;87:1091–1101. doi: 10.1016/S0092-8674(00)81803-6. [DOI] [PubMed] [Google Scholar]
  • 30.Tamamouna V, et al. Remodelling of oxygen-transporting tracheoles drives intestinal regeneration and tumorigenesis in Drosophila. Nat. Cell Biol. 2021;23:497–510. doi: 10.1038/s41556-021-00674-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Du L, et al. Unique patterns of organization and migration of FGF-expressing cells during Drosophila morphogenesis. Dev. Biol. 2017;427:35–48. doi: 10.1016/j.ydbio.2017.05.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Bell LR, Maine EM, Schedl P, Cline TW. Sex-lethal, a Drosophila sex determination switch gene, exhibits sex-specific RNA splicing and sequence similarity to RNA binding proteins. Cell. 1988;55:1037–1046. doi: 10.1016/0092-8674(88)90248-6. [DOI] [PubMed] [Google Scholar]
  • 33.Belote JM, McKeown M, Boggs RT, Ohkawa R, Sosnowski BA. Molecular genetics of transformer, a genetic switch controlling sexual differentiation in Drosophila. Dev. Genet. 1989;10:143–154. doi: 10.1002/dvg.1020100304. [DOI] [PubMed] [Google Scholar]
  • 34.Boggs RT, Gregor P, Idriss S, Belote JM, McKeown M. Regulation of sexual differentiation in D. melanogaster via alternative splicing of RNA from the transformer gene. Cell. 1987;50:739–747. doi: 10.1016/0092-8674(87)90332-1. [DOI] [PubMed] [Google Scholar]
  • 35.Bridges CB. Triploid intersexes in Drosophila melanogaster. Science. 1921;54:252–254. doi: 10.1126/science.54.1394.252. [DOI] [PubMed] [Google Scholar]
  • 36.Cline TW. Two closely linked mutations in Drosophila melanogaster that are lethal to opposite sexes and interact with daughterless. Genetics. 1978;90:683–698. doi: 10.1093/genetics/90.4.683. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Inoue K, Hoshijima K, Sakamoto H, Shimura Y. Binding of the Drosophila sex-lethal gene product to the alternative splice site of transformer primary transcript. Nature. 1990;344:461–463. doi: 10.1038/344461a0. [DOI] [PubMed] [Google Scholar]
  • 38.Salz HK, Erickson JW. Sex determination in Drosophila: the view from the top. Fly. 2010;4:60–70. doi: 10.4161/fly.4.1.11277. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Sosnowski BA, Belote JM, McKeown M. Sex-specific alternative splicing of RNA from the transformer gene results from sequence-dependent splice site blockage. Cell. 1989;58:449–459. doi: 10.1016/0092-8674(89)90426-1. [DOI] [PubMed] [Google Scholar]
  • 40.Rera M, Clark RI, Walker DW. Intestinal barrier dysfunction links metabolic and inflammatory markers of aging to death in Drosophila. Proc. Natl Acad. Sci. USA. 2012;109:21528–21533. doi: 10.1073/pnas.1215849110. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Amcheslavsky A, Jiang J, Ip YT. Tissue damage-induced intestinal stem cell division in Drosophila. Cell Stem Cell. 2009;4:49–61. doi: 10.1016/j.stem.2008.10.016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Mank JE, Rideout EJ. Developmental mechanisms of sex differences: from cells to organisms. Development. 2021;148:dev199750. doi: 10.1242/dev.199750. [DOI] [PubMed] [Google Scholar]
  • 43.Linneweber GA, et al. Neuronal control of metabolism through nutrient-dependent modulation of tracheal branching. Cell. 2014;156:69–83. doi: 10.1016/j.cell.2013.12.008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Biteau B, Hochmuth CE, Jasper H. JNK activity in somatic stem cells causes loss of tissue homeostasis in the aging Drosophila gut. Cell Stem Cell. 2008;3:442–455. doi: 10.1016/j.stem.2008.07.024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Choi NH, Kim JG, Yang DJ, Kim YS, Yoo MA. Age-related changes in Drosophila midgut are associated with PVF2, a PDGF/VEGF-like growth factor. Aging Cell. 2008;7:318–334. doi: 10.1111/j.1474-9726.2008.00380.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Regan JC, et al. Sex difference in pathology of the ageing gut mediates the greater response of female lifespan to dietary restriction. eLife. 2016;5:e10956. doi: 10.7554/eLife.10956. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Sasaki A, Nishimura T, Takano T, Naito S, Yoo SK. white regulates proliferative homeostasis of intestinal stem cells during ageing in Drosophila. Nat. Metab. 2021;3:546–557. doi: 10.1038/s42255-021-00375-x. [DOI] [PubMed] [Google Scholar]
  • 48.Davis NM, et al. The chirality of gut rotation derives from left–right asymmetric changes in the architecture of the dorsal mesentery. Dev. Cell. 2008;15:134–145. doi: 10.1016/j.devcel.2008.05.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Horne-Badovinac S, Rebagliati M, Stainier DY. A cellular framework for gut-looping morphogenesis in zebrafish. Science. 2003;302:662–665. doi: 10.1126/science.1085397. [DOI] [PubMed] [Google Scholar]
  • 50.Kurpios NA, et al. The direction of gut looping is established by changes in the extracellular matrix and in cell:cell adhesion. Proc. Natl Acad. Sci. USA. 2008;105:8499–8506. doi: 10.1073/pnas.0803578105. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Mitchell NP, et al. Visceral organ morphogenesis via calcium-patterned muscle constrictions. eLife. 2022;11:e77355. doi: 10.7554/eLife.77355. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Savin T, et al. On the growth and form of the gut. Nature. 2011;476:57–62. doi: 10.1038/nature10277. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Harrison JF, et al. How locusts breathe. Physiology. 2013;28:18–27. doi: 10.1152/physiol.00043.2012. [DOI] [PubMed] [Google Scholar]
  • 54.Kenny MC, Giarra MN, Granata E, Socha JJ. How temperature influences the viscosity of hornworm hemolymph. J. Exp. Biol. 2018;221:jeb186338. doi: 10.1242/jeb.186338. [DOI] [PubMed] [Google Scholar]
  • 55.Pendar, H., Aviles, J., Adjerid, K., Schoenewald, C. & Socha, J. J. Functional compartmentalization in the hemocoel of insects. Sci. Rep.9, 6075 (2019). [DOI] [PMC free article] [PubMed]
  • 56.Beshel J, Dubnau J, Zhong Y. A leptin analog locally produced in the brain acts via a conserved neural circuit to modulate obesity-linked behaviors in Drosophila. Cell Metab. 2017;25:208–217. doi: 10.1016/j.cmet.2016.12.013. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57.Boulan L, Milan M, Leopold P. The systemic control of growth. Cold Spring Harb. Perspect. Biol. 2015;7:a019117. doi: 10.1101/cshperspect.a019117. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Brent AE, Rajan A. Insulin and leptin/Upd2 exert opposing influences on synapse number in fat-sensing neurons. Cell Metab. 2020;32:786–800. doi: 10.1016/j.cmet.2020.08.017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Rajan A, Housden BE, Wirtz-Peitz F, Holderbaum L, Perrimon N. A mechanism coupling systemic energy sensing to adipokine secretion. Dev. Cell. 2017;43:83–98. doi: 10.1016/j.devcel.2017.09.007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Rajan A, Perrimon N. Drosophila cytokine unpaired 2 regulates physiological homeostasis by remotely controlling insulin secretion. Cell. 2012;151:123–137. doi: 10.1016/j.cell.2012.08.019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 61.Zhao X, Karpac J. Glutamate metabolism directs energetic trade-offs to shape host–pathogen susceptibility in Drosophila. Cell Metab. 2021;33:2428–2444. doi: 10.1016/j.cmet.2021.10.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Furness JB. Novel gut afferents: intrinsic afferent neurons and intestinofugal neurons. Auton. Neurosci. 2006;125:81–85. doi: 10.1016/j.autneu.2006.01.007. [DOI] [PubMed] [Google Scholar]
  • 63.Han W, et al. A neural circuit for gut-induced reward. Cell. 2018;175:887–888. doi: 10.1016/j.cell.2018.10.018. [DOI] [PubMed] [Google Scholar]
  • 64.Kirchgessner AL, Gershon MD. Innervation of the pancreas by neurons in the gut. J. Neurosci. 1990;10:1626–1642. doi: 10.1523/JNEUROSCI.10-05-01626.1990. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 65.Spencer NJ, Hu H. Enteric nervous system: sensory transduction, neural circuits and gastrointestinal motility. Nat. Rev. Gastroenterol. Hepatol. 2020;17:338–351. doi: 10.1038/s41575-020-0271-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66.Cleynen I, et al. Inherited determinants of Crohn’s disease and ulcerative colitis phenotypes: a genetic association study. Lancet. 2016;387:156–167. doi: 10.1016/S0140-6736(15)00465-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 67.Nagai Y, et al. The primary tumor location in colorectal cancer: a focused review on its impact on surgical management. Glob. Health Med. 2021;3:386–393. doi: 10.35772/ghm.2020.01096. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 68.Shah SC, et al. Sex-based differences in incidence of inflammatory bowel diseases-pooled analysis of population-based studies from western countries. Gastroenterology. 2018;155:1079–1089. doi: 10.1053/j.gastro.2018.06.043. [DOI] [PubMed] [Google Scholar]
  • 69.Warschkow R, et al. Better survival in right-sided versus left-sided stage I–III colon cancer patients. BMC Cancer. 2016;16:554. doi: 10.1186/s12885-016-2412-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 70.Phillips MD, Thomas GH. Brush border spectrin is required for early endosome recycling in Drosophila. J. Cell Sci. 2006;119:1361–1370. doi: 10.1242/jcs.02839. [DOI] [PubMed] [Google Scholar]
  • 71.Hayashi S, et al. GETDB, a database compiling expression patterns and molecular locations of a collection of Gal4 enhancer traps. Genesis. 2002;34:58–61. doi: 10.1002/gene.10137. [DOI] [PubMed] [Google Scholar]
  • 72.Shiga Y, TanakaMatakatsu M, Hayashi S. A nuclear GFP beta-galactosidase fusion protein as a marker for morphogenesis in living Drosophila. Dev. Growth Differ. 1996;38:99–106. doi: 10.1046/j.1440-169X.1996.00012.x. [DOI] [Google Scholar]
  • 73.Guillemin K, Williams T, Krasnow MA. A nuclear lamin is required for cytoplasmic organization and egg polarity in Drosophila. Nat. Cell Biol. 2001;3:848–851. doi: 10.1038/ncb0901-848. [DOI] [PubMed] [Google Scholar]
  • 74.Potter CJ, Tasic B, Russler EV, Liang L, Luo LQ. The Q system: a repressible binary system for transgene expression, lineage tracing and mosaic analysis. Cell. 2010;141:536–548. doi: 10.1016/j.cell.2010.02.025. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 75.Gaumer S, Guenal I, Brun S, Theodore L, Mignotte B. Bcl-2 and Bax mammalian regulators of apoptosis are functional in Drosophila. Cell Death Differ. 2000;7:804–814. doi: 10.1038/sj.cdd.4400714. [DOI] [PubMed] [Google Scholar]
  • 76.Barolo, S., Carver, L. A. & Posakony, J. W. GFP and beta-galactosidase transformation vectors for promoter/enhancer analysis in Drosophila. Biotechniques10.2144/00294bm10 (2000). [DOI] [PubMed]
  • 77.Hadjieconomou D, et al. Flybow: genetic multicolor cell labeling for neural circuit analysis in Drosophila melanogaster. Nat. Methods. 2011;8:260–266. doi: 10.1038/nmeth.1567. [DOI] [PubMed] [Google Scholar]
  • 78.Pfeiffer BD, et al. Refinement of tools for targeted gene expression in Drosophila. Genetics. 2010;186:735–755. doi: 10.1534/genetics.110.119917. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 79.Lindsley, D. & Grell, E. H. Genetic Variations of Drosophila melanogaster; publication no. 627 (Carnegie Institution, 1968).
  • 80.McGuire SE, Le PT, Osborn AJ, Matsumoto K, Davis RL. Spatiotemporal rescue of memory dysfunction in Drosophila. Science. 2003;302:1765–1768. doi: 10.1126/science.1089035. [DOI] [PubMed] [Google Scholar]
  • 81.Evans DS, Cline TW. Drosophila switch gene Sex-lethal can bypass its switch-gene target transformer to regulate aspects of female behavior. Proc. Natl Acad. Sci. USA. 2013;110:E4474–E4481. doi: 10.1073/pnas.1319063110. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 82.Misra T, et al. A genetically encoded biosensor for visualising hypoxia responses in vivo. Biol. Open. 2017;6:296–304. doi: 10.1242/bio.018226. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 83.Quinones-Coello AT, et al. Exploring strategies for protein trapping in Drosophila. Genetics. 2007;175:1089–1104. doi: 10.1534/genetics.106.065995. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 84.Diao F, et al. Plug-and-play genetic access to Drosophila cell types using exchangeable exon cassettes. Cell Rep. 2015;10:1410–1421. doi: 10.1016/j.celrep.2015.01.059. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 85.R Development Core Team. A Language and Environment for Statistical Computing (R Foundation for Statistical Computing, 2019).
  • 86.Stewart BA, Atwood HL, Renger JJ, Wang J, Wu CF. Improved stability of Drosophila larval neuromuscular preparations in haemolymph-like physiological solutions. J. Comp. Physiol. A. 1994;175:179–191. doi: 10.1007/BF00215114. [DOI] [PubMed] [Google Scholar]
  • 87.Blackie, L., Mosleh, S., Mahadevan, L. & Miguel-Aliaga, I. Lblackie1/OrganGeometry: BlackieEtAL. Zenodo10.5281/zenodo.10905446 (2024).
  • 88.Hadjieconomou D, et al. Enteric neurons increase maternal food intake during reproduction. Nature. 2020;587:455–459. doi: 10.1038/s41586-020-2866-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 89.Itskov PM, et al. Automated monitoring and quantitative analysis of feeding behaviour in Drosophila. Nat. Commun. 2014;5:4560. doi: 10.1038/ncomms5560. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 90.Cognigni P, Bailey AP, Miguel-Aliaga I. Enteric neurons and systemic signals couple nutritional and reproductive status with intestinal homeostasis. Cell Metab. 2011;13:92–104. doi: 10.1016/j.cmet.2010.12.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 91.Wayland MT, et al. Spotting the differences: probing host/microbiota interactions with a dedicated software tool for the analysis of faecal outputs in Drosophila. J. Insect Physiol. 2014;69:126–135. doi: 10.1016/j.jinsphys.2014.05.023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 92.Yushkevich PA, et al. User-guided 3D active contour segmentation of anatomical structures: significantly improved efficiency and reliability. Neuroimage. 2006;31:1116–1128. doi: 10.1016/j.neuroimage.2006.01.015. [DOI] [PubMed] [Google Scholar]
  • 93.Zukić, D. et al. ND morphological contour interpolation. Insight J.10.54294/achtrg (2016).
  • 94.Cignoni, P. et al. MeshLab: an open-source mesh processing tool. In Eurographics Italian Chapter Conference (eds Scarano, V. et al.) 129–136 (Eurographic Association, 2008).
  • 95.Vollmer J, Mencl R, Muller H. Improved Laplacian smoothing of noisy surface meshes. Comput. Graph. Forum. 1999;18:C131–C138. doi: 10.1111/1467-8659.00334. [DOI] [Google Scholar]
  • 96.Longair MH, Baker DA, Armstrong JD. Simple Neurite Tracer: open source software for reconstruction, visualization and analysis of neuronal processes. Bioinformatics. 2011;27:2453–2454. doi: 10.1093/bioinformatics/btr390. [DOI] [PubMed] [Google Scholar]
  • 97.Adams, D. C., Collyer, M. L. & Kaliontzopoulou, A. Geomorph: Software for geometric morphometric analyses. R package version 3.2.1 (2020).
  • 98.Collyer ML, Adams DC. RRPP: an R package for fitting linear models to high-dimensional data using residual randomization. Methods Ecol. Evol. 2018;9:1772–1779. doi: 10.1111/2041-210X.13029. [DOI] [Google Scholar]
  • 99.Collyer, M. L. & Adams, D. C. RRPP: Linear model evaluation with randomized residuals in a permutation procedure. R package version version 0.5.2 (2020).
  • 100.Jefferis, G. S. X. E. & Manton, J. D. NeuroAnatomy Toolbox v1.5.2. Zenodo10.5281/zenodo.10171 (2014).
  • 101.Collyer ML, Sekora DJ, Adams DC. A method for analysis of phenotypic change for phenotypes described by high-dimensional data. Heredity. 2015;115:357–365. doi: 10.1038/hdy.2014.75. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 102.Klingenberg CP. Visualizations in geometric morphometrics: how to read and how to make graphs showing shape changes. Hystrix It. J. Mamm. 2013;24:15–24. [Google Scholar]
  • 103.Mathematica version 13.1 (Wolfram Research, 2022).
  • 104.Harris CR, et al. Array programming with NumPy. Nature. 2020;585:357–362. doi: 10.1038/s41586-020-2649-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 105.Srivastava, A. & Klassen, E. P. in Motivation for Function and Shape Analysis in Functional and Shape Data Analysis (eds Srivastava, A. & Klassen, E. P.) 1–19 (Springer, 2016).
  • 106.Marron JS, Ramsay JO, Sangalli LM, Srivastava A. Functional data analysis of amplitude and phase variation. Stat. Sci. 2015;30:468–484. doi: 10.1214/15-STS524. [DOI] [Google Scholar]
  • 107.Srivastava, A. & Klassen, E. P. in Functional and Shape Data Analysis (eds Srivastava, A. & Klassen, E. P.) 73–123 (Springer, 2016).
  • 108.Ramos-Carreño, C., Torrecilla, J. L., Carbajo-Berrocal, M., Marcos, P. & Suárez, A. scikit-fda: a Python package for functional data analysis. J. Stat. Soft.109, 1–37 (2024).
  • 109.Pedregosa F, et al. Scikit-learn: machine learning in Python. J. Mach. Learn. Res. 2011;12:2825–2830. [Google Scholar]
  • 110.Arya, S., Mount, D., Kemp, S. E. & Jefferis, G. RANN: Fast nearest neighbour search (Wraps ANN Library) using L2 metric. R package version 2.6.1 (2019).
  • 111.Cignoni P, Rocchini C, Scopigno R. Metro: measuring error on simplified surfaces. Comput. Graph. Forum. 1998;17:167–174. doi: 10.1111/1467-8659.00236. [DOI] [Google Scholar]
  • 112.Ahrens, J., Geveci, B. & Law, C. in The Visualization Handbook (eds Hansen, C. D. & Johnson, C. R.) 717–731 (Elsevier, 2005).
  • 113.Blackie, L. et al. Source data for ‘The sex of organ geometry’ Blackie, L. et al. 2024, Nature. Figshare10.25418/crick.25598859.v1 (2024).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Information (56.6KB, docx)

List of full genotypes, sample sizes, P values and statistical tests used and tables of organ contact frequencies.

Reporting Summary (75.9KB, pdf)
Peer Review File (3.9MB, pdf)
Supplementary Tables (40.1KB, xlsx)

Supplementary Tables 1–37 statistical tests for geometric morphometric analysis of gut shape and values for proximity between organs.

Supplementary Video 1 (6.2MB, mov)

3D reconstructions of wild-type male and female gut. 360° rotation of representative 3D segmentations of male and female wild-type OregonR whole guts from proventriculus to ampulla, visualizing differences in shape and size. Male blue; female, orange.

Supplementary Video 2 (8.8MB, mov)

Trachea hold tension ex vivo. Laser ablation of trachea on ex vivo gut with trachea labelled with btl>myr::GFP. Two representative videos are shown—the first demonstrates trachea recoil after ablation (22 out of 25 guts) and second is an example of trachea and gut loop recoil (8 out of 25 guts). Initial paused frame indicates ablation ROI in red. Scale bar, 100 mm.

Source Data Fig. 1 (53.5KB, xlsx)
Source Data Fig. 2 (87.2KB, xlsx)
Source Data Fig. 3 (26.9KB, xlsx)
Source Data Fig. 4 (102.2KB, xlsx)
Source Data Fig. 5 (55.1KB, xlsx)

Data Availability Statement

All reconstructed microCT scans, gut centreline files and organ segmentation files are available through Figshare (10.25418/crick.25598859)113. All remaining data generated or analysed during this study are included in the Article (and its Extended Data and Supplementary Information). Further information can be requested from the corresponding author. Source data are provided with this paper.

Code generated and used in this study is available on GitHub through Zenodo (10.5281/zenodo.10905446)87.


Articles from Nature are provided here courtesy of Nature Publishing Group

RESOURCES