West Coast Green Crab Experiment Part 58

Re-analyzing Julia’s data

I’m exploring the potential for genotype to be linked to short-term thermal plasticity in green crab, so I figured I’d re-analyze some of Julia’s data to explore those possibilities further! All my analysis was done in this R Markdown script.

Genotype information

I figured I’d start by examining the genotypes of the crabs Julia used. She intended to have a balanced design with the three genotypes, but she did have a whole tank of crabs die which may have skewed things.

Screenshot 2024-12-20 at 3 37 53 PM

Figure 1. Genotype distribution for Julia’s experiment

The genotypes are in Hardy-Weinberg equilibrium!

Applying a mixed effects model

My next step was to examine differences in average TTR using a mixed effects model to account for crab as a random effect. As expected, I found that treatment, time, and their interaction had a significant impact on righting response! I also found that the presence of the T allele had a marginally significant impact on average TTR! The output can be found here. Of course I made some figures to try and reflect these results:

Screenshot 2024-12-20 at 3 37 00 PM

Screenshot 2024-12-20 at 3 37 21 PM

Figures 2-3. Average TTR figures

First and foremost, the raincloud plot is ugly. It really doesn’t work with this formatting, so that’s unfortunate. The boxplots look clean though! It’s apparent that having a T allele increases your average TTR.

Examining differences in TTR

I reformatted the data to be in a wide format to calculate differences in TTR between the initial and final timepoints. I also added the demographic data from the final timepoint:

modTTRWide <- modTTR %>%
  select(-c(date, trial.1:trial.3, integument.color:carapace.length, integument.cont, TTRSE:TTRavgFullHigh)) %>%
  pivot_wider(., names_from = "day", names_prefix = "day", values_from = "TTRavg") %>%
  select(., -c(day2:day3)) %>%
  mutate(., TTRdiff = day5 - day1) %>%
  left_join(x = .,
            y = (modTTR %>%
                   filter(., day == 5) %>%
                   select(., crab.ID, integument.cont, weight, carapace.width, missing.swimmer)),
            by = "crab.ID") #Take data and remove extraneous columns. Pivot dataframe and remove intermediate timepoints to have day 1 (before the experiment) and day 5 (after every crab experienced the 24 hr pulse). Calculate the difference in TTR between timepoints. Add demographic information from the final sampling point back to the dataframe.

Since I didn’t have multiple timepoints for each individual (just one value for TTRdiff per crab), I used a standard linear model with step to identify the best-fit model. Interestingly, treatment did not have a significant impact on the difference in TTR. Unsurprisingly, neither did any genotype factor. I made some figures that included treatment and genotype, as well as other significant factors from the model, in order to understand the patterns.

Screenshot 2024-12-20 at 3 39 04 PM

Screenshot 2024-12-20 at 3 39 43 PM

Screenshot 2024-12-20 at 3 40 10 PM

Screenshot 2024-12-20 at 3 40 24 PM

Figures 4-7. Differences in TTR by treatment, genotype, and other factors

Alright, I think a story is somewhat coming together regarding how genotype may or may not be responsible for short-term thermal responses! I’ll have to massage it out a bit more in a talk outline before I get cranking.

Going forward

  1. Clarify which crabs were actually sampled when and fix NAs in TTR data
  2. Identify samples for gene expression and metabolomics
  3. Examine HOBO data from 2023 experiment
  4. Demographic data analysis for 2023 paper
  5. Start methods and results of 2023 paper
Written on December 20, 2024