Sovereign 8s.is mirror of standardgalactic/SpermWhale_SexAge_Drone_VSC
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-01-15 17:54:45 -05:00
Data updated north atlantic male outputs 2026-01-15 16:23:50 -05:00
Scripts pdated colours, added point size as indicator of certainty, and removed pd from figure 6, too much info 2026-01-15 17:54:45 -05:00
.gitignore removed results from tracked changes 2025-10-21 17:41:20 -03:00
.Rapp.history cleaning for preprint 2025-10-17 14:58:22 -03:00
bootstrapped_estimates.RData updated model fitting with new optim functions which I changed to be able to try out a linear version 2026-01-15 16:22:06 -05:00
bootstrapped_estimates_linear_version.RData finally finished parameterizing and optimizing linear model and produced outputs 2026-01-14 20:57:58 -05:00
bootstrapped_estimates_plus_mean.RData updated model fitting with new optim functions which I changed to be able to try out a linear version 2026-01-15 16:22:06 -05:00
git added flight logs to gitignore 2025-06-17 13:23:12 -03:00
readme.Rmd finished readme file update 2025-10-21 17:40:15 -03:00
SpermWhale_SexAge_Drone_VSC.Rproj renaming and cleaning scripts 2025-06-13 13:35:01 -03:00

# Determining sperm whale sex and developmental stage from morphometric measurements

## Summary

## Project Structure

The project has the following directory structure:

```
SpermWhale_SexAge_Drone_VSC/
├── readme.Rmd              # Project documentation
├── Data/                  # Data directory
│   ├── Processed_Data/    # Cleaned and processed data used for analysis
└── Scripts/               # R scripts directory
    ├── functions.R       # Helper functions for data processing and analysis
    ├── 00_DJI_Mini_Callibration.rmd            # Analyzes measurement error in drone data
    ├── 01_Nishiwaki1963_parameters.R         # Extracts prior parameters from literature
    ├── 02_a_Bootstrapped_Model_fitting.R       # Fits growth curves with bootstrapping
    ├── 02_b_Model_Fitting_Means.R              # Fits models to mean bootstrapped measurements
    ├── 03_Estimate_Male_Fprobs.R             # Estimates female probabilities for males
    ├── 04_Model_Visualizing.R                # Creates main result visualizations
    ├── 05_Robustness_Checks.R                  # Tests sensitivity to model assumptions (priors and chm)
    └── 06_Visualize_Peduncle_Dive_Patterns.R   # Visualizes peduncle diving behavior by sex/size


## Data Files

### Processed Data
- `Data/Processed_Data/Callibration_Data_clean.csv`: clean measurements of callibration object (Balaena)
- `Data/Processed_Data/males_nishiwaki`: Mean TL and nose to body ratio measures from males extracted from Nishiwaki et al.
- `Data/Processed_Data/females_nishiwaki`: Mean TL and nose to body ratio measures from females extracted from Nishiwaki et al.
- `Data/Processed_Data/nishiwaki_parameters.csv`: Extracted growth parameters from historical data
- `Data/Processed_Data/id_morpho_output_clean_processed.csv`: Cleaned individual measurements and associated metadata
- `Data/Processed_Data/NorthAtlantic_Males.csv`: Morphometric measurements of males from North Atlantic

### Intermediate Files
- `bootstrapped_estimates.RData`: Bootstrapped model parameters and confidence intervals
- `bootstrapped_estimates_plus_mean.RData`: parameter and p(fem) estimates based on bootsrapped means for each individual