diff --git a/tools/condense_characters/.lint_skip b/tools/condense_characters/.lint_skip new file mode 100644 index 000000000..d8eddba1d --- /dev/null +++ b/tools/condense_characters/.lint_skip @@ -0,0 +1,2 @@ +CitationsMissing +ToolIDWhitespace diff --git a/tools/condense_characters/.shed.yml b/tools/condense_characters/.shed.yml index c746268c6..11a1f9bfe 100644 --- a/tools/condense_characters/.shed.yml +++ b/tools/condense_characters/.shed.yml @@ -1,9 +1,10 @@ categories: - Text Manipulation description: Condense consecutive characters. +homepage_url: https://github.com/galaxyproject/tools-devteam/tree/main/tools/condense_characters long_description: | This tool condenses consecutive characters of the selected type. name: condense_characters owner: devteam -remote_repository_url: https://github.com/galaxyproject/tools-devteam/tree/master/tools/condense_characters +remote_repository_url: https://github.com/galaxyproject/tools-devteam/tree/main/tools/condense_characters type: unrestricted diff --git a/tools/condense_characters/condense_characters.xml b/tools/condense_characters/condense_characters.xml index 2e71e809d..3335cb282 100644 --- a/tools/condense_characters/condense_characters.xml +++ b/tools/condense_characters/condense_characters.xml @@ -1,10 +1,16 @@ - + consecutive characters + + perl + + + + - perl $__tool_directory__/condense_characters.pl - "${input}" - "${character}" - "${out_file1}" +perl '$__tool_directory__/condense_characters.pl' +'${input}' +${character} +'${out_file1}' @@ -20,7 +26,7 @@ - + @@ -30,7 +36,6 @@ - **What it does** This tool condenses all consecutive characters of a specified type. diff --git a/tools/cummerbund/.lint_skip b/tools/cummerbund/.lint_skip new file mode 100644 index 000000000..fccc1d37e --- /dev/null +++ b/tools/cummerbund/.lint_skip @@ -0,0 +1 @@ +InputsSelectDynamicOptions diff --git a/tools/cummerbund/cummeRbund.R b/tools/cummerbund/cummeRbund.R index f5a053a28..bb39abfc7 100644 --- a/tools/cummerbund/cummeRbund.R +++ b/tools/cummerbund/cummeRbund.R @@ -1,14 +1,15 @@ ## Feature Selection ## options(echo = TRUE) get_features <- function(my_genes, f = "gene") { - if (f == "isoforms") + if (f == "isoforms") { return(isoforms(my_genes)) - else if (f == "tss") + } else if (f == "tss") { return(TSS(my_genes)) - else if (f == "cds") + } else if (f == "cds") { return(CDS(my_genes)) - else + } else { return(my_genes) + } } ## Main Function ## @@ -62,67 +63,70 @@ cat(annotation(genes(cuff))[[1]], sep = ",") sink() png(filename = args$filename, width = args$width, height = args$height) -tryCatch({ - if (args$plotType == "density") { - csDensity(genes(cuff), replicates = args$replicates, logMode = args$log10) - } else if (args$plotType == "boxplot") { - csBoxplot(genes(cuff), replicates = args$replicates, logMode = args$log10) - } else if (args$plotType == "mds") { - MDSplot(genes(cuff), replicates = args$replicates) - } else if (args$plotType == "pca") { - PCAplot(genes(cuff), "PC1", "PC2", replicates = args$replicates) - } else if (args$plotType == "dendrogram") { - csDendro(genes(cuff), replicates = args$replicates) - } else if (args$plotType == "scatter") { - if (args$gene_selector) { - my_genes <- get_features(getGenes(cuff, args$genes), args$features) - } else { - my_genes <- genes(cuff) - } - csScatter(my_genes, args$x, args$y, smooth = args$smooth, logMode = args$log10) - } else if (args$plotType == "volcano") { - if (args$gene_selector) { - my_genes <- get_features(getGenes(cuff, args$genes), args$features) - } else { - my_genes <- genes(cuff) - } - csVolcano(my_genes, args$x, args$y) - } else if (args$plotType == "heatmap") { - if (args$gene_selector) { +tryCatch( + { + if (args$plotType == "density") { + csDensity(genes(cuff), replicates = args$replicates, logMode = args$log10) + } else if (args$plotType == "boxplot") { + csBoxplot(genes(cuff), replicates = args$replicates, logMode = args$log10) + } else if (args$plotType == "mds") { + MDSplot(genes(cuff), replicates = args$replicates) + } else if (args$plotType == "pca") { + PCAplot(genes(cuff), "PC1", "PC2", replicates = args$replicates) + } else if (args$plotType == "dendrogram") { + csDendro(genes(cuff), replicates = args$replicates) + } else if (args$plotType == "scatter") { + if (args$gene_selector) { + my_genes <- get_features(getGenes(cuff, args$genes), args$features) + } else { + my_genes <- genes(cuff) + } + csScatter(my_genes, args$x, args$y, smooth = args$smooth, logMode = args$log10) + } else if (args$plotType == "volcano") { + if (args$gene_selector) { + my_genes <- get_features(getGenes(cuff, args$genes), args$features) + } else { + my_genes <- genes(cuff) + } + csVolcano(my_genes, args$x, args$y) + } else if (args$plotType == "heatmap") { + if (args$gene_selector) { + my_genes <- getGenes(cuff, args$genes) + } else { + my_genes <- getGenes(cuff, annotation(genes(cuff))[[1]]) + } + csHeatmap(get_features(my_genes, args$features), clustering = args$clustering, labCol = args$labcol, labRow = args$labrow, border = args$border, logMode = args$log10) + } else if (args$plotType == "cluster") { + my_genes <- getGenes(cuff, args$genes) + csCluster(get_features(my_genes, args$features), k = args$k) + } else if (args$plotType == "dispersion") { + dispersionPlot(genes(cuff)) + } else if (args$plotType == "fpkmSCV") { + fpkmSCVPlot(genes(cuff)) + } else if (args$plotType == "scatterMatrix") { + csScatterMatrix(genes(cuff)) + } else if (args$plotType == "expressionplot") { my_genes <- getGenes(cuff, args$genes) - } else { - my_genes <- getGenes(cuff, annotation(genes(cuff))[[1]]) + expressionPlot(get_features(my_genes, args$features), drawSummary = args$summary, showErrorbars = args$error_bars, replicates = args$replicates) + } else if (args$plotType == "expressionbarplot") { + my_gene_id <- args$genes + my_genes <- getGenes(cuff, my_gene_id) + expressionBarplot(get_features(my_genes, args$features), showErrorbars = args$error_bars, replicates = args$replicates) + } else if (args$plotType == "mds") { + MDSplot(genes(cuff), replicates = args$replicates) + } else if (args$plotType == "pca") { + PCAplot(genes(cuff), "PC1", "PC2", replicates = args$replicates) + } else if (args$plotType == "maplot") { + MAplot(genes(cuff), args$x, args$y, useCount = args$count) + } else if (args$plotType == "genetrack") { + my_gene <- getGene(cuff, args$genes) + plotTracks(makeGeneRegionTrack(my_gene)) } - csHeatmap(get_features(my_genes, args$features), clustering = args$clustering, labCol = args$labcol, labRow = args$labrow, border = args$border, logMode = args$log10) - } else if (args$plotType == "cluster") { - my_genes <- getGenes(cuff, args$genes) - csCluster(get_features(my_genes, args$features), k = args$k) - } else if (args$plotType == "dispersion") { - dispersionPlot(genes(cuff)) - } else if (args$plotType == "fpkmSCV") { - fpkmSCVPlot(genes(cuff)) - } else if (args$plotType == "scatterMatrix") { - csScatterMatrix(genes(cuff)) - } else if (args$plotType == "expressionplot") { - my_genes <- getGenes(cuff, args$genes) - expressionPlot(get_features(my_genes, args$features), drawSummary = args$summary, showErrorbars = args$error_bars, replicates = args$replicates) - } else if (args$plotType == "expressionbarplot") { - my_gene_id <- args$genes - my_genes <- getGenes(cuff, my_gene_id) - expressionBarplot(get_features(my_genes, args$features), showErrorbars = args$error_bars, replicates = args$replicates) - } else if (args$plotType == "mds") { - MDSplot(genes(cuff), replicates = args$replicates) - } else if (args$plotType == "pca") { - PCAplot(genes(cuff), "PC1", "PC2", replicates = args$replicates) - } else if (args$plotType == "maplot") { - MAplot(genes(cuff), args$x, args$y, useCount = args$count) - } else if (args$plotType == "genetrack") { - my_gene <- getGene(cuff, args$genes) - plotTracks(makeGeneRegionTrack(my_gene)) + }, + error = function(e) { + write(paste("Failed:", e, sep = " "), stderr()) + q("no", 1, TRUE) } -}, error = function(e) { - write(paste("Failed:", e, sep = " "), stderr()) - q("no", 1, TRUE) -}) +) devname <- dev.off() print("cummeRbund finished") diff --git a/tools/cummerbund/cummeRbund.xml b/tools/cummerbund/cummeRbund.xml index a59c5f051..95f45af76 100644 --- a/tools/cummerbund/cummeRbund.xml +++ b/tools/cummerbund/cummeRbund.xml @@ -1,15 +1,18 @@ - + visualize Cuffdiff output cummeRbund_macros.xml fonts-conda-ecosystem - r-argparse - r-base + r-argparse + r-base bioconductor-cummerbund + + + - - + + @@ -144,7 +147,7 @@ - + @@ -152,7 +155,7 @@ - + @@ -179,7 +182,7 @@ - + @@ -195,7 +198,7 @@ - + @@ -209,7 +212,7 @@ - + @@ -223,7 +226,7 @@ - + @@ -237,7 +240,7 @@ - + @@ -253,7 +256,7 @@ - + @@ -269,7 +272,7 @@ - + @@ -289,7 +292,7 @@ - + @@ -303,7 +306,7 @@ - + @@ -317,7 +320,7 @@ - + @@ -333,7 +336,7 @@ - + @@ -347,7 +350,7 @@ - + @@ -361,7 +364,7 @@ - + diff --git a/tools/cummerbund/cummeRbund_macros.xml b/tools/cummerbund/cummeRbund_macros.xml index bfab975be..6070760a9 100644 --- a/tools/cummerbund/cummeRbund_macros.xml +++ b/tools/cummerbund/cummeRbund_macros.xml @@ -1,6 +1,6 @@ - 2.16.0 + 2.24.0 @@ -8,13 +8,13 @@ - - + + - + diff --git a/tools/cummerbund/test-data/boxplot.png b/tools/cummerbund/test-data/boxplot.png index 561d91c58..27b311275 100644 Binary files a/tools/cummerbund/test-data/boxplot.png and b/tools/cummerbund/test-data/boxplot.png differ diff --git a/tools/cummerbund/test-data/dendrogram.png b/tools/cummerbund/test-data/dendrogram.png index 4446a96bf..dc3d5d8ce 100644 Binary files a/tools/cummerbund/test-data/dendrogram.png and b/tools/cummerbund/test-data/dendrogram.png differ diff --git a/tools/cummerbund/test-data/density.png b/tools/cummerbund/test-data/density.png index 5b3a17cd4..507c36e26 100644 Binary files a/tools/cummerbund/test-data/density.png and b/tools/cummerbund/test-data/density.png differ diff --git a/tools/cummerbund/test-data/dispersion.png b/tools/cummerbund/test-data/dispersion.png index b0d056c40..efc7eaee8 100644 Binary files a/tools/cummerbund/test-data/dispersion.png and b/tools/cummerbund/test-data/dispersion.png differ diff --git a/tools/cummerbund/test-data/expressionbarplot.png b/tools/cummerbund/test-data/expressionbarplot.png index 9dea8e3a5..298649134 100644 Binary files a/tools/cummerbund/test-data/expressionbarplot.png and b/tools/cummerbund/test-data/expressionbarplot.png differ diff --git a/tools/cummerbund/test-data/expressionplot.png b/tools/cummerbund/test-data/expressionplot.png index 8d087c4b8..5d79f153a 100644 Binary files a/tools/cummerbund/test-data/expressionplot.png and b/tools/cummerbund/test-data/expressionplot.png differ diff --git a/tools/cummerbund/test-data/fpkmSCV.png b/tools/cummerbund/test-data/fpkmSCV.png index 3a679975e..b5287a87e 100644 Binary files a/tools/cummerbund/test-data/fpkmSCV.png and b/tools/cummerbund/test-data/fpkmSCV.png differ diff --git a/tools/cummerbund/test-data/heatmap.png b/tools/cummerbund/test-data/heatmap.png index a83d79329..b0f3408df 100644 Binary files a/tools/cummerbund/test-data/heatmap.png and b/tools/cummerbund/test-data/heatmap.png differ diff --git a/tools/cummerbund/test-data/maplot.png b/tools/cummerbund/test-data/maplot.png index f8996a485..fe4bb09bf 100644 Binary files a/tools/cummerbund/test-data/maplot.png and b/tools/cummerbund/test-data/maplot.png differ diff --git a/tools/cummerbund/test-data/pca.png b/tools/cummerbund/test-data/pca.png index 63517a521..6675eef54 100644 Binary files a/tools/cummerbund/test-data/pca.png and b/tools/cummerbund/test-data/pca.png differ diff --git a/tools/cummerbund/test-data/scatter.png b/tools/cummerbund/test-data/scatter.png index e30829170..926944b7c 100644 Binary files a/tools/cummerbund/test-data/scatter.png and b/tools/cummerbund/test-data/scatter.png differ diff --git a/tools/cummerbund/test-data/scatterMatrix.png b/tools/cummerbund/test-data/scatterMatrix.png index 4f00dca29..40adeabf8 100644 Binary files a/tools/cummerbund/test-data/scatterMatrix.png and b/tools/cummerbund/test-data/scatterMatrix.png differ diff --git a/tools/cummerbund/test-data/volcano.png b/tools/cummerbund/test-data/volcano.png index 97c26dd14..e0f4a0a05 100644 Binary files a/tools/cummerbund/test-data/volcano.png and b/tools/cummerbund/test-data/volcano.png differ diff --git a/tools/remove_beginning/.lint_skip b/tools/remove_beginning/.lint_skip new file mode 100644 index 000000000..d8eddba1d --- /dev/null +++ b/tools/remove_beginning/.lint_skip @@ -0,0 +1,2 @@ +CitationsMissing +ToolIDWhitespace diff --git a/tools/remove_beginning/.shed.yml b/tools/remove_beginning/.shed.yml index 106b7a903..13c464076 100644 --- a/tools/remove_beginning/.shed.yml +++ b/tools/remove_beginning/.shed.yml @@ -1,10 +1,11 @@ categories: - Text Manipulation description: Remove lines from the beginning of a file. +homepage_url: https://github.com/galaxyproject/tools-devteam/tree/main/tools/remove_beginning long_description: | This tool removes the specified number of lines from the beginning of the input dataset. name: remove_beginning owner: devteam -remote_repository_url: https://github.com/galaxyproject/tools-devteam/tree/master/tools/remove_beginning +remote_repository_url: https://github.com/galaxyproject/tools-devteam/tree/main/tools/remove_beginning type: unrestricted diff --git a/tools/remove_beginning/remove_beginning.xml b/tools/remove_beginning/remove_beginning.xml index 1a23b2943..307f31b5a 100644 --- a/tools/remove_beginning/remove_beginning.xml +++ b/tools/remove_beginning/remove_beginning.xml @@ -1,17 +1,23 @@ - + of a file + + perl + + + + - perl $__tool_directory__/remove_beginning.pl - "${input}" - "${num_lines}" - "${out_file1}" +perl '$__tool_directory__/remove_beginning.pl' +'${input}' +${num_lines} +'${out_file1}' - + - +