# HG changeset patch # User eschen42 # Date 1533418996 14400 # Node ID 342570ad880c1a0fc65ce60a5e4c7323c4d74672 # Parent 066b1f409e9fd7456449753e523f949002d73d7b planemo upload for repository https://github.com/HegemanLab/w4mcorcov_galaxy_wrapper/tree/master commit 0c81f4f1416129dd7061042b12cd28c0b8927aab diff -r 066b1f409e9f -r 342570ad880c w4mcorcov.xml --- a/w4mcorcov.xml Thu Jul 26 10:23:34 2018 -0400 +++ b/w4mcorcov.xml Sat Aug 04 17:43:16 2018 -0400 @@ -1,160 +1,145 @@ - - - OPLS-DA Contrasts of Univariate Results - - - - - - - - - - - - - - - - - r-batch - bioconductor-ropls - - - - - - - + OPLS-DA Contrasts of Univariate Results + + + + + + + + + + + + + + + r-batch + bioconductor-ropls + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - @@ -725,51 +709,6 @@ OPLS-DA, SIMCA, and S-PLOT are registered trademarks of the Umetrics company. http://umetrics.com/about-us/trademarks -Release notes -------------- - -0.98.11 - -- bug fix: Readdress issue 2 - features now are pareto-scaled *and centered* per Wikland *op cit.*. - -0.98.10 - -- new feature: C-plots of VIP versus correlation or relative covariance. -- bug fix: Handle issue 2 - features now are only pareto-scaled per Wikland *op cit.*. - -0.98.9 - -- bug fix: Handle issue 1 - handle features removed by ropls because variance is less than 2.2e-16. - -0.98.8 - -- new feature: Replace loadings plot with correlation-versus-covariance plot for orthogonal features, i.e., the consistency of features influencing within-treatment variation (which is linearly related to the loading of the orthogonal projection) versus consistency. This eliminates the need for the parameter to suppress labels for features with extreme orthogonal loadings - -0.98.7 - -- bug fix: Handle case of a treatment level with only one sample. - -0.98.6 - -- bug fix: Set 'crossvalI' param (of R function 'ropls::opls') to the number of samples when the there are fewer than seven samples. - -0.98.5 - -- bug fix: Fit feature-labels within clipping region of cor-vs.cov plot -- new feature: optionally (and by default) suppress labels for features with extreme orthogonal loadings - -0.98.3 - -- Add support for two-level factors -- Add adjusted mz and rt to output tables -- Allow explicitly setting the number of features with extreme loadings to be labelled on the correlation vs. covariance plot -- Add loadings to corcov table - -0.98.2 - -- first release - - ]]> diff -r 066b1f409e9f -r 342570ad880c w4mcorcov_wrapper.R --- a/w4mcorcov_wrapper.R Thu Jul 26 10:23:34 2018 -0400 +++ b/w4mcorcov_wrapper.R Sat Aug 04 17:43:16 2018 -0400 @@ -22,12 +22,45 @@ ## subroutines ##---------- -source("w4mcorcov_lib.R") -source("w4mcorcov_util.R") -source("w4mcorcov_input.R") -source("w4mcorcov_salience.R") -source("w4mcorcov_calc.R") -source("w4mcorcov_output.R") +# from: https://github.com/molgenis/molgenis-pipelines/wiki/How-to-source-another_file.R-from-within-your-R-script +LocationOfThisScript = function() # Function LocationOfThisScript returns the location of this .R script (may be needed to source other files in same dir) +{ + this.file = NULL + # This file may be 'sourced' + for (i in -(1:sys.nframe())) { + if (identical(sys.function(i), base::source)) this.file = (normalizePath(sys.frame(i)$ofile)) + } + + if (!is.null(this.file)) return(dirname(this.file)) + + # But it may also be called from the command line + cmd.args = commandArgs(trailingOnly = FALSE) + cmd.args.trailing = commandArgs(trailingOnly = TRUE) + cmd.args = cmd.args[seq.int(from=1, length.out=length(cmd.args) - length(cmd.args.trailing))] + res = gsub("^(?:--file=(.*)|.*)$", "\\1", cmd.args) + + # If multiple --file arguments are given, R uses the last one + res = tail(res[res != ""], 1) + if (0 < length(res)) return(dirname(res)) + + # Both are not the case. Maybe we are in an R GUI? + return(NULL) +} + +script.dir <- LocationOfThisScript() + +source(paste(script.dir, "w4mcorcov_lib.R", sep="/")) +source(paste(script.dir, "w4mcorcov_util.R", sep="/")) +source(paste(script.dir, "w4mcorcov_input.R", sep="/")) +source(paste(script.dir, "w4mcorcov_salience.R", sep="/")) +source(paste(script.dir, "w4mcorcov_calc.R", sep="/")) +source(paste(script.dir, "w4mcorcov_output.R", sep="/")) +#source("w4mcorcov_lib.R") +#source("w4mcorcov_util.R") +#source("w4mcorcov_input.R") +#source("w4mcorcov_salience.R") +#source("w4mcorcov_calc.R") +#source("w4mcorcov_output.R") ## log file ##---------