# HG changeset patch # User tomnl # Date 1525286023 14400 # Node ID cc4464eb380f37d7d7be51911ae862574ab0a888 # Parent f6996ad60d8f2bcec799b74438d16ba177ff4b0c planemo upload for repository https://github.com/computational-metabolomics/mspurity-galaxy commit 0aa10df0ec1ed71601f932cfb11d7d4d4f620d80-dirty diff -r f6996ad60d8f -r cc4464eb380f anticipated_purity_dims.R --- a/anticipated_purity_dims.R Wed May 02 14:17:22 2018 -0400 +++ b/anticipated_purity_dims.R Wed May 02 14:33:43 2018 -0400 @@ -53,7 +53,7 @@ df[df$mz=='nan',]$mz <- NA } df$mz <- as.numeric(df$mz) - + mzml_file <- file.path(opt$mzML_file, filename) @@ -77,20 +77,6 @@ } -if (dir.exists(opt$mzML_file)){ - # if directory then we need to add a file name - print(filename) - if (is.na(filename)){ - print('ERROR: If a directory is provided then a filename needs to be entered - directory or automatically obtained by using a dimspy output') - quit() - }else{ - print('filename derived from dimspy') - mzml_file <- file.path(opt$mzML_file, filename) - } -}else{ - mzml_file <- opt$mzML_file -} if (is.null(opt$sim)){ sim=FALSE