# HG changeset patch # User recetox # Date 1680533834 0 # Node ID e8962c8340f4a0577e38fdb8c56f7984f5b5b225 # Parent 2810c956ec395d73bbf7eae18c3e11d1e5c97fbe planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 4254c6f6f05915ceab5af5d7040ac2c44a8364b4 diff -r 2810c956ec39 -r e8962c8340f4 macros.xml --- a/macros.xml Mon Feb 13 10:26:41 2023 +0000 +++ b/macros.xml Mon Apr 03 14:57:14 2023 +0000 @@ -1,5 +1,5 @@ - 0.10.1 + 0.10.3 r-recetox-aplcms @@ -42,47 +42,55 @@ - - - - - + + - - - - - - - - - - - - - - - - - - - + +
+ +
+ + +
+ + + + + + + + + + + + + + + + +
@@ -93,52 +101,55 @@ - - + + - - + + + - - - + + + If not given, 0.5 times the retention time tolerance in the aligned object will be used." /> - + + label="Weight intensity" help="Whether to weight the local density by signal intensities in initial peak detection." /> - - - + + + + diff -r 2810c956ec39 -r e8962c8340f4 recetox_aplcms_generate_feature_table.xml --- a/recetox_aplcms_generate_feature_table.xml Mon Feb 13 10:26:41 2023 +0000 +++ b/recetox_aplcms_generate_feature_table.xml Mon Apr 03 14:57:14 2023 +0000 @@ -32,16 +32,20 @@ #else: max_bandwidth = NA, #end if - sd_cut = c($sd_cut_min, $sd_cut_max), - #if $shape.shape_model == "bi-Gaussian": - sigma_ratio_lim = c($shape.sigma_ratio_lim_min, $shape.sigma_ratio_lim_max), - #else: - sigma_ratio_lim = NA, + #if $advanced.sd_cut.sd_cut_bounds == "FALSE": + sd_cut = c($advanced.sd_cut.sd_cut_min, $advanced.sd_cut.sd_cut_max), + #else + sd_cut = c(0, Inf), #end if - shape_model = "$shape.shape_model", - peak_estim_method = "$peak_estim_method", - component_eliminate = $component_eliminate, - moment_power = $moment_power, + sigma_ratio_lim = determine_sigma_ratios($advanced.shape_model.sigma_ratio_lim_min, $advanced.shape_model.sigma_ratio_lim_max), + shape_model = "bi-Gaussian", + peak_estim_method = "$advanced.peak_estim.peak_estim_method", + component_eliminate = $advanced.component_eliminate, + #if $advanced.peak_estim.peak_estim_method == "moment": + moment_power = $advanced.peak_estim.moment_power, + #else + moment_power = 1, + #end if BIC_factor = $BIC_factor, do.plot = FALSE ) diff -r 2810c956ec39 -r e8962c8340f4 utils.R --- a/utils.R Mon Feb 13 10:26:41 2023 +0000 +++ b/utils.R Mon Apr 03 14:57:14 2023 +0000 @@ -123,3 +123,13 @@ paste(sample_names, collapse = ", "))) } } + +determine_sigma_ratios <- function(sigma_ratio_lim_min = NA, sigma_ratio_lim_max = NA) { + if (is.na(sigma_ratio_lim_min)) { + sigma_ratio_lim_min <- 0 + } + if (is.na(sigma_ratio_lim_max)) { + sigma_ratio_lim_max <- Inf + } + return(c(sigma_ratio_lim_min, sigma_ratio_lim_max)) +}