minor tweak to plotting_globals.R to make gene_match a global var
This commit is contained in:
parent
29fa99b914
commit
d9e00b9a42
2 changed files with 9 additions and 10 deletions
|
@ -11,8 +11,6 @@
|
||||||
# output: dir names for input and output files
|
# output: dir names for input and output files
|
||||||
|
|
||||||
import_dirs <- function(drug, gene) {
|
import_dirs <- function(drug, gene) {
|
||||||
gene_match = paste0(gene,"_p.")
|
|
||||||
cat(gene_match)
|
|
||||||
|
|
||||||
#============================
|
#============================
|
||||||
# directories and variables
|
# directories and variables
|
||||||
|
@ -26,6 +24,7 @@ import_dirs <- function(drug, gene) {
|
||||||
dr_muts_col <<- paste0('dr_mutations_', drug)
|
dr_muts_col <<- paste0('dr_mutations_', drug)
|
||||||
other_muts_col <<- paste0('other_mutations_', drug)
|
other_muts_col <<- paste0('other_mutations_', drug)
|
||||||
resistance_col <<- "drtype"
|
resistance_col <<- "drtype"
|
||||||
|
gene_match <<- paste0(gene,"_p.")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
setwd("~/git/LSHTM_analysis/scripts/plotting")
|
setwd("~/git/LSHTM_analysis/scripts/plotting")
|
||||||
getwd()
|
getwd()
|
||||||
|
|
||||||
|
|
||||||
# load libraries
|
# load libraries
|
||||||
#source("Header_TT.R")
|
#source("Header_TT.R")
|
||||||
library(ggplot2)
|
library(ggplot2)
|
||||||
|
@ -96,6 +95,7 @@ cat(paste0("Directories imported:"
|
||||||
cat(paste0("\nVariables imported:"
|
cat(paste0("\nVariables imported:"
|
||||||
, "\ndrug:" , drug
|
, "\ndrug:" , drug
|
||||||
, "\ngene:" , gene
|
, "\ngene:" , gene
|
||||||
|
, "\ngene match:" , gene_match
|
||||||
, "\n"))
|
, "\n"))
|
||||||
#=======================================================================
|
#=======================================================================
|
||||||
#=======
|
#=======
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue