library(ggplot2)
library(tidyverse)
library(car)
library(lubridate)
library(RColorBrewer)
library(ggpubr)
library(ggpmisc)
library(gridExtra)
library(rlist)
library(ggplot2)
library(broom)
library(nlme)
library(rstatix)
library(compositions)
library(dplyr)
### Input data available through Matt's dropbox: https://www.dropbox.com/sh/swb9lmthcxgn3qj/AADtwfBu-y2KQCeQC-9RjodDa?dl=0
### Download: analysis_data_final.csv -> RENAME: analysis_data_final_23June2020.csv
### Extract females only
### Set working directory
##FEMALES
all_noOL_F <- read_csv("all_noOL_F.csv",
col_types = cols(Sex = col_character(),
EE = col_double(),
H2Omg = col_double(),
RQ = col_double(),
Animal_ID = col_character(),
Deg_C = col_double(),
weight = col_double(),
experiment = col_character(),
StartTime = col_character(),
SD_VCO2 = col_double(),
SD_VO2 = col_double(),
SD_H2Omg = col_double(),
VO2 = col_double(),
VCO2 = col_double(),
StartDate = col_date(format = "%Y-%m-%d"),
hour = col_integer()))
# Add a column of the total time in SECONDS to reach each sampling point (24:00 clock)
all_noOL_F$time_in_S <- period_to_seconds(hms(all_noOL_F$StartTime))
##MALES
all_noOL_M <- read_csv("all_noOL_M.csv",
col_types = cols(Sex = col_character(),
EE = col_double(),
H2Omg = col_double(),
RQ = col_double(),
Animal_ID = col_character(),
Deg_C = col_double(),
weight = col_double(),
experiment = col_character(),
StartTime = col_character(),
SD_VCO2 = col_double(),
SD_VO2 = col_double(),
SD_H2Omg = col_double(),
VO2 = col_double(),
VCO2 = col_double(),
StartDate = col_date(format = "%Y-%m-%d"),
hour = col_integer()))
all_noOL_M$time_in_S <- period_to_seconds(hms(all_noOL_M$StartTime))
# Establish when each interval/transition starts and stops IN SECONDS
#Daytime interval: hrs:8:00-21:00
daytime_interval <- period_to_seconds(hms("09:00:00")):period_to_seconds(hms("20:00:00"))
#Night time: hrs 22:00-5:00 (do NOT do a 22:5 sequence as it will count backwards from 22 to 5...)
nighttime_interval <- c((period_to_seconds(hms("21:00:01")):period_to_seconds(hms("24:59:59"))), #evening portion of 'nighttime'
(period_to_seconds(hms("00:00:00")):period_to_seconds(hms("06:00:00")))) #morning portion of 'nightitme'
#Morning transition (t1): 6:00-9:00
t1_interval <- period_to_seconds(hms("06:00:00")):period_to_seconds(hms("09:00:00"))
#Evening transition (t2): 20-21:00
t2_interval <- period_to_seconds(hms("20:00:00")):period_to_seconds(hms("21:00:00"))
###############################################################
###############################################################
###############################################################
#### Now, create data subsets for males and females EXCLUDING OUTLIERSfor each experiment (day, night, baseline [BL]) and each time block [e.g., t1/transition1, daytime, t2/transistion2, nighttime])
# all males and females across all 3 experiments (BL, hot, cold)
#all_noOL_M
all_day_noOL_M = all_noOL_M[all_noOL_M$time_in_S %in% daytime_interval, ]
all_night_noOL_M = all_noOL_M[all_noOL_M$time_in_S %in% nighttime_interval, ]
all_t1_noOL_M = all_noOL_M[all_noOL_M$time_in_S %in% t1_interval, ]
all_t2_noOL_M = all_noOL_M[all_noOL_M$time_in_S %in% t2_interval, ]
#all_noOL_F
all_day_noOL_F = all_noOL_F[all_noOL_F$time_in_S %in% daytime_interval, ]
all_night_noOL_F = all_noOL_F[all_noOL_F$time_in_S %in% nighttime_interval, ]
all_t1_noOL_F = all_noOL_F[all_noOL_F$time_in_S %in% t1_interval, ]
all_t2_noOL_F = all_noOL_F[all_noOL_F$time_in_S %in% t2_interval, ]
#BASELINE EXPERIMENT ONLY
#MALES
BL_noOL_M = all_noOL_M[all_noOL_M$experiment == 'baseline', ]
BL_day_noOL_M = all_noOL_M[all_noOL_M$experiment == 'baseline' & all_noOL_M$time_in_S %in% daytime_interval, ]
BL_night_noOL_M = all_noOL_M[all_noOL_M$experiment == 'baseline' & all_noOL_M$time_in_S %in% nighttime_interval, ]
BL_t1_noOL_M = all_noOL_M[all_noOL_M$experiment == 'baseline' & all_noOL_M$time_in_S %in% t1_interval, ]
BL_t2_noOL_M = all_noOL_M[all_noOL_M$experiment == 'baseline' & all_noOL_M$time_in_S %in% t2_interval, ]
#FEMALES
BL_noOL_F = all_noOL_F[all_noOL_F$experiment == 'baseline', ]
BL_day_noOL_F = all_noOL_F[all_noOL_F$experiment == 'baseline' & all_noOL_F$time_in_S %in% daytime_interval, ]
BL_night_noOL_F = all_noOL_F[all_noOL_F$experiment == 'baseline' & all_noOL_F$time_in_S %in% nighttime_interval, ]
BL_t1_noOL_F = all_noOL_F[all_noOL_F$experiment == 'baseline' & all_noOL_F$time_in_S %in% t1_interval, ]
BL_t2_noOL_F = all_noOL_F[all_noOL_F$experiment == 'baseline' & all_noOL_F$time_in_S %in% t2_interval, ]
#HOT EXPERIMENT ONLY
hot_noOL_M = all_noOL_M[all_noOL_M$experiment == 'hot', ]
hot_day_noOL_M = all_noOL_M[all_noOL_M$experiment == 'hot' & all_noOL_M$time_in_S %in% daytime_interval,]
hot_night_noOL_M = all_noOL_M[all_noOL_M$experiment == 'hot' & all_noOL_M$time_in_S %in% nighttime_interval,]
hot_t1_noOL_M = all_noOL_M[all_noOL_M$experiment == 'hot' & all_noOL_M$time_in_S %in% t1_interval,]
hot_t2_noOL_M = all_noOL_M[all_noOL_M$experiment == 'hot' & all_noOL_M$time_in_S %in% t2_interval,]
hot_noOL_F = all_noOL_F[all_noOL_F$experiment == 'hot', ]
hot_day_noOL_F = all_noOL_F[all_noOL_F$experiment == 'hot' & all_noOL_F$time_in_S %in% daytime_interval,]
hot_night_noOL_F = all_noOL_F[all_noOL_F$experiment == 'hot' & all_noOL_F$time_in_S %in% nighttime_interval,]
hot_t1_noOL_F = all_noOL_F[all_noOL_F$experiment == 'hot' & all_noOL_F$time_in_S %in% t1_interval,]
hot_t2_noOL_F = all_noOL_F[all_noOL_F$experiment == 'hot' & all_noOL_F$time_in_S %in% t2_interval,]
#COLD EXPERIMENT ONLY
cold_noOL_M = all_noOL_M[all_noOL_M$experiment == 'cold', ]
cold_night_noOL_M = all_noOL_M[all_noOL_M$experiment == 'cold' & all_noOL_M$time_in_S %in% nighttime_interval, ]
cold_t1_noOL_M = all_noOL_M[all_noOL_M$experiment == 'cold' & all_noOL_M$time_in_S %in% nighttime_interval, ]
cold_t2_noOL_M = all_noOL_M[all_noOL_M$experiment == 'cold' & all_noOL_M$time_in_S %in% nighttime_interval, ]
cold_noOL_F = all_noOL_F[all_noOL_F$experiment == 'cold', ]
cold_day_noOL_F = all_noOL_F[all_noOL_F$experiment == 'cold' & all_noOL_F$time_in_S %in% daytime_interval, ]
cold_night_noOL_F = all_noOL_F[all_noOL_F$experiment == 'cold' & all_noOL_F$time_in_S %in% nighttime_interval, ]
cold_t1_noOL_F = all_noOL_F[all_noOL_F$experiment == 'cold' & all_noOL_F$time_in_S %in% nighttime_interval, ]
cold_t2_noOL_F = all_noOL_F[all_noOL_F$experiment == 'cold' & all_noOL_F$time_in_S %in% nighttime_interval, ]
Prep RNAse clean bench, ice bucket, pipettes, etc Remove sample(s) from -80, take note of which samples you are extracting from. I sometimes even take an iPhone pic for reference. Place samples in ice to thaw. Turn on centrifuge to get it cooling down to 4 degrees C. Make 80% Ethanol if needed. (40ml ETOH, 10ml sterile water) in a 50ml falcon tube. Extract Cut up kidney or other tissue using clean razor Place tissue in tube containing 500uL Trizol (Trizol is in fridge)
Jan 25, 2023tags: respirometry, macmanes title: Calibrating the FMS To work gas tanks: Open valve, connect tube and check flow rate before connecting to the FMS flip uper left switch up so it is at baseline, calibrate system (see below) Close tank, depressurize regulator for storage and turn off Calibrate/Setting the water vapor span:
Oct 20, 2022Mission Statement The MacManes lab strives to be an internationally recognized leader in the field of ecophysiological and evolutionary genomics. To accomplish this goal, we push ourselves to be careful in our observations, broad in our questions, and vigorous in our pursuit of research funding. We are generous in the dissemination our products. Indeed, our vision for the future of science is collaborative more so than competitive. To this end, lab members should be prepared to develop the ability to: Think criticaly, and quantitatively about biological phenomena. Write code to analyze high-throughput sequence data. Treat data analytics the same way you do a wet-lab or field work - as an experiment. General Keys to Success One key to success is to make other people say no to you (rather than you saying no to yourself). Don't not apply for some fellowship/job/position because you don't feel qualified. It's good to be realistic about your qualifications, but imposter syndrome (https://www.chronicle.com/article/Impostor-Syndrome-Is/238418) is real, and powerful.
Jun 6, 2022Author: Jocelyn P. Colella Hypothesis: Males and Females will have significantly different physiological responses (e.g., dependent variables) during similar experiments Plots Heatmaps of bonferonni adjusted p-values for t-tests between males and females across each experiment (in total) and across each dependent variable: males and females are MOSTLY significantly different M and F are NOT different in VO2 or EE under HOT experimental conditions Heatmaps of Bonferonni adjusted p-values for t-tests between males and females across each experiment (BL, hot, cold), day and night, and across each dependent variable:
Dec 3, 2020or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up