#!/usr/bin/env Rscript ######################################################### # TASK: Barplots # basic barplots with outcome # basic barplots with frequency of count of mutations ######################################################### #============= # Data: Input #============== source("~/git/LSHTM_analysis/config/rpob.R") source("~/git/LSHTM_analysis/scripts/plotting/get_plotting_dfs.R") cat("\nSourced plotting cols as well:", length(plotting_cols)) #################################################### class(merged_df3) df3 = subset(merged_df3, select = -c(pos_count)) #======= # output #======= outdir_images = paste0("~/git/Writing/thesis/images/results/", tolower(gene), "/") cat("plots will output to:", outdir_images) ########################################################## # blue, red bp sts = 8 lts = 8 ats = 8 als = 8 ltis = 8 geom_ls = 2.2 #pos_count subtitle_size = 8 geom_ls_pc = 2.2 leg_text_size = 8 axis_text_size = 8 axis_label_size = 8 ########################################################### #------------------------------ # plot default sizes #------------------------------ #========================= # Affinity outcome # check this var: outcome_cols_affinity # get from preformatting or put in globals #========================== DistCutOff LigDist_colname # = "ligand_distance" # from globals ppi2Dist_colname naDist_colname ########################################################### # get plotting data within the distance df3_lig = df3[df3[[LigDist_colname]]