diff anticipated_purity_dims.R @ 6:3d8bde261c95 draft

planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 0aa10df0ec1ed71601f932cfb11d7d4d4f620d80
author tomnl
date Mon, 23 Apr 2018 10:16:41 -0400
parents 9ab472c5714c
children d7f4696a1f86
line wrap: on
line diff
--- a/anticipated_purity_dims.R	Mon Apr 23 06:10:07 2018 -0400
+++ b/anticipated_purity_dims.R	Mon Apr 23 10:16:41 2018 -0400
@@ -74,8 +74,6 @@
     isotopes <- TRUE
 }
 
-print('FIRST ROWS OF PEAK FILE')
-print(head(df))
 
 if (dir.exists(opt$mzML_file)){
   # if directory then we need to add a file name
@@ -116,6 +114,8 @@
     iwNormFun = msPurity::iwNormQE.5()
 }
 
+print('FIRST ROWS OF PEAK FILE')
+print(head(df))
 
 predicted <- msPurity::dimsPredictPuritySingle(df$mz,
                                      filepth=mzml_file,
@@ -132,5 +132,6 @@
                                      )
 predicted <- cbind(df, predicted)
 
-
-write.table(predicted, file.path(opt$out_dir, 'anticipated_dims_purity.tsv'), row.names=FALSE, sep='\t')
+print(head(predicted))
+print(file.path(opt$out_dir, 'anticipated_purity_dims.tsv'))
+write.table(predicted, file.path(opt$out_dir, 'anticipated_purity_dims.tsv'), row.names=FALSE, sep='\t')