# HG changeset patch # User eschen42 # Date 1520193102 18000 # Node ID 8bba31f628daf4b26d52655f8c649eba70c72aed # Parent 5aaab36bc5231fb51757b2560f6bad2aa0462d76 planemo upload for repository https://github.com/HegemanLab/w4mcorcov_galaxy_wrapper/tree/master commit 8f2dc8b66666340275cd8967e09c504720528462 diff -r 5aaab36bc523 -r 8bba31f628da w4mcorcov.xml --- a/w4mcorcov.xml Mon Jan 15 14:30:15 2018 -0500 +++ b/w4mcorcov.xml Sun Mar 04 14:51:42 2018 -0500 @@ -1,4 +1,4 @@ - + OPLS-DA Contrasts of Univariate Results @@ -326,7 +326,7 @@ Motivation ---------- -OPLS-DA\ :superscript:`®` and the SIMCA\ :superscript:`®` S-PLOT\ :superscript:`®` (Wiklund *et al.*, 2008) may be employed to draw attention to metabolomic features that are potential biomarkers, i.e. features that are potentially useful to discriminate to which class a sample should be assigned (e.g. Sun *et al.*, 2016). Workflow4Metabolomics (W4M, Giacomoni *et al.*, 2014, Guitton *et al.*, 2017) provides a suite of tools for preprocessing and statistical analysis of LC-MS, GC-MS, and NMR metabolomics data; however, it does not (as of release 3.0) include a tool for making the equivalent of an S-PLOT. +OPLS-DA and the SIMCA S-PLOT (Wiklund *et al.*, 2008) may be employed to draw attention to metabolomic features that are potential biomarkers, i.e. features that are potentially useful to discriminate to which class a sample should be assigned (e.g. Sun *et al.*, 2016). Workflow4Metabolomics (W4M, Giacomoni *et al.*, 2014, Guitton *et al.*, 2017) provides a suite of tools for preprocessing and statistical analysis of LC-MS, GC-MS, and NMR metabolomics data; however, it does not (as of release 3.0) include a tool for making the equivalent of an S-PLOT. The S-PLOT is computed from mean-centered, pareto-scaled data. This plot presents the correlation of the first score vector from an OPLS-DA model with the sample-variables used to produce that model versus the covariance of the scores with the sample-variables. For OPLS-DA, the first score vector represents the variation among the sample-variables that is related to the predictor (i.e., the contrasting factor). @@ -342,7 +342,7 @@ The purpose of the 'PLS-DA Contrasts' tool is to visualize GC-MS or LC-MS features that are possible biomarkers. -The W4M 'Univariate' tool (Thévenot *et al.*, 2015) adds the results of family-wise corrected pairwise significance-tests as columns of the **variableMetadata** dataset. +The W4M 'Univariate' tool (Th]]>éééé10.3389/fmolb.2016.00026 10.1038/srep22274 - + 10.1021/acs.jproteome.5b00354 0 && length(unique(x_predictor))> 1) { + if ( x_is_match && ncol(x_dataMatrix) > 0 && length(unique(x_predictor))> 1 && x_crossval_i < nrow(x_dataMatrix) ) { my_oplsda <- opls( x = x_dataMatrix , y = x_predictor @@ -121,14 +121,18 @@ for (my_type in my_typevc) { if (my_type %in% typeVc) { # print(sprintf("plotting type %s", my_type)) - plot( - x = my_oplsda - , typeVc = my_type - , parCexN = 0.4 - , parDevNewL = FALSE - , parLayL = TRUE - , parEllipsesL = TRUE + tryCatch({ + plot( + x = my_oplsda + , typeVc = my_type + , parCexN = 0.4 + , parDevNewL = FALSE + , parLayL = TRUE + , parEllipsesL = TRUE ) + }, error = function(e) { + x_progress(sprintf("factor level %s or %s may have only one sample", fctr_lvl_1, fctr_lvl_2)) + }) } else { # print("plotting dummy graph") plot(x=1, y=1, xaxt="n", yaxt="n", xlab="", ylab="", type="n") @@ -306,7 +310,7 @@ , x_show_labels = labelFeatures , x_show_loado_labels = labelOrthoFeatures , x_progress = progress_action - , x_crossval_i = min(7, length(chosen_samples)) + , x_crossval_i = min(7, length(chosen_samples)) , x_env = calc_env ) if ( is.null(my_cor_cov) ) { @@ -363,7 +367,7 @@ , x_show_labels = labelFeatures , x_show_loado_labels = labelOrthoFeatures , x_progress = progress_action - , x_crossval_i = min(7, length(chosen_samples)) + , x_crossval_i = min(7, length(chosen_samples)) , x_env = calc_env ) if ( is.null(my_cor_cov) ) { @@ -417,7 +421,7 @@ , x_show_labels = labelFeatures , x_show_loado_labels = labelOrthoFeatures , x_progress = progress_action - , x_crossval_i = min(7, length(chosen_samples)) + , x_crossval_i = min(7, length(chosen_samples)) , x_env = calc_env ) if ( is.null(my_cor_cov) ) { @@ -463,7 +467,7 @@ , x_show_labels = labelFeatures , x_show_loado_labels = labelOrthoFeatures , x_progress = progress_action - , x_crossval_i = min(7, length(chosen_samples)) + , x_crossval_i = min(7, length(chosen_samples)) , x_env = calc_env ) if ( is.null(my_cor_cov) ) {