Skip to content

Commit cb5e19a

Browse files
committed
almost working!
1 parent 68238d5 commit cb5e19a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/broad_sanger/04-drug_dosage_and_curves.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
samplefile = opts.samplefile
2626
drugfile = opts.dfile
2727

28-
cmd = ['/opt/venv/bin/python 04b-nci60-updated.py','--sampleFile',samplefile,'--drugFile',drugfile]
28+
cmd = ['/opt/venv/bin/python','04b-nci60-updated.py','--sampleFile='+samplefile,'--drugFile='+drugfile]
2929
print(cmd)
3030
subprocess.run(cmd)
3131

build/mpnst/02_get_drug_data.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ print(paste(alldrugs,collapse=','))
7272

7373

7474
##copy old drug to new drug
75-
olddrugs<-do.call(rbind,lapply(unique(unlist(strsplit(olddrugfiles,split=','))),function(x) read.table(x)))
75+
olddrugs<-do.call(rbind,lapply(unique(unlist(strsplit(olddrugfiles,split=','))),function(x) read.table(x,header=T,sep='\t',quote='',comment.char=''))
7676
olddrugs<-unique(olddrugs)
7777

7878
print(paste('Read in ',nrow(olddrugs),'old drugs'))
7979
#file.copy(olddrugfile,newdrugfile)
80-
write.table(olddrugs,file=newdrugfile,sep='\t')
80+
write.table(olddrugs,file=newdrugfile,sep='\t',row.names=F,quote=FALSE,col.names=T)
8181
output_file_path <- newdrugfile
82-
ignore_file_path <- '/tmp/ignore_chems.txt'
82+
ignore_file_path <- '/tmp/mpnst_ignore_chems.txt'
8383

8484
update_dataframe_and_write_tsv(unique_names=alldrugs,output_filename=output_file_path,ignore_chems=ignore_file_path)
8585

0 commit comments

Comments
 (0)