Mercurial > repos > eschen42 > w4mcorcov
diff w4mcorcov_wrapper.R @ 2:a06344808ffc draft
planemo upload for repository https://github.com/HegemanLab/w4mcorcov_galaxy_wrapper/tree/master commit ce5178ce51b80f242d24db555044e6afc530ac99
author | eschen42 |
---|---|
date | Sat, 11 Nov 2017 00:08:20 -0500 |
parents | e25fd8a13665 |
children | 0b49916c5c52 |
line wrap: on
line diff
--- a/w4mcorcov_wrapper.R Mon Oct 16 09:18:29 2017 -0400 +++ b/w4mcorcov_wrapper.R Sat Nov 11 00:08:20 2017 -0500 @@ -67,12 +67,31 @@ # other parameters -my_env$tesC <- as.character(argVc["tesC"]) -my_env$facC <- as.character(argVc["facC"]) -my_env$pairSigFeatOnly <- as.logical(argVc["pairSigFeatOnly"]) -my_env$levCSV <- as.character(argVc["levCSV"]) -my_env$matchingC <- as.character(argVc["matchingC"]) -my_env$labelFeatures <- as.logical(argVc["labelFeatures"]) +my_env$tesC <- as.character(argVc["tesC"]) +my_env$facC <- as.character(argVc["facC"]) +my_env$pairSigFeatOnly <- as.logical(argVc["pairSigFeatOnly"]) +my_env$levCSV <- as.character(argVc["levCSV"]) +my_env$matchingC <- as.character(argVc["matchingC"]) +my_env$labelFeatures <- as.character(argVc["labelFeatures"]) # number of features to label at each extreme of the loadings or 'ALL' +my_env$labelOrthoFeatures <- as.logical(argVc["labelOrthoFeatures"]) + +label_features <- my_env$labelFeatures +labelfeatures_check <- TRUE +if ( is.na(label_features) ) { + labelfeatures_check <- FALSE +} else if ( is.null(label_features) ) { + labelfeatures_check <- FALSE +} else if (label_features != "ALL") { + if ( is.na(as.numeric(label_features)) ) + labelfeatures_check <- FALSE + else if ( as.numeric(label_features) < 0 ) + labelfeatures_check <- FALSE +} +if ( !labelfeatures_check ) { + my_log("invalid argument: labelFeatures") + print(label_features) + quit(save = "no", status = 10, runLast = TRUE) +} tsv_action_factory <- function(file, colnames, append) { return (