Persistent Legacy Effects of Marine Heatwaves on Coral Symbioses.
The 9 matches
- [1] § Materials and Methods › Study Site ↔ Scripts/01_Extracting_site_environmental_data_Fig1.R, lines 266–349 · score 0.72 · degree heating weeks, bleaching alert, SST, DHW, temperature, vertical
- [2] § Materials and Methods › Statistical Analyses ↔ Scripts/03_Classifying_symbionts_from_sequence_data_Fig3_FigS3.R, lines 543–595 · score 0.68 · Unifrac dissimilarities, sequence variants, coral colonies, subset, S3, date
- [3] § Materials and Methods › Statistical Analyses ↔ Scripts/02_Genus_level_analyses_Fig2_Fig4_FigS4.R, lines 290–350 · score 0.67 · glmmTMB, fit, Beta, leeward, windward, models
- [4] § Materials and Methods › Quantifying Acute and Chronic Disturbance Exposure ↔ Scripts/01_Extracting_site_environmental_data_Fig1.R, lines 266–349 · score 0.63 · Degree Heating Week, minimal, SST, daily, DHW, temperature
- [5] § Materials and Methods › Statistical Analyses ↔ Scripts/02_Genus_level_analyses_Fig2_Fig4_FigS4.R, lines 188–228 · score 0.60 · collection date, tracked colonies, logistic, regressions, symbiotic, ASV
- [6] § Materials and Methods › Clustering and Classifying Symbiodiniaceae Sequence Data ↔ Scripts/03_Classifying_symbionts_from_sequence_data_Fig3_FigS3.R, lines 543–595 · score 0.57 · amplicon sequence variants, classify, unifrac, distances, ASVs, taxa
- [7] § Materials and Methods › Study Site ↔ Scripts/02_Genus_level_analyses_Fig2_Fig4_FigS4.R, lines 290–350 · score 0.57 · environmental metrics, island, nitrate, nitrite, leeward, windward
- [8] § Results › No Recovery of Pre‐Heatwave Cladocopium Taxa ↔ Scripts/03_Classifying_symbionts_from_sequence_data_Fig3_FigS3.R, lines 684–722 · score 0.57 · C50a, C15h, C116, profiles, ASVs, sequence
- [9] § Materials and Methods › Clustering and Classifying Symbiodiniaceae Sequence Data ↔ Scripts/02_Genus_level_analyses_Fig2_Fig4_FigS4.R, lines 1–47 · score 0.54 · symbiont genera, S4, symbiont genus, RRA, background, 90 %
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 384 lines · 21 KB · no license · 4 matches
- library(ggplot2)
- library(tibble)
- library(tidyr)
- library(tidyverse)
- library(plyr)
- library(dplyr)
- library(vegan)
- library(glmmTMB)
- library(arm)
- library(nnet)
- library(gamlss)
- ######################################################
- #Summarising assemblages to symbiont genera, Figure S4
- ######################################################
- asv_genus_props <- read.csv('Data/Symbiont_ASV_genus_proportions.csv')
- #Symbiont genus proportion histogram for Fig S3
- asv_genus_props_long<-asv_genus_props %>%
- pivot_longer(c(C_prop, D_prop, A_prop),names_to = 'genus', values_to = 'proportion')
- asv_genus_props_long$genus<-revalue(asv_genus_props_long$genus, c("C_prop"='Cladocopium',"D_prop"='Durusdinium',"A_prop"='Symbiodinium'))
- ggplot(filter(asv_genus_props_long,asv_genus_props_long$proportion>0))+
- geom_histogram(position='stack', aes(x=proportion, fill=genus), bins = 50)+
- theme_classic(base_size = 13)+
- scale_fill_manual(values=c('#6D9B8F','#C1260E','#FFD700'),name='')+
- labs(x='Genus proportions >1%',y='n(samples)')+
- theme(legend.position = 'inside', legend.position.inside = c(0.5,0.4))+
- scale_x_continuous(expand=c(0.01,0.01), n.breaks = 10)+
- scale_y_continuous(expand=c(0.01,0.01))+
- geom_vline(xintercept = 0.1,linetype='dashed')+
- geom_vline(xintercept = 0.9,linetype='dashed')+
- annotate("text", x = 0.05, y = 280, label = "Background", size = 3.5,alpha=0.8, angle=90)+
- annotate("text", x = 0.51, y = 280, label = "Co-dominant", size = 3.5,alpha=0.8, angle=90)+
- annotate("text", x = 0.95, y = 280, label = "Dominant", size = 3.5,alpha=0.8, angle=90)
- ggsave('Figures/FigS4_genus_rra.pdf')
- ######################################################
- #Fig.2: Dominant genera and persistence of Durusdinium
- ######################################################
- asv_genus_props$map_site_name<-factor(asv_genus_props$map_site_name, levels=c('VL1', 'VL3', 'VL4','L1','M1','M2','M3','M5','H1','VH1','VH2','VH3'))
- asv_genus_props$disturbance_cat<-factor(asv_genus_props$disturbance_cat,levels=c('Very Low','Low','Medium','High', 'Very High'))
- asv_genus_props$dom_genus<-factor(asv_genus_props$dom_genus, levels=c('C', 'D', 'CD','AD'))
- asv_genus_props$exped_class<-paste(asv_genus_props$expedition)
- asv_genus_props$exped_class<-revalue(asv_genus_props$exped_class, c('2014'='2014-2015 (i-iv)','2015a'='2014-2015 (i-iv)','2015b'='2014-2015 (i-iv)','2015c'='2014-2015 (i-iv)', '2016a'='2016-2017 (v-vii)', '2016b'='2016-2017 (v-vii)','2017'='2016-2017 (v-vii)', '2018'='2018-2019 (viii-ix)','2019'='2018-2019 (viii-ix)','2023b'='2023 (x)'))
- asv_genus_props$exped_class<-factor(asv_genus_props$exped_class, levels=c('2014-2015 (i-iv)', '2016-2017 (v-vii)', '2018-2019 (viii-ix)','2023 (x)'))
- # UpSet plot of symbionts hosted by platygyra by expedition
- # Sum the frequency of genera present by disturbance and expedition grouping
- genus_exp_disturb_df <- asv_genus_props %>%
- group_by(exped_class, disturbance_cat, dom_genus) %>%
- reframe(n_obs = n())
- # Sum samples collected in each expedition grouping
- n_samples_by_group <- genus_exp_disturb_df %>%
- group_by(exped_class) %>%
- dplyr::summarize(sum_n_obs = sum(n_obs))
- # Convert sums to percentage of samples in expedition grouping
- genus_exp_disturb_df <- genus_exp_disturb_df %>%
- left_join(n_samples_by_group) %>%
- mutate(prop_n_obs = (n_obs / sum_n_obs) * 100)
- # construct dots of the upset plot
- domgenus_dot_df <- data.frame(genera_present = c('C', 'D', 'CD', 'AD')) %>%
- mutate(genera_present = factor(genera_present, levels = rev(c('C', 'D', 'CD', 'AD')))) %>%
- mutate(`25` = ifelse(grepl('C',genera_present), 'Y', '-'),
- `50` = ifelse(grepl('D',genera_present), 'Y', '-'),
- `75` = ifelse(grepl('A',genera_present), 'Y', '-')) %>%
- pivot_longer(-genera_present, values_to = 'Present', names_to = 'Genus') %>%
- filter(Present == 'Y') %>%
- mutate(expedition_class = '0_a_UpSet') %>%
- mutate(Genus = as.numeric(Genus))
- # plots groupings
- ggplot() +
- geom_line(data = domgenus_dot_df,
- aes(x = Genus, y = genera_present, group = genera_present),
- size = 3, colour = 'grey40') +
- geom_point(data = domgenus_dot_df,
- aes(x = Genus, y = genera_present),
- shape = 21, size = 5, colour = 'white', fill = 'black')+
- xlab('')+ylab('')+
- theme_void()+
- theme(axis.text.x = element_blank(),axis.text.y=element_blank(), axis.ticks.y = element_blank(),axis.ticks.x = element_blank())
- ggsave('Figures/Fig2_clade_groups.pdf', width = 50, height = 50, units = 'mm')
- genus_exp_disturb_df$dom_genus<-factor(genus_exp_disturb_df$dom_genus, levels=c('AD','CD','D','C'))
- ggplot()+
- geom_col(data = genus_exp_disturb_df,
- aes(x = prop_n_obs, y = dom_genus, fill = disturbance_cat)) +
- facet_grid(. ~ exped_class) +
- geom_hline(yintercept = c(0.5,1.5,2.5,3.5,4.5,5.5,6.5),
- colour = 'grey78') +
- theme_classic(base_size = 13)+
- scale_fill_manual(values = c('#01655f','#5db2ab','#c4e9e2','#d7b364','#8e520a'), name='Human disturbance') +
- ylab('') +
- xlab('Samples (%)') +
- theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1),axis.text.y=element_blank(), axis.ticks.y = element_blank())+
- scale_x_continuous(expand=c(0.03,0),limits=c(0,100))+
- scale_y_discrete(expand=c(0,0))
- ggsave('Figures/Fig2_clade_barplots.pdf', width = 180, height = 80, units = 'mm')
- #test the effects of date (2014 to 2023, rescaled) and continuous disturbance (rescaled) on binary dominance of D 10%.
- asv_genus_props$collection_date<-as.Date(as.character(asv_genus_props$collection_date),format='%Y%m%d')
- asv_genus_props$disturbance_rescaled<-scale(asv_genus_props$cont_disturbance, center = TRUE, scale = TRUE)
- asv_genus_props$collection_date_rescaled<-scale(as.numeric(asv_genus_props$collection_date),center=T, scale=T)
- asv_genus_props_after<-filter(asv_genus_props, asv_genus_props$before_after=='After')
- start_date <- as.Date("2014-08-01")
- end_date <- as.Date("2023-09-01")
- # Generate the sequence of dates with 1-month intervals using lubridate
- date_sequence <- seq.Date(from = start_date, to = end_date, by = "month")
- new_data <- expand.grid(
- cont_disturbance = seq(from=0, to=7500, by=400),
- exped_class = levels(asv_genus_props$exped_class))
- logistic_Ddom <- glm(binary_Ddom ~ cont_disturbance * exped_class,
- data = asv_genus_props,
- family = binomial,
- na.action = na.omit)
- predictions <- predict(logistic_Ddom, newdata = new_data, type = "response", se.fit = TRUE)
- new_data$predicted_Ddom<-predictions$fit
- new_data$se<-predictions$se.fit
- new_data$upperci <- new_data$predicted_Ddom + 1.96*(new_data$se)
- new_data$lowerci <- new_data$predicted_Ddom - 1.96*(new_data$se)
- new_data$upperci[new_data$upperci>1]<-1
- new_data$lowerci[new_data$lowerci<0]<-0
- ggplot() +
- theme_classic(base_size = 13)+
- geom_ribbon(data=new_data, aes(ymin=lowerci, ymax=upperci,x=cont_disturbance),alpha=0.2) +
- geom_line(data=new_data,aes(y=predicted_Ddom, x=cont_disturbance))+
- geom_jitter(data=asv_genus_props, aes(y=binary_Ddom, x=cont_disturbance), colour='darkgrey',width = 300, height =0, alpha=0.5, shape=1)+
- ylab("Durusdinium over 10%")+
- xlab("Local Disturbance")+
- facet_grid(. ~ exped_class) +
- theme(axis.text.x = element_text(angle=90), strip.text = element_blank())+
- scale_y_continuous(breaks = c(0.00, 0.5, 1.00), expand = c(0.02,0.06))
- ggsave('Figures/Fig2_clade_logres.pdf', width = 150, height = 80, units = 'mm')
- #effect of continuous disturbance on binary Ddom
- logistic_Ddom201415 <- glm(binary_Ddom ~ disturbance_rescaled,
- data = filter(asv_genus_props, asv_genus_props$exped_class=='2014-2015 (i-iv)'),
- family = binomial,
- na.action = na.omit)
- summary(logistic_Ddom201415) # z=5.946, p=2.74e-09 ***
- logistic_Ddom201617 <- glm(binary_Ddom ~ disturbance_rescaled,
- data = filter(asv_genus_props, asv_genus_props$exped_class=='2016-2017 (v-vii)'),
- family = binomial,
- na.action = na.omit)
- summary(logistic_Ddom201617) # z=0.005, p=0.996
- logistic_Ddom201819 <- glm(binary_Ddom ~ disturbance_rescaled,
- data = filter(asv_genus_props, asv_genus_props$exped_class=='2018-2019 (viii-ix)'),
- family = binomial,
- na.action = na.omit)
- summary(logistic_Ddom201819) # z=0.005, p=0.996
- logistic_Ddom2023 <- glm(binary_Ddom ~ disturbance_rescaled,
- data = filter(asv_genus_props, asv_genus_props$exped_class=='2023 (x)'),
- family = binomial,
- na.action = na.omit)
- summary(logistic_Ddom2023) # z=0.42, p=0.675
- logistic_Ddomafterexpeds <- glm(binary_Ddom ~ rescale(collection_date),
- data = filter(asv_genus_props, asv_genus_props$exped_class!='2014-2015 (i-iv)'),
- family = binomial,
- na.action = na.omit)
- summary(logistic_Ddomafterexpeds) # z=1.251, p=0.211
- nobeforelowdist<-filter(asv_genus_props, asv_genus_props$exped_class!='2014-2015 (i-iv)'|asv_genus_props$cont_disturbance>2000)
- logistic_Ddombefhighafterexpeds <- glm(binary_Ddom ~ rescale(collection_date) + rescale(cont_disturbance),
- data = nobeforelowdist,
- family = binomial,
- na.action = na.omit)
- summary(logistic_Ddombefhighafterexpeds) # collection date: z=1.702, p=0.0888, disturbance: z=-0.189, p=0.8501
- sample_size_tab<-asv_genus_props %>%
- group_by(exped_class)%>%
- dplyr::summarise(ncols=length(unique(coral_tag)),nsamps=length(unique(sample_name)))
- sample_size_tab
- #Tracked colonies D persistence
- ad_tracked<-read.csv('Data/AD_tracked_colony_transitions.csv')
- ad_tracked$aft.collection_date<-as.Date(as.character(ad_tracked$aft.collection_date),format='%Y%m%d')
- logistic_Ddom_tracked<- glm(retained_ddom_binary ~ rescale(aft.collection_date) + rescale(cont_disturbance),
- data=ad_tracked,
- family=binomial,
- na.action=na.omit)
- logistic_Ddom_tracked
- #model will not converge because all colonies retained their Durusdinium (variance =0).
- ##############################################
- #Fig.4a, Fig.4b: Flux between symbiotic states
- ##############################################
- ad_tracked$strict_timespan<-as.factor(ad_tracked$strict_timespan)
- start_date <- as.Date("2016-11-01")
- end_date <- as.Date("2023-09-01")
- # Generate the sequence of dates with 1-month intervals using lubridate
- date_sequence <- seq.Date(from = start_date, to = end_date, by = "month")
- ad_tracked$disturbance_cat<-factor(ad_tracked$disturbance_cat, levels=c('Very Low','Low','Medium','High','Very High'))
- ad_tracked$X2_timespans<-as.factor(ad_tracked$X2_timespans)
- ad_tracked$timespan<-as.factor(ad_tracked$timespan)
- ad_tracked$transition_AD<-factor(ad_tracked$transition_AD, levels=c('D_D','AD_AD','AD_D','D_AD'))
- ad_tracked$rescaled_A_change_asv <- (ad_tracked$A_change_asv + 1) / 2 #rescale between 0 and 1 for binomial & beta regressions
- #effect of continuous disturbance
- library(betareg)
- AD1619<-filter(ad_tracked, ad_tracked$X2_timespans!='2019-23')
- beta_change1619 <- betareg(rescaled_A_change_asv ~ rescale(cont_disturbance),
- data =AD1619)
- summary(beta_change1619)
- AD1923<-filter(ad_tracked, ad_tracked$timespan=='Jul19-Sep23')
- beta_change1923 <- betareg(rescaled_A_change_asv ~ rescale(cont_disturbance),
- data = AD1923)
- summary(beta_change1923)
- p_values_1619 <- summary(beta_change1619)$coefficients$mean[, "Pr(>|z|)"]
- p_values_1923 <- summary(beta_change1923)$coefficients$mean[, "Pr(>|z|)"]
- p_values_combined <- c(p_values_1619, p_values_1923)
- p.adjust(p_values_combined, method = "bonferroni") #1619: z=−2.636,p Bonferroni= 0.0336, 1923: z=2.70, p Bonferroni=0.0276
- #predict models for plotting
- new_AD1619 <- data.frame(cont_disturbance = seq(min(AD1619$cont_disturbance),
- max(AD1619$cont_disturbance), length.out = 184))
- # Compute model matrix (auto-applies rescale)
- new_AD1619$model_matrix <- model.matrix(~ rescale(cont_disturbance), data = new_AD1619)
- # Extract coefficients and variance-covariance matrix
- coefs_1619 <- coef(beta_change1619)[1:2]
- vcov_1619 <- vcov(beta_change1619)[1:2, 1:2]
- # Compute predicted values
- new_AD1619$predicted <- plogis(new_AD1619$model_matrix %*% coefs_1619) # Logit transformation
- # Compute standard errors
- se_AD1619 <- sqrt(diag(new_AD1619$model_matrix %*% vcov_1619 %*% t(new_AD1619$model_matrix)))
- # Compute shading range (mean ± 1 SE)
- new_AD1619$lower <- plogis(new_AD1619$model_matrix %*% coefs_1619 - se_AD1619)
- new_AD1619$upper <- plogis(new_AD1619$model_matrix %*% coefs_1619 + se_AD1619)
- # Ensure shading stays in (0,1) range of beta regression
- new_AD1619$lower <- pmax(0, new_AD1619$lower)
- new_AD1619$upper <- pmin(1, new_AD1619$upper)
- new_AD1619$X2_timespans<-c('2016-17, 2017-18 or 2018-19')
- new_AD1923 <- data.frame(cont_disturbance = seq(min(AD1923$cont_disturbance),
- max(AD1923$cont_disturbance), length.out = 59))
- # Compute model matrix (auto-applies rescale)
- new_AD1923$model_matrix <- model.matrix(~ rescale(cont_disturbance), data = new_AD1923)
- # Extract coefficients and variance-covariance matrix
- coefs_1923 <- coef(beta_change1923)[1:2]
- vcov_1923 <- vcov(beta_change1923)[1:2, 1:2]
- # Compute predicted values
- new_AD1923$predicted <- plogis(new_AD1923$model_matrix %*% coefs_1923) # Logit transformation
- # Compute standard errors
- se_AD1923 <- sqrt(diag(new_AD1923$model_matrix %*% vcov_1923 %*% t(new_AD1923$model_matrix)))
- # Compute shading range (mean ± 1 SE)
- new_AD1923$lower <- plogis(new_AD1923$model_matrix %*% coefs_1923 - se_AD1923)
- new_AD1923$upper <- plogis(new_AD1923$model_matrix %*% coefs_1923 + se_AD1923)
- # Ensure shading stays in (0,1) range of beta regression
- new_AD1923$lower <- pmax(0, new_AD1923$lower)
- new_AD1923$upper <- pmin(1, new_AD1923$upper)
- new_AD1923$X2_timespans<-c('2019-23')
- AD_betareg<-rbind(new_AD1619,new_AD1923)
- ggplot() +
- theme_test(base_size = 13)+
- geom_line(data=AD_betareg, aes(y=predicted, x=cont_disturbance),colour='black', size=0.3)+
- geom_ribbon(data=AD_betareg, aes(ymax=upper, ymin=lower, x=cont_disturbance),
- fill='grey',alpha=0.4)+
- geom_jitter(data=ad_tracked, aes(y=rescaled_A_change_asv, x=cont_disturbance),
- colour='grey60', width = 300, height =0, size=2)+
- ylab("Change in Symbiodinium")+
- xlab("Human Disturbance")+
- facet_grid(. ~ X2_timespans) +
- theme(axis.text.x = element_text(angle=90), legend.position = 'none')+
- scale_y_continuous(breaks=c(0.25,0.5,0.75), labels=c('-0.5','0.0','+0.5'))
- ggsave('Figures/A_by_disturbance.pdf', units = 'mm', width=105, height=90)
- ad_tracked$coral_order<-as.factor(ad_tracked$coral_order)
- ad_tracked$coral_order<-factor(ad_tracked$coral_order, levels=rev(levels(ad_tracked$coral_order)))
- ad_tracked$timespan<-factor(ad_tracked$timespan, levels=c('Mar16-Nov16','Nov16-Jul17','Jul17-Jul18','Jul18-Jul19','Jul19-Sep23'))
- ######################################################
- #Fig.4c: Environmental metric effects on Symbiodinium
- ######################################################
- site_metadata<-read.csv('Data/Platygyra_site_metadata.csv')
- ad_tracked<-dplyr::left_join(ad_tracked,site_metadata,by='map_site_name', relationship = 'many-to-one')
- ad_tracked$coral_tag<-as.factor(ad_tracked$coral_tag)
- ad_tracked$map_site_name<-as.factor(ad_tracked$map_site_name)
- ad_tracked$cont_disturbance_rescaled<-rescale(ad_tracked$cont_disturbance)
- ad_tracked$site_meanafter_nitratenitrite_rescaled<-rescale(ad_tracked$site_meanafter_nitratenitrite)
- ad_tracked$site_meanafter_vis_rescaled<-rescale(ad_tracked$site_meanafter_vis)
- ad_tracked$meanafter_chla_rescaled<-rescale(ad_tracked$meanafter_chla)
- ad_tracked$disturbance_cat<-factor(ad_tracked$disturbance_cat, levels=c('Very Low','Low','Medium','High','Very High'))
- ad_tracked$island_side<-factor(ad_tracked$island_side, levels=c('leeward', 'windward'))
- ad_trackedmod1<-gamlss(A_change_asv~ X2_timespans *site_meanafter_nitratenitrite_rescaled+ X2_timespans*site_meanafter_vis_rescaled+ X2_timespans*meanafter_chla_rescaled +random(coral_tag)+ random(map_site_name)+random(disturbance_cat), control = gamlss.control(trace = TRUE, lambda = "auto"), data= ad_tracked)
- summary(ad_trackedmod1)
- ad_trackedmod2<-glmmTMB(A_change_asv~ X2_timespans*site_meanafter_nitratenitrite_rescaled*island_side+ X2_timespans*site_meanafter_vis_rescaled*island_side+ X2_timespans*meanafter_chla_rescaled*island_side +(1|disturbance_cat)+(1|coral_tag)+(1|map_site_name), data= ad_tracked)
- summary(ad_trackedmod2)
- ad_trackedmod3<-glmmTMB(A_change_asv~ X2_timespans*site_meanafter_nitratenitrite_rescaled+ X2_timespans*site_meanafter_vis_rescaled+ X2_timespans*meanafter_chla_rescaled+ X2_timespans*island_side +(1|disturbance_cat), data= ad_tracked)
- summary(ad_trackedmod3)
- ad_trackedmod4<-glmmTMB(A_change_asv~ X2_timespans*site_meanafter_nitratenitrite_rescaled+ X2_timespans*site_meanafter_vis_rescaled+ X2_timespans*meanafter_chla_rescaled + (1|island_side)+(1|disturbance_cat), data= ad_tracked)
- summary(ad_trackedmod4)
- #ad_trackedmod2 is superior to other models in terms of AIC and variance explained
- #building on this, using a beta distribution improves model fit compared to a gausssina distribution
- ad_betareg<-glmmTMB(rescaled_A_change_asv~ X2_timespans*site_meanafter_nitratenitrite_rescaled*island_side+ X2_timespans*site_meanafter_vis_rescaled*island_side+ X2_timespans*meanafter_chla_rescaled*island_side +(1|disturbance_cat)+(1|coral_tag)+(1|map_site_name),family = beta_family(), data= ad_tracked)
- summary(ad_betareg)
- #random effects explain very little variance
- # Output model coefficients
- ad_betareg.coef <- data.frame(confint(ad_betareg, full = TRUE))
- names(ad_betareg.coef)[names(ad_betareg.coef) == "X2.5.."] <- "LowerCI"
- names(ad_betareg.coef)[names(ad_betareg.coef) == "X97.5.."] <- "UpperCI"
- ad_betareg.coef <- ad_betareg.coef[c(3:8,10,12), ]
- rownames(ad_betareg.coef)[1] <- "1619_nitratenitrite"
- rownames(ad_betareg.coef)[2] <- "1619_exposure"
- rownames(ad_betareg.coef)[3] <- "1619_vis"
- rownames(ad_betareg.coef)[4] <- "1619_chla"
- rownames(ad_betareg.coef)[5] <- "1923_nitratenitrite"
- rownames(ad_betareg.coef)[6] <- "1923_exposure"
- rownames(ad_betareg.coef)[7] <- "1923_vis"
- rownames(ad_betareg.coef)[8] <- "1923_chla"
- ad_betareg.coef$variable <- c('nitratenitrite','exposure','vis','chla','nitratenitrite','exposure','vis','chla')
- ad_betareg.coef$variable <- factor(ad_betareg.coef$variable, levels=c('vis','nitratenitrite','chla','exposure'))
- ad_betareg.coef$Time<-c('2016-17, 2017-18 or 2018-19','2016-17, 2017-18 or 2018-19','2016-17, 2017-18 or 2018-19','2016-17, 2017-18 or 2018-19','2019-23','2019-23','2019-23','2019-23')
- ggplot(ad_betareg.coef, aes(x = variable, y = Estimate)) +
- geom_hline(yintercept = 0, color = gray(1/2), lty = 2)+
- geom_pointrange(aes(x = variable, y = Estimate, ymin = LowerCI, ymax = UpperCI, color=variable,fill=variable),position = position_dodge(width = 1/2), shape = 21, fatten = 2, size = 1)+
- facet_wrap(~Time)+ scale_color_manual(values=c('black','grey50','grey50','grey50'))+scale_fill_manual(values=c('black','grey50','grey50','grey50'))+theme_classic()+
- theme(panel.grid.major.y = element_line(),axis.text.x = element_text(angle=45,hjust = 1), strip.background = element_rect(fill='grey85',linewidth = 0.5),panel.border=element_rect(fill=NA,colour='black'),
- axis.line = element_line(linewidth = 0.2) ,legend.position = 'none')+labs(x='',y='Change in proportion A in re-samples')+
- scale_x_discrete(labels=c('Visibility','Nitrate & nitrite','Chlorophyll-a','Exposure'))
- #####################################################################
- # Plots RRA Symbiodinium by expedition for tracked colonies
- #####################################################################
- # Lists tracked colonies
- ad_tracked<-read.csv('Data/AD_tracked_colony_transitions.csv')
- length(unique(ad_tracked$coral_tag))
- library(tidyverse)
- # organizes tracked colonies for plotting as a heatmap by colony and expedition
- repeat_samples <- asv_genus_props %>%
- filter(coral_tag %in% ad_tracked$coral_tag) %>%
- mutate(disturbance_cat = factor(disturbance_cat, levels = c("Very High", "High", "Medium", "Low", "Very Low"))) %>%
- arrange(disturbance_cat) %>%
- mutate(plot_code = paste(disturbance_cat, coral_tag)) %>%
- mutate(plot_code = factor(plot_code, levels = unique(plot_code)))
- # Plots heatmap
- ggplot() +
- geom_tile(data = repeat_samples,
- aes(expedition, plot_code, fill = A_prop)) +
- theme_test(base_size = 8) +
- scale_fill_gradientn(colours = c("#C1260E", "#FFD700"), limits = c(0.01, max(repeat_samples$A_prop)), na.value = "grey90") +
- geom_vline(xintercept = 4.5) +
- theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1))
- ggsave('Figures/A_dynamism.pdf', units = 'in', width=3, height=7)
- #####################################################################
02_Genus_level_analyses_Fig2_Fig4_FigS4.R at commit e9232cb, no license · at the source
Overview
- Department of Biology, University of Victoria, Victoria, British Columbia, Canada
- Conservation Research Department, John G. Shedd Aquarium, Chicago, Illinois, USA
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 9 matches between paragraphs and lines of code.
baumlab/Buzzoni_et_al_2026_Platygyra
e9232cb13fbd79e61b6cee6fbdae3aa0fd7b6330, 26 February 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
5 files
- Scripts/
01_Extracting_site_envir , R, 349 lines, 2 matchesonmental_data_Fig1.R - Scripts/
02_Genus_level_analyses_ , R, 384 lines, 4 matchesFig2_Fig4_FigS4.R - Scripts/
03_Classifying_symbionts , R, 789 lines, 3 matches_from_sequence_data_Fig3 _FigS3.R - Scripts/
04_Additional_suppl_figu , R, 207 linesres_FigS1_FigS4_FigS7.R - README.md, Text, 42 lines
Zenodo 18792037
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
- 30 September 2026: the link answers (HTTP 200)
5 files
- Scripts/
01_Extracting_site_envir , R, 349 linesonmental_data_Fig1.R - Scripts/
02_Genus_level_analyses_ , R, 384 linesFig2_Fig4_FigS4.R - Scripts/
03_Classifying_symbionts , R, 789 lines_from_sequence_data_Fig3 _FigS3.R - Scripts/
04_Additional_suppl_figu , R, 207 linesres_FigS1_FigS4_FigS7.R - README.md, Text, 42 lines
nitschkematthew/Symbiodatabaceae
2320cbdda104c451f837ab62869941574c2d2071, 13 July 2020Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
6 files
- Combining_databases/
combining_databases.rmd , R, 60 lines - Dinophyceae/
NCBI_imports.Rmd , R, 146 lines - Helper_functions/
help.R , R, 111 lines - SDB_to_DADA2/
SDB_to_DADA2.Rmd , R, 192 lines - Symbiodatabaceae/
Symbiodatabaceae.Rmd , R, 503 lines - README.md, Text, 2 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 13 scripts, each with its path and the digest of its content;
- 9 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: baumlab/
Buzzoni_et_al_2026_Platy , Zenodo 18792037gyra
Read it in the paper: doi.org/10.1111/gcb.70818.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 8 keywords, 7 MeSH terms, 15 funders, 93 references.
Cite
This paper
Buzzoni, D., Van Nynatten, A., Cunning, R., & Baum, J. K. (2026). Persistent Legacy Effects of Marine Heatwaves on Coral Symbioses. Global change biology, 32(3), e70818. https://
BibTeX
@article{buzzoni2026pers
author = {Buzzoni, D and Van Nynatten, A and Cunning, R and Baum, J K},
title = {{Persistent Legacy Effects of Marine Heatwaves on Coral Symbioses}},
journal = {Global change biology},
year = {2026},
month = mar,
volume = {32},
number = {3},
pages = {e70818},
publisher = {Wiley},
issn = {1354-1013},
doi = {10.1111/
url = {https://
pmid = {41877353},
pmcid = {PMC13013739}
}
RIS
TY - JOUR
AU - Buzzoni, D
AU - Van Nynatten, A
AU - Cunning, R
AU - Baum, J K
TI - Persistent Legacy Effects of Marine Heatwaves on Coral Symbioses
T2 - Global change biology
J2 - Glob Chang Biol
PY - 2026
DA - 2026/
VL - 32
IS - 3
SP - e70818
SN - 1354-1013
PB - Wiley
DO - 10.1111/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1111/
"type": "article-journal",
"title": "Persistent Legacy Effects of Marine Heatwaves on Coral Symbioses",
"container-title": "Global change biology",
"author": [
{
"family": "Buzzoni",
"given": "D"
},
{
"family": "Van Nynatten",
"given": "A"
},
{
"family": "Cunning",
"given": "R"
},
{
"family": "Baum",
"given": "J K"
}
],
"container-title-short":
"volume": "32",
"issue": "3",
"page": "e70818",
"DOI": "10.1111/
"PMID": "41877353",
"PMCID": "PMC13013739",
"ISSN": "1354-1013",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
1
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41467-026-76675-1 [code]
- Long-read proteogenomic atlas of human neuronal differentiation reveals isoform diversity informing neurodevelopmental risk mechanisms.Journal: Nature communicationsIn common: glmmTMB, reshape2, patchwork, 2 other tools
- [2] doi:10.1093/braincomms/fcag217 [code]
- Investigation of stress hormones across multiday seizure cycles.Journal: Brain communicationsIn common: glmmTMB, reshape2, patchwork, 2 other tools
- [3] doi:10.1016/j.celrep.2026.117505 [code]
- Impaired spatial coding and neuronal hyperactivity in the medial entorhinal cortex of aged APP knock-in mice.Journal: Cell reportsIn common: glmmTMB, reshape2, patchwork, 2 other tools
- [4] doi:10.1038/s41514-026-00391-9 [code]
- Region-specific transcriptional signatures of brain aging in the absence of neuropathology at the single-cell level.Journal: npj agingIn common: glmmTMB, reshape2, patchwork, 2 other tools
- [5] doi:10.7554/elife.107088 [code]
- Development of auditory and spontaneous movement responses to music over the first postnatal year.Journal: eLifeIn common: glmmTMB, reshape2, ggplot2, 1 other tool
- [6] doi:10.1371/journal.pmed.1005182 [code]
- Frequency and prognostic outcomes of emergency diagnosis in 13 non-neoplastic conditions in England: A population-based cohort study using linked electronic health records of 1.7 million patients.Journal: PLoS medicineIn common: glmmTMB, patchwork, ggplot2, 1 other tool
- [7] doi:10.1038/s41586-026-10444-4 [code]
- A brain reward circuit inhibited by next-generation weight-loss drugs in mice.Journal: NatureIn common: glmmTMB, patchwork, ggplot2, 1 other tool
- [8] doi:10.1007/s12311-026-02006-1 [code]
- Innovative 3D-Image Analysis of Cerebellar Vascularization Highlights Angiogenic Gene Dysregulations in a Murine Model of Apnea of Prematurity.Journal: Cerebellum (London, England)In common: glmmTMB, patchwork, ggplot2, 1 other tool
- [9] doi:10.1038/s44400-026-00074-y [code]
- Methylomic signatures of tau and amyloid-beta in transgenic mouse models of Alzheimer's disease neuropathology.Journal: NPJ dementiaIn common: glmmTMB, reshape2, ggplot2, 1 other tool
- [10] doi:10.1242/jeb.252086 [code]
- Transcriptional predictors of rescue behaviour in ants.Journal: The Journal of experimental biologyIn common: glmmTMB, patchwork, ggplot2, 1 other tool
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 3 repositories of the authors' code, each at its verified commit and with its license, 13 scripts, and 9 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:62a9531733ee773c…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
