# HG changeset patch # User eschen42 # Date 1510522857 18000 # Node ID 61935618f92c615b1691af166a617c59832a113a # Parent a06344808ffc9e40326fda9e4a754f2b764eac82 planemo upload for repository https://github.com/HegemanLab/w4mcorcov_galaxy_wrapper/tree/master commit 7682e8e7ae2bfb926d94b414b9a1649389f33582 diff -r a06344808ffc -r 61935618f92c w4mcorcov.xml --- a/w4mcorcov.xml Sat Nov 11 00:08:20 2017 -0500 +++ b/w4mcorcov.xml Sun Nov 12 16:40:57 2017 -0500 @@ -1,4 +1,4 @@ - + OPLS-DA Contrasts of Univariate Results @@ -34,7 +34,7 @@ - + @@ -48,7 +48,7 @@ truevalue="TRUE" falsevalue="FALSE" label="Retain only pairwise-significant features" - help="When 'none' is chosen, all features are included in the analysis. Otherwise, when this option is set to 'Yes', analysis will be performed including only features that differ significantly for the pair of levels being contrasted; when set to 'No', any feature that varies significantly across all levels will be included (i.e., exclude any feature that is not significantly different across all levels). See examples below."/> + help="When 'none' is chosen as the test, all features are included in the analysis (i. e., this parameter is ignored). Otherwise, when this option is set to 'Yes', analysis will be performed including only features that differ significantly for the pair of levels being contrasted; when set to 'No', any feature that varies significantly across all levels will be included (i.e., exclude any feature that is not significantly different across all levels). See examples below."/> @@ -75,25 +75,25 @@ - + - + + label="Label features having extreme orthogonal loadings" + help="When using the preceding parameter to label only features at the loading-extremess in the cor-vs.-cov plot, use 'no' here to label only features having extreme parallel loadings (loadp); this is the default. Choose 'yes' to add labels also to features having extreme orthogonal loadings (both loado and loadp); this may clutter the plot."/> 10.1002/cem.2627 diff -r a06344808ffc -r 61935618f92c w4mcorcov_calc.R --- a/w4mcorcov_calc.R Sat Nov 11 00:08:20 2017 -0500 +++ b/w4mcorcov_calc.R Sun Nov 12 16:40:57 2017 -0500 @@ -34,7 +34,7 @@ lim_x <- max(sapply(X=c(min_x, max_x), FUN=abs)) covariance <- covariance / lim_x lim_x <- 1.2 - main_label <- sprintf("%s for levels %s versus %s", x_prefix, fctr_lvl_1, fctr_lvl_2) + main_label <- sprintf("%s for level %s versus %s", x_prefix, fctr_lvl_1, fctr_lvl_2) main_cex <- min(1.0, 46.0/nchar(main_label)) # "It is generally accepted that a variable should be selected if vj>1, [27–29], # but a proper threshold between 0.83 and 1.21 can yield more relevant variables according to [28]." @@ -50,8 +50,8 @@ y = plus_cor , x = plus_cov , type="p" - , xlim=c(-lim_x, lim_x + off(0.2)) - , ylim=c(-1.0 - off(0.2), 1.0) + , xlim=c( -lim_x - off(0.2), lim_x + off(0.2) ) + , ylim=c( -1.0 - off(0.2), 1.0 + off(0.2) ) , xlab = sprintf("relative covariance(feature,t1)") , ylab = sprintf("correlation(feature,t1)") , main = main_label @@ -90,9 +90,9 @@ text( y = plus_cor - 0.013 , x = plus_cov + 0.020 - , cex = 0.3 + , cex = 0.4 , labels = labels - , col = rgb(blue = blue, red = red, green = 0, alpha = 0.2 + 0.8 * alpha) + , col = rgb(blue = 0, red = 0, green = 0, alpha = 0.5) # rgb(blue = blue, red = red, green = 0, alpha = 0.2 + 0.8 * alpha) , srt = -30 # slant 30 degrees downward , adj = 0 # left-justified )