# Save data frames as CSV files in the metadata folderwrite_csv(HNOCells, file.path(dataframes_folder, "Cells_HNO_values.csv"))# Save data frames as R objects in the metadata foldersaveRDS(HNOCells, file.path(dataframes_folder, "Cells_HNO_values.rds"))# Use this to read the final objectsHNOCells <-readRDS("data/dataframes/Cells_HNO_values.rds")
Cells per Cell Line for Calu-3 and RPMI2650
#factor date and name of the cell lineCellLines$Date <-as.factor(CellLines$Date)CellLines$Model <-as.factor(CellLines$Model)
#summary of each cell lineCellLines_summary <- CellLines %>%group_by(Model) %>%summarize(median_cells =median(Cells),Q1 =quantile(Cells, 0.25),Q3 =quantile(Cells, 0.75),n =n(),SE =sd(Cells)/sqrt(n),CI = SE*1.96, mean_cells =mean(Cells))
# Save data frames as CSV files in the metadata folderwrite_csv(CellLines, file.path(dataframes_folder, "Cells_CellLines_values.csv"))# Save data frames as R objects in the metadata foldersaveRDS(CellLines, file.path(dataframes_folder, "Cells_CellLines_values.rds"))# Use this to read the final objectsCellLines <-readRDS("data/dataframes/Cells_CellLines_values.rds")
# Save data frames as CSV files in the outputs folderwrite_csv(MOC_Calcs, file.path(outputs_folder, "MOC_HNOs.csv"))
TEER
#factor line and dateHNOTEER$Date <-as.factor(HNOTEER$Date)HNOTEER$Line <-as.factor(HNOTEER$Line)#create levels for line to order the HNO linesHNOTEER <- HNOTEER %>%mutate(Line =factor(Line, levels =c("HNO918", "HNO204", "HNO919")))
#average the technical replicates togetherTEERavg <- HNOTEER %>%group_by(Date,Line,LineCharacter,Assay,WithCellHNO) %>%summarise(avgTEER =mean(TEER))#calculate the median and mean for TEER of HNOsHNOteer_summary <- TEERavg %>%group_by(Line) %>%summarize(median_TEER =median(avgTEER),Q1 =quantile(avgTEER, 0.25),Q3 =quantile(avgTEER, 0.75),n =n(),SE =sd(avgTEER)/sqrt(n),CI = SE*1.96,mean_TEER =mean(avgTEER))
# Save data frames as CSV files in the metadata folderwrite_csv(HNOTEER, file.path(dataframes_folder, "TEER_values.csv"))# Save data frames as R objects in the metadata foldersaveRDS(HNOTEER, file.path(dataframes_folder, "TEER_values.rds"))# Use this to read the final objectsHNOTEER <-readRDS("data/dataframes/TEER_values.rds")