# HG changeset patch # User eschen42 # Date 1605725617 0 # Node ID 90708fdbc22d1eb26401358ac644397a1dcbee6d # Parent 2ae2d26e327009b8a0beab3d9b8062b0a1acc8cb "planemo upload for repository https://github.com/HegemanLab/w4mcorcov_galaxy_wrapper/tree/master commit 5fd9687d543a48a715b1180caf93abebebd58b0e" diff -r 2ae2d26e3270 -r 90708fdbc22d LICENSE diff -r 2ae2d26e3270 -r 90708fdbc22d README diff -r 2ae2d26e3270 -r 90708fdbc22d w4mcorcov.xml --- a/w4mcorcov.xml Wed Dec 12 09:20:02 2018 -0500 +++ b/w4mcorcov.xml Wed Nov 18 18:53:37 2020 +0000 @@ -1,4 +1,4 @@ - + OPLS-DA Contrasts of Univariate Results @@ -25,7 +25,7 @@ r-base r-batch - bioconductor-ropls + bioconductor-ropls + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -188,6 +306,7 @@ + @@ -241,7 +360,7 @@ - + @@ -250,6 +369,7 @@ + @@ -286,7 +406,7 @@ - + @@ -294,6 +414,7 @@ + @@ -335,7 +456,7 @@ - + @@ -343,6 +464,7 @@ + @@ -386,7 +508,7 @@ - + @@ -394,6 +516,7 @@ + @@ -422,79 +545,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1) 1 else 0 - , printL = FALSE - , plotL = FALSE + , fig.pdfC = 'none' + , info.txtC = 'none' , crossvalI = x_crossval_i , scaleC = "pareto" # data centered and pareto scaled here only. This line fixes issue #2. ) @@ -443,6 +443,7 @@ # matchingC is one of { "none", "wildcard", "regex" } matchingC <- calc_env$matchingC labelFeatures <- calc_env$labelFeatures + minCrossvalI <- as.integer(calc_env$min_crossval_i) # arg/env checking if (!(facC %in% names(smpl_metadata))) { @@ -600,7 +601,7 @@ } , x_show_labels = labelFeatures , x_progress = progress_action - , x_crossval_i = min(7, length(chosen_samples)) + , x_crossval_i = min(minCrossvalI, length(chosen_samples)) , x_env = calc_env ) if ( is.null(my_cor_cov) ) { @@ -674,7 +675,7 @@ } , x_show_labels = labelFeatures , x_progress = progress_action - , x_crossval_i = min(7, length(chosen_samples)) + , x_crossval_i = min(minCrossvalI, length(chosen_samples)) , x_env = calc_env ) if ( is.null(my_cor_cov) ) { @@ -753,7 +754,7 @@ , x_prefix = "Features" , x_show_labels = labelFeatures , x_progress = progress_action - , x_crossval_i = min(7, length(chosen_samples)) + , x_crossval_i = min(minCrossvalI, length(chosen_samples)) , x_env = calc_env ) if ( is.null(my_cor_cov) ) { @@ -806,7 +807,7 @@ , x_prefix = "Features" , x_show_labels = labelFeatures , x_progress = progress_action - , x_crossval_i = min(7, length(chosen_samples)) + , x_crossval_i = min(minCrossvalI, length(chosen_samples)) , x_env = calc_env ) if ( is.null(my_cor_cov) ) { diff -r 2ae2d26e3270 -r 90708fdbc22d w4mcorcov_input.R diff -r 2ae2d26e3270 -r 90708fdbc22d w4mcorcov_lib.R diff -r 2ae2d26e3270 -r 90708fdbc22d w4mcorcov_output.R diff -r 2ae2d26e3270 -r 90708fdbc22d w4mcorcov_salience.R diff -r 2ae2d26e3270 -r 90708fdbc22d w4mcorcov_util.R diff -r 2ae2d26e3270 -r 90708fdbc22d w4mcorcov_wrapper.R --- a/w4mcorcov_wrapper.R Wed Dec 12 09:20:02 2018 -0500 +++ b/w4mcorcov_wrapper.R Wed Nov 18 18:53:37 2020 +0000 @@ -4,7 +4,7 @@ # - w4mcorcov_lib.R # - w4mcorcov_input.R # - w4mcorcov_calc.R - +options(warn=1) ## constants ##---------- @@ -108,6 +108,7 @@ 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$min_crossval_i <- as.character(argVc["min_crossval_i"]) # Minumum number of samples for OPLS-DA cross-validation my_env$fdr_features <- as.character(argVc["fdr_features"]) # number of features to consider when adjusting p-value, or 'ALL' my_env$cplot_o <- as.logical(argVc["cplot_o"]) # TRUE if orthogonal C-plot is requested my_env$cplot_p <- as.logical(argVc["cplot_p"]) # TRUE if parallel C-plot is requested @@ -131,6 +132,24 @@ quit(save = "no", status = 10, runLast = TRUE) } +min_crossval_i <- my_env$min_crossval_i +crossval_check <- TRUE +if ( is.na(min_crossval_i) ) { + crossval_check <- FALSE +} else if ( is.null(min_crossval_i) ) { + crossval_check <- FALSE +} else { + if ( is.na(as.numeric(min_crossval_i)) ) + crossval_check <- FALSE + else if ( as.numeric(min_crossval_i) < 0 ) + crossval_check <- FALSE +} +if ( !crossval_check ) { + my_log("invalid argument: min_crossval_i") + print(min_crossval_i) + quit(save = "no", status = 10, runLast = TRUE) +} + corcov_tsv_colnames <- TRUE corcov_tsv_append <- FALSE corcov_tsv_action <- function(tsv) {