Data and scripts from: Otolith shape variation reveals a preliminary and novel stock structure signal of Yellowtail kingfish (Seriola lalandi lalandi) in Aotearoa New Zealand
Data files
Jul 13, 2026 version files 11.26 MB
-
otolithPaper_data.zip
11.25 MB
-
README.md
11.08 KB
-
reviewerComments_addressed_aoteaoraNZ_kingfish_otolithShape.zip
5.83 KB
Abstract
This dataset supports the paper: 'Otolith shape variation reveals novel stock structure of range-shifting Yellowtail Kingfish (Seriola lalandi lalandi) in Aotearoa New Zealand'
The dataset comprises otolith images, morphometric measurements, shape indices, wavelet coefficients, and R scripts necessary to reproduce all analyses presented in the paper. High-resolution otolith images have been converted to black-and-white format for standardized shape analysis.
The dataset supports three complementary experimental analyses: (i) left–right otolith asymmetry using standardised shape indices from paired otoliths (Prior Test 1), (ii) temporal comparison of otolith shape between 2014 and 2019 samples from the AKW region using standardised wavelet coefficients (Prior Test 2), and (iii) population-level stock discrimination across all five sampling areas using both standardised shape indices and wavelet coefficients.
Dataset DOI: 10.5061/dryad.gmsbcc335
Description of the data and file structure
This submission contains two compressed archives. The primary archive (otolithPaper_data.zip) contains three complementary analytical workflows, while the second archive (reviewerComments_addressed_aoteaoraNZ_kingfish_otolithShape.zip) contains supplementary analyses generated in response to peer review.
- otolithPaper_data.zip – the primary dataset used to reproduce all analyses presented in the manuscript. The dataset is organized into three main directories. Each directory contains:
- an otolithImages/ folder containing subfolders named AW, BP, CE, CH, and SO, corresponding to sampling regions used by ShapeR;
- a CSV file containing specimen metadata, morphometric measurements, and shape descriptors;
- an R script used to reproduce the analyses for that dataset.
- reviewerComments_addressed_aoteaoraNZ_kingfish_otolithShape.zip – additional scripts and analyses produced in response to peer-review comments that are supplementary to the primary dataset.
For the otolithPaper_data.zip, the three directories/analyses are;
populationLevelDifferences/
- Contains 112 otolith images from five sampling regions (AKW, CEW, CHA, SOU, BPLE)
- Used for stock-level discrimination analysis across all five populations
- Data file:
populationLevelDifferences_std_indicesContours.csv - Analysis script:
populationLevelDifferences_script.r
priorTest1/
- Contains 58 otolith images (paired left and right otoliths) from 29 individuals
- Used for left–right bilateral asymmetry analysis
- Data file:
priorTest1_right_left_pairs_std_indices.csv - Analysis script:
priorTest1_script.r
priorTest2/
- Contains the original temporal comparison dataset for AKW (2014 vs 2019) used in the manuscript. Expanded temporal analyses for CHA and CEW are provided separately in the reviewerComments_addressed archive.
- Used for temporal comparison of otolith shape variation within populations
- Data file:
priorTest2_std_indicesContours.csv
- Analysis script:
priorTest2_script.r
The reviewerComments_addressed_aoteaoraNZ_kingfish_otolithShape.zip archive contains the following supplementary scripts:
- priorTest2_2.1_2.2_2.3_script.r - Extended temporal comparison script that expands Prior Test 2 to include analyses across three populations: Prior Test 2.1: Temporal comparison of AKW samples (2014 vs 2019); Prior Test 2.2: Temporal comparison of CHA samples (2019 vs 2023); Prior Test 2.3: Temporal comparison of CEW samples (2019 vs 2021)
- powerAnalysis.r - Simulation-based power analysis for the population-level PERMANOVA using standardised wavelet coefficients. This script performs Monte Carlo simulations to estimate statistical power across a range of sample sizes per group, helping to assess the robustness of the stock discrimination findings.
Image Naming Convention
Otolith images follow a standardized naming convention:
[sample]_d.jpg= right (distal) sagittal otolith[sample]_ld.jpg= left (distal) sagittal otolith
The picname column in each CSV file corresponds to the image filename without the .jpg extension. For example, a picname value of "388827_03_d" refers to the image file "388827_03_d.jpg" located in the appropriate regional subfolder.
Data and Sample Summary
| Analysis | Dataset | Sample Composition | Primary Variables |
|---|---|---|---|
| Prior Test 1: Bilateral Asymmetry | priorTest1/ | 29 individuals (58 otoliths, paired L/R) | Standardised shape indices |
| Prior Test 2: Temporal Comparison | priorTest2/ | Temporal comparison of 2014 vs 2019 AKW samples [standardised wavelet coefficients (26 individuals/otoliths total)]. | Standardised wavelet coefficients, shape indices |
| Stock-level Discrimination | populationLevelDifferences/ | 112 individuals across 5 regions | Standardised shape indices, wavelet coefficients |
All otolith images have been converted to black-and-white for shape analysis. Complete metadata for each specimen is provided in the corresponding CSV file, including fish body length, sampling year, and microscope settings used during image acquisition.
Files and variables
The following standardized regional codes are used throughout the dataset to designate population origin:
- AKW – Auckland West
- CEW – Central West
- CHA – Challenger Plateau
- SOU – Southland
- BPLE – Bay of Plenty
Common Metadata Columns (All CSV Files)
All CSV files contain the following metadata columns:
| Column | Definition |
|---|---|
key |
A unique identifier assigned to each otolith image. |
folder |
The abbreviated sampling region code corresponding to the parent directory in which the otolith image file is stored. One of: AW, BP, CE, CH, SO (naming convention as required for ShapeR). |
picname |
The exact filename of the otolith image, excluding file extension. This corresponds directly to the .jpg filenames in the image subfolders. |
yr |
The calendar year in which the individual fish was collected. |
pop |
Population label. One of: AKW, CEW, CHA, SOU, BPLE. |
side |
Indicates whether the imaged otolith is from the right (d) or left (ld) sagittal pair. |
length_cm |
The total body length of the individual fish measured in centimetres. |
um.px |
The micrometre-per-pixel (µm/px) scaling factor derived from microscope calibration, used to convert pixel measurements to physical units. |
magnification |
The objective magnification used during image acquisition (typically 10× or 20×). |
light |
The illumination intensity used during image capture, expressed as a percentage of maximum output. |
cal |
The absolute calibration coefficient applied to each image. |
Otolith Morphometric Measurements
The following columns contain direct measurements of otolith size and shape (present in all CSV files):
| Column | Definition | Units |
|---|---|---|
otolith.area |
Surface area of the otolith contour. | mm² |
otolith.length |
Maximum length of the otolith along the major axis. | mm |
otolith.width |
Maximum width of the otolith along the minor axis. | mm |
otolith.perimeter |
Perimeter of the otolith contour. | mm |
mean.radii |
Mean radius from the otolith centre to contour. | mm |
Standardised Shape Indices (priorTest1 and priorTest2 data only)
Present in priorTest1 and priorTest2 datasets.
Columns ending in _std represent values standardised for fish length using the allometric correction described in the manuscript.
The following indices are included:
- Circularity
- Rectangularity
- Roundness
- Aspect_Ratio
- Form_Factor
- Ellipticity
- Squareness
Wavelet Coefficients (populationLevelDifferences and priorTest2 data only)
Present in the populationLevelDifferences and priorTest2 datasets.
Wavelet coefficient columns follow the naming convention:
Ws{n}c{m}
where:
- n = wavelet decomposition level (scale)
- m = coefficient number within that scale.
Fourier Descriptors (populationLevelDifferences and priorTest2 data only)
Present in the populationLevelDifferences and priorTest2 datasets.
Fourier descriptor columns follow the naming convention:
FD{n}{x}
where:
- n = harmonic number
- x = coefficient (a, b, c or d).
File: otolithPaper_data.zip
Otolith Data Directory Tree
Generated on: 2025-12-10 12:38:10.065404
Root directory: otolith_data
Total files: 205
File: reviewerComments_addressed_aoteaoraNZ_kingfish_otolithShape.zip
The archive reviewerComments_addressed_aoteaoraNZ_kingfish_otolithShape.zip contains supplementary analyses produced in response to peer-review comments. These files provide additional statistical support.
| File | Location | Purpose |
|---|---|---|
priorTest2_2.1_2.2_2.3_script.r |
reviewerComments_addressed/ | Extended temporal comparison script covering three populations with multiple year-to-year comparisons (Prior Tests 2.1–2.3) |
powerAnalysis.r |
reviewerComments_addressed/ | Simulation-based power analysis for PERMANOVA using standardised wavelet coefficients across multiple sample sizes. |
Code/software
All data processing, image-based otolith shape extraction, morphometric analyses, and statistical testing were conducted using the R statistical computing environment (R Foundation for Statistical Computing). All analyses rely exclusively on free and open-source software. The workflows were implemented as reproducible R scripts and are organised to mirror the directory structure of the data repository.
The exact versions of all R packages used in the analytical workflows are provided in the file software_package_versions.csv. The software environment used for this study included the following package versions:
| Package | Version |
|---|---|
| shapeR | 1.0.1 |
| dplyr | 1.1.4 |
| tidyr | 1.3.1 |
| stringr | 1.5.1 |
| purrr | 1.0.2 |
| vegan | 2.6.6.1 |
| pairwiseAdonis | 0.4.1 |
| rstatix | 0.7.2 |
| car | 3.1.3 |
| magick | 2.8.5 |
A total of 112 individuals were sampled from five geographically distinct fishing areas across New Zealand waters. Specimens were primarily collected as bycatch from commercial trawl fisheries targeting jack mackerel (sampling areas CHA, AKW, CEW, and SOU), while additional individuals were obtained by recreational angling from the Bay of Plenty East (BPLE).
Sagittal otoliths were extracted onboard by scientific observers. Due to the fragile nature of otoliths, either the left or right otolith was sometimes damaged during extraction; however, paired left and right otoliths were successfully recovered from 29 individuals and used for bilateral asymmetry analyses (priorTest1). All otoliths were imaged at high resolution using a Nikon imaging system coupled with NIS-Elements software and have been converted to black-and-white images for shape analysis.
