added test_plotting_data.R, and replaced input param of csv into df
This commit is contained in:
parent
2aec79af31
commit
7e6affea84
1 changed files with 29 additions and 0 deletions
29
scripts/functions/test_plotting_data.R
Normal file
29
scripts/functions/test_plotting_data.R
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
getwd()
|
||||||
|
setwd("~/git/LSHTM_analysis/scripts/functions/")
|
||||||
|
getwd()
|
||||||
|
#############################################################
|
||||||
|
#===========================================
|
||||||
|
# load functions, data, dirs, hardocded vars
|
||||||
|
# that will be used in testing the functions
|
||||||
|
#===========================================
|
||||||
|
source("plotting_globals.R")
|
||||||
|
|
||||||
|
drug = "streptomycin"
|
||||||
|
gene = "gid"
|
||||||
|
|
||||||
|
import_dirs(drug_name = drug, gene_name = gene)
|
||||||
|
|
||||||
|
#-------------------------------
|
||||||
|
# test function: plotting_data()
|
||||||
|
#-------------------------------
|
||||||
|
source("plotting_data.R")
|
||||||
|
|
||||||
|
infile_params = "/home/tanu/git/Data/streptomycin/output/gid_comb_stab_struc_params.csv"
|
||||||
|
mcsm_comb_data = read.csv(infile_params, header = T)
|
||||||
|
|
||||||
|
pd_df = plotting_data(df = mcsm_comb_data, lig_dist_cutoff = 10)
|
||||||
|
my_df = pd_df[[1]]
|
||||||
|
my_df_u = pd_df[[2]]
|
||||||
|
my_df_u_lig = pd_df[[3]]
|
||||||
|
dup_muts = pd_df[[4]]
|
||||||
|
#===============================================================
|
Loading…
Add table
Add a link
Reference in a new issue