Scratching beyond the surface: examining macroecological patterns in avian eggshell texture
收藏NIAID Data Ecosystem2026-05-10 收录
下载链接:
https://figshare.com/articles/dataset/Scratching_beyond_the_surface_examining_macroecological_patterns_in_avian_eggshell_texture/26310574
下载链接
链接失效反馈官方服务:
资源简介:
Data and R scripts for Marie R. G. Attard, James Bowen, Steven J. Portugal (2025) Scratching beyond the surface: examining macroecological patterns in avian eggshell texture. J R Soc Interface 22 (232): 20240527. https://doi.org/10.1098/rsif.2024.0527
The dataset and accompanying R scripts are organised into three subfolders within the eggshell-texture zipped folder. This study utilised previously blown whole eggshells from 486 bird species, sourced from the Class II collection at the Natural History Museum, Tring (NHM, UK), and the destructive eggshell collection at the Western Foundation of Vertebrate Zoology, Camarillo (WFVZ, USA). The eggshells, intended for scientific research, were cleaned using damp cotton buds to remove surface dirt. Surface topography was analysed using three measures: roughness (Sa), skewness (Ssk), and kurtosis (Sku). Sa represents the average height variations on the surface, providing an index of smoothness or roughness. Ssk measures the distribution of surface features: positive values signify a predominance of peaks, while negative values indicate a greater presence of valleys. Sku assesses the geometry of these features, with values exceeding 3 suggesting the presence of sharp peaks or deep troughs, and values below 3 indicating a flatter, more uniform surface.
Profilometry measures of surface texture
The surface topography of eggshell surfaces was obtained using a three-dimensional non-contacting optical profilometer (DCM 3D, Leica Microsystems, Germany) connected to a white light interferometric microscope. For each eggshell fragment, a section along the surface was scanned at three non-overlapping locations at a focal depth of 100 μm (100 focal planes at 1 μm resolution) using the 20x objective magnification to give a measurement area of 636.61 x 477.25 μm2 (pixel resolution = 768 x 576). Sa, Ssk and Sku are based on surface height distribution and are scale-dependent. The same scanning parameters and magnification were applied to all eggshells scanned, therefore, direct comparisons of surface texture between specimens requires that the measurement scale and the sampling interval remain the same.
The foreground and background pigment of maculated eggshells were scanned separately at three randomly selected non-overlapping locations. In contrast, eggshells from immaculate eggs and densely speckled eggs— which were too difficult to divide into foreground and background pigments— were scanned at three randomly selected, non-overlapping locations. Each scan (total 7013 scans) was processed using the Scanning Probe Image Processor (SPIP) software (version 4.4.3.0, Image Metrology, Hørsholm, Denmark) to quantify Sa, Ssk and Sku. We used the plane correction tool to automatically correct plane distortions in the data by using polynomial functions to fit the surface topography. In this case, a second-order polynomial was used as the slope on the data was approximately spherical, then the lowest z-value was adjusted to 0 nm. These corrections helps eliminate artifacts caused by sample tilt or uneven surfaces, ensuring that the quantitative measurements of surface features are accurate and reliable.
When using an interferometer to scan curved eggshells, we occasionally encountered missing pixel height data due to several factors. The curvature of the eggshell can create varying angles of incidence for the light used in interferometry; if the angle becomes too steep, it may result in low reflectivity and consequently missing data. Additionally, this curvature can cause sections of the surface to fall out of the focal plane or misalign with the beam path, leading to gaps in the pixel data. Our scans were taken under a narrow focal plane, so the centre of the field of view usually captured the topography well and were suitable for inclusion in the analysis, even where pixel information was absent around the scan edges. Since interferometry relies on coherent light, any variations in surface texture can disrupt interference patterns. Rough or imperfect surfaces may generate noisy data or result in the loss of coherence, contributing to missing pixels. To address these issues, we meticulously inspected each eggshell surface scan with less than 40% pixel coverage for irregularities in SPIP. This inspection revealed that areas at the corners or sides of the rectangular scanning region often lacked pixel data, as these sections typically fell outside the focal plane. If sufficient data remained within the focal plane, those scans were cropped to remove low-quality regions for analysis. Conversely, scans exhibiting extensive pixelation were deemed indicative of surface imperfections, such as dirt or other obstructions, leading to noisy data, and were subsequently excluded from our analysis.
Subfolder 1: Data
This folder contains raw and processed data related to the study.
eggshell_texture_raw data: eggshell_topography_raw_data.csv includes raw surface topography data, encompassing scans from multiple eggs per species, where available.bird_lifehistory: bird_lifehistory.csv contains life-history traits for each bird species and their sources.eggshell_wettability: species_eggshell_wettability_data.csv contains eggshell wettability measurements from Attard et al. 2021 Ecological drivers of eggshell wettability in birds. J R Soc Interface. 18: 20210488. doi: 10.1098/rsif.2021.0488.eggshell_conductance_data: species_eggshell_conductance_data.csv contains eggshell conductance measurements from Attard and Portugal 2021 Climate variability and parent nesting strategies influence gas exchange across avian eggshells. Pro Bio Sci. 288(1953): 20210823. doi: 10.1098/rspb.2021.0823.phylogenetic_tree:Hackett_phylogenetic_tree.nex provides avian phylogenetic trees constructed via http://www.birdtree.org using the Hackett et al. (2008) backbone tree. Ten thousand trees were generated, encompassing all species in this study.BLIOCPhyloMasterTax.csv lists all species included in the tree based on the backbone from Hackett et al. (2008).Subfolder 2: R Scripts
Five R scripts were developed for data analysis and visualisation:
1_RMarkdown_Extract_Eggshell_Topography.Rmd:
Processes raw topography data and performs key analyses:Surface texture profiles from brood parasites were excluded from analysis as they have specific eggshell adaptations to suit their unique breeding strategy. Brood parasite values are in the raw data.Removes low quality (less than 40% pixel coverage) scans.Identifies and excludes influential values based on Cook's distance. For species represented by a single egg, any influential specimen was excluded from the analysis. For species represented by multiple eggs, if all specimens were identified as influential, all were retained for analysis. However, if only a portion of a species’ eggs were identified as influential, those influential specimens were excluded from further analysis.Generates a maximum clade credibility tree (species_surface_texture_phylogenetic_tree.nwk) for phylogenetic analyses.Produces specimen- and species-level topography mean values (specimen_texture_lifehistory_data_for_MCMCglmm.csv and species_surface_texture_lifehistory.csv).Assesses predictor collinearity using pairwise comparisons and Variance Inflation Factors (VIF).Creates hybrid boxplots and scatterplots for influential life-history traits.2_RMarkdown_MCMCglmm.Rmd:
Uses specimen_texture_lifehistory_data_for_MCMglmm.csv and species_surface_texture_phylogenetic_tree.nwk to evaluate the impact of life-history traits on eggshell texture for 460 species through MCMCglmm modelling. Results are saved in the MCMCglmm folder under three levels per texture measure.3_RMarkdown_Tree_Figure.Rmd:
Generates phylogenetic tree diagrams for Sa, Ssk, and Sku, highlighting influential categorical predictors.4_RMarkdown_MCMCglmm_Posterior_Predictions_HPC.Rmd:Produces posterior predictions for eggshell surface traits, generated from MCMCglmm models across all combinations of life-history predictors.Continuous predictors binned into 3 equally spaced values; all categorical combinations included.All table outputs are saved under eggshell-texture/output/MCMCglmm_HPC/ folder, including predictions. There is one file per eggshell surface trait (1,048,575 rows) representing posterior predictions for every predictor combination.Predictions computed in 500-row batches; posterior means and 95% HPDIs extracted..Analysis run on the British Antarctic Survey HPC (SLURM; 160 GB RAM, 2 cores) in a Conda environment called eggshell, which contained R. Required packages are listed in the R script.5_RMarkdown_MCMCglmm_Posterior_Predictions_Figure.Rmd:Plots showing posterior density, credible intervals (50%, 80%, 95%) and median for all significant predictors identified in '2_RMarkdown_MCMCglmm.Rmd'.Figures saved under eggshell-texture/output/Figures/.Subfolder 3: Output
This folder contains results and visualisations from the R scripts, organised into the following subfolders:
Body_mass: Phylogenetic Generalised Least Squares (PGLS) results showing body mass effects on Sa, Ssk, and Sku.Conductance: Phylogenetic Generalised Least Squares (PGLS) results for eggshell conductance's influence on Sa, Ssk, and Sku.Cooks_distance: Plots of influential values based on Cook's distance.Correlation: Pairwise correlation plots and VIF results.Figures: Phylogenetic trees, hybrid boxplots and posterior predictor distributions from MCMCglmm.MCMCglmm: Results for releveling categorical variables in MCMCglmm to complete pairwise comparisons using 2_RMarkdown_MCMCglmm.Rmd.MCMCglmm_HPC: Posterior predictions for eggshell surface traits generated from MCMCglmm models across all combinations of life-history predictors. To manage computational demands, reduced MCMC settings were used (80,000 iterations, burn-in of 20,000, thinning interval of 500), with only the prediction outputs retained for analysis. Predictions were produced using the script 4_RMarkdown_MCMCglmm_posterior_mean_HPC.Rmd on a high-performance computing cluster (SLURM scheduler; 160 GB RAM, 2 cores).Phylogenetic_Comparative_Analysis_data: Data for MCMCglmm, phylogenetic signal, and PGLS analyses.Phylogenetic_signal: Results for Sa, Ssk, and Sku phylogenetic signal.Repeatability: Tested the repeatability of each eggshell texture measurements by conducting a repeatability test for multiple measures at different locations on the same fragment. Repeatability tests were conducted separately for for immaculate and maculate eggs (foreground and background pigments analysed separately). Scans of maculated eggs were cropped to isolate either the foreground or background pigment. These repeatability tests evaluated variability in surface texture across 3 or more scans at different locations on the same egg for the maculation or pigment type being analysed.Wettability: Phylogenetic Generalised Least Squares (PGLS) results for the influence of contact angle and spreadability on Sa, Ssk, and Sku. All wettability measures (contact angle and spreadability) were from Attard et al. 2021.
创建时间:
2025-12-07



