Mercurial > repos > tomnl > anticipated_purity_lcms
diff anticipated_purity_dims.R @ 7:4d2e58566178 draft
planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 0aa10df0ec1ed71601f932cfb11d7d4d4f620d80
| author | tomnl |
|---|---|
| date | Mon, 23 Apr 2018 10:13:20 -0400 |
| parents | 079bdef733e8 |
| children | e28fc4fd51e9 |
line wrap: on
line diff
--- a/anticipated_purity_dims.R Mon Apr 23 06:06:23 2018 -0400 +++ b/anticipated_purity_dims.R Mon Apr 23 10:13:20 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')
