repurposing corr_data.R into a function to allow required params to be passed in

This commit is contained in:
Tanushree Tunstall 2022-01-29 17:24:15 +00:00
parent 7317156bba
commit 5346431256
4 changed files with 126 additions and 50 deletions

View file

@ -6,7 +6,7 @@
#=======================================================================
# working dir and loading libraries
getwd()
setwd("~/git/LSHTM_analysis/scripts/plotting")
#setwd("~/git/LSHTM_analysis/scripts/plotting")
getwd()
#source("~/git/LSHTM_analysis/scripts/Header_TT.R")
@ -14,11 +14,11 @@ library(ggplot2)
library(data.table)
library(dplyr)
library(tidyverse)
source("combining_dfs_plotting.R")
#source("combining_dfs_plotting.R")
rm(merged_df2, merged_df2_comp, merged_df2_lig, merged_df2_comp_lig
, merged_df3_comp, merged_df3_comp_lig
, my_df_u, my_df_u_lig)
#rm(merged_df2, merged_df2_comp, merged_df2_lig, merged_df2_comp_lig
# , merged_df3_comp, merged_df3_comp_lig
# , my_df_u, my_df_u_lig)
cols_to_select = c("mutation", "mutationinformation"