From 7158f5b2c9473c46ccf6b8b772affbe58bed90ec Mon Sep 17 00:00:00 2001 From: Tanushree Tunstall Date: Tue, 6 Oct 2020 19:39:59 +0100 Subject: [PATCH] added af and OR columns in the data --- scripts/data_selective_pressure.R | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/data_selective_pressure.R b/scripts/data_selective_pressure.R index eae722e..6ee4024 100644 --- a/scripts/data_selective_pressure.R +++ b/scripts/data_selective_pressure.R @@ -28,7 +28,10 @@ cols_to_select = c("id", "sample" , "mutationinformation" , "wild_type" , "position" - , "mutant_type") + , "mutant_type" + , "af" + , "or_mychisq" + , "or_kin") dnds_df_all = merged_df2[, cols_to_select] @@ -69,3 +72,5 @@ write.csv(dnds_df_all, select_pressure_muts_all, row.names = FALSE) #---------- cat("Filename:", select_pressure_muts_aa_site) write.csv(dnds_df_aa_site, select_pressure_muts_aa_site, row.names = FALSE) + +colnames(dnds_df_all)