saving work before converting to a function
This commit is contained in:
parent
a2431b59e5
commit
e78707067c
1 changed files with 12 additions and 15 deletions
|
@ -71,10 +71,6 @@ cat(paste0('Output file with full path:', outfile_af_or))
|
||||||
#########################################################
|
#########################################################
|
||||||
raw_data_all = read.csv(infile_master, stringsAsFactors = F)
|
raw_data_all = read.csv(infile_master, stringsAsFactors = F)
|
||||||
|
|
||||||
# building cols to extract
|
|
||||||
dr_muts_col = paste0('dr_mutations_', drug)
|
|
||||||
other_muts_col = paste0('other_mutations_', drug)
|
|
||||||
|
|
||||||
cat('Extracting columns based on variables:\n'
|
cat('Extracting columns based on variables:\n'
|
||||||
, drug
|
, drug
|
||||||
, '\n'
|
, '\n'
|
||||||
|
@ -218,19 +214,20 @@ print(paste0('logistic pval:', pval_logistic))
|
||||||
|
|
||||||
#=====================================
|
#=====================================
|
||||||
# OR calcs using the following 4
|
# OR calcs using the following 4
|
||||||
#1) chisq.test
|
#1) logistic
|
||||||
#2) fisher
|
#2) custom chisq.test
|
||||||
#3) modified chisq.test
|
#3) fisher
|
||||||
#4) logistic
|
#4) chisq.test
|
||||||
#5) adjusted logistic?
|
|
||||||
#6) kinship (separate script)
|
|
||||||
|
|
||||||
|
# adjusted logistic (NO good)
|
||||||
|
# kinship (separate script)
|
||||||
#======================================
|
#======================================
|
||||||
# TEST FOR a few muts: sapply and df
|
# TEST FOR a few muts: sapply and df
|
||||||
#===============================================
|
#======================================
|
||||||
#snps <- gene_snps_unique[1:2]# reassign so you test with subset of muts
|
#snps <- gene_snps_unique[1:2]# reassign so you test with subset of muts
|
||||||
snps <- gene_snps_unique
|
snps <- gene_snps_unique
|
||||||
cat(paste0('Running calculations for:', length(snps), ' nssnps\n'
|
cat(paste0('Running calculations for:'
|
||||||
|
, length(snps), ' nssnps\n'
|
||||||
, 'gene: ', gene
|
, 'gene: ', gene
|
||||||
, '\ndrug: ', drug ))
|
, '\ndrug: ', drug ))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue