Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/condense_characters/.lint_skip
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CitationsMissing
ToolIDWhitespace
3 changes: 2 additions & 1 deletion tools/condense_characters/.shed.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions tools/condense_characters/condense_characters.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="Condense characters1" name="Condense" version="1.0.0">
<tool id="Condense characters1" name="Condense" version="1.0.1">
<description>consecutive characters</description>
<command>
perl $__tool_directory__/condense_characters.pl
Expand All @@ -20,7 +20,7 @@
<param format="txt" name="input" type="data" label="in this Query"/>
</inputs>
<outputs>
<data format="input" name="out_file1" metadata_source="input" />
<data format_source="input" name="out_file1" metadata_source="input" />
</outputs>
<tests>
<test>
Expand Down
1 change: 1 addition & 0 deletions tools/cummerbund/.lint_skip
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
InputsSelectDynamicOptions
130 changes: 67 additions & 63 deletions tools/cummerbund/cummeRbund.R
Original file line number Diff line number Diff line change
@@ -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 ##
Expand Down Expand Up @@ -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")
40 changes: 20 additions & 20 deletions tools/cummerbund/cummeRbund.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0"?>
<tool id="cummeRbund" name="cummeRbund" version="@TOOL_VERSION@+galaxy1">
<tool id="cummeRbund" name="cummeRbund" version="@TOOL_VERSION@+galaxy0">
<description>visualize Cuffdiff output</description>
<macros>
<import>cummeRbund_macros.xml</import>
</macros>
<requirements>
<requirement type="package" version="1">fonts-conda-ecosystem</requirement>
<requirement type="package" version="1.0.4">r-argparse</requirement>
<requirement type="package" version="3.4.1">r-base</requirement>
<requirement type="package" version="2.0.1">r-argparse</requirement>
<requirement type="package" version="3.5.1">r-base</requirement>
<requirement type="package" version="@TOOL_VERSION@">bioconductor-cummerbund</requirement>
</requirements>
<code file="cummeRbund_options.py"/>
Expand Down Expand Up @@ -111,8 +111,8 @@
<expand macro="multiple_genes_conditional" />
</when>
<when value="volcano">
<param name="x" type="select" label="First sample name for comparison" dynamic_options="get_samples(input_database.dataset.file_name)" />
<param name="y" type="select" label="Second sample name for comparison" dynamic_options="get_samples(input_database.dataset.file_name)" />
<param name="x" type="select" label="First sample name for comparison" dynamic_options="get_samples(input_database.get_file_name())" />
<param name="y" type="select" label="Second sample name for comparison" dynamic_options="get_samples(input_database.get_file_name())" />
<expand macro="multiple_genes_conditional" />
</when>
<when value="heatmap">
Expand Down Expand Up @@ -144,15 +144,15 @@
<when value="scatterMatrix" />
<when value="expressionplot">
<expand macro="features_selector" />
<param name="gene_id" type="select" label="Gene ID" dynamic_options="get_genes(input_database.dataset.file_name)" />
<param name="gene_id" type="select" label="Gene ID" dynamic_options="get_genes(input_database.get_file_name())" />
<param name="draw_summary" type="boolean" truevalue="--summary" falsevalue="" checked="False" label="Draw a 'summary' line with mean FPKM values for each condition?"/>
<param name="error_bars" type="boolean" truevalue="--error_bars" falsevalue="" checked="True" label="Draw error bars?"/>
<expand macro="replicates_checkbox" />
<expand macro="log10_checkbox" />
</when>
<when value="expressionbarplot">
<expand macro="features_selector" />
<param name="gene_id" type="select" label="Gene ID" dynamic_options="get_genes(input_database.dataset.file_name)" />
<param name="gene_id" type="select" label="Gene ID" dynamic_options="get_genes(input_database.get_file_name())" />
<param name="error_bars" type="boolean" truevalue="--error_bars" falsevalue="" checked="True" label="Draw error bars?"/>
<expand macro="replicates_checkbox" />
<expand macro="log10_checkbox" />
Expand All @@ -179,7 +179,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="maplot-0" ftype="png" file="maplot.png" />
<discovered_dataset designation="maplot-0" ftype="png" file="maplot.png" compare="sim_size" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use here the more stringent img-comparison asserts

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I've tried that and the difference was very high for reasons I don't understand.

</output>
</test>
<test>
Expand All @@ -195,7 +195,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="scatter-0" ftype="png" file="scatter.png" />
<discovered_dataset designation="scatter-0" ftype="png" file="scatter.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -209,7 +209,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="dispersion-0" ftype="png" file="dispersion.png" />
<discovered_dataset designation="dispersion-0" ftype="png" file="dispersion.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -223,7 +223,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="scatterMatrix-0" ftype="png" file="scatterMatrix.png" />
<discovered_dataset designation="scatterMatrix-0" ftype="png" file="scatterMatrix.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -237,7 +237,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="pca-0" ftype="png" file="pca.png" />
<discovered_dataset designation="pca-0" ftype="png" file="pca.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -253,7 +253,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="expressionplot-0" ftype="png" file="expressionplot.png" />
<discovered_dataset designation="expressionplot-0" ftype="png" file="expressionplot.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -269,7 +269,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="expressionbarplot-0" ftype="png" file="expressionbarplot.png" />
<discovered_dataset designation="expressionbarplot-0" ftype="png" file="expressionbarplot.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -289,7 +289,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="heatmap-0" ftype="png" file="heatmap.png" />
<discovered_dataset designation="heatmap-0" ftype="png" file="heatmap.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -303,7 +303,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="density-0" ftype="png" file="density.png" />
<discovered_dataset designation="density-0" ftype="png" file="density.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -317,7 +317,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="dendrogram-0" ftype="png" file="dendrogram.png" />
<discovered_dataset designation="dendrogram-0" ftype="png" file="dendrogram.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -333,7 +333,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="volcano-0" ftype="png" file="volcano.png" />
<discovered_dataset designation="volcano-0" ftype="png" file="volcano.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -347,7 +347,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="boxplot-0" ftype="png" file="boxplot.png" />
<discovered_dataset designation="boxplot-0" ftype="png" file="boxplot.png" compare="sim_size" />
</output>
</test>
<test>
Expand All @@ -361,7 +361,7 @@
</repeat>
<output name="output" ftype="txt">
<assert_contents><has_text text="cummeRbund finished" /></assert_contents>
<discovered_dataset designation="fpkmSCV-0" ftype="png" file="fpkmSCV.png" />
<discovered_dataset designation="fpkmSCV-0" ftype="png" file="fpkmSCV.png" compare="sim_size" />
</output>
</test>
</tests>
Expand Down
8 changes: 4 additions & 4 deletions tools/cummerbund/cummeRbund_macros.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0"?>
<macros>
<token name="@TOOL_VERSION@">2.16.0</token>
<token name="@TOOL_VERSION@">2.24.0</token>
<macro name="replicates_checkbox">
<param name="replicates" type="boolean" truevalue="--replicates" falsevalue="" checked="True" label="Replicates?"/>
</macro>
<macro name="log10_checkbox">
<param name="log10" type="boolean" truevalue="--log10" falsevalue="" checked="True" label="Apply log10 transformation on FPKM values?"/>
</macro>
<macro name="xy_selector">
<param name="x" type="select" label="Sample name for x axis" dynamic_options="get_samples(input_database.dataset.file_name)" />
<param name="y" type="select" label="Sample name for y axis" dynamic_options="get_samples(input_database.dataset.file_name)" />
<param name="x" type="select" label="Sample name for x axis" dynamic_options="get_samples(input_database.get_file_name())" />
<param name="y" type="select" label="Sample name for y axis" dynamic_options="get_samples(input_database.get_file_name())" />
</macro>
<macro name="genes_selector">
<repeat name="genes" title="Genes" min="2">
<!-- Cannot create a heatmap for less than two genes -->
<param name="gene_id" type="select" label="Gene ID" dynamic_options="get_genes(input_database.dataset.file_name)" />
<param name="gene_id" type="select" label="Gene ID" dynamic_options="get_genes(input_database.get_file_name())" />
</repeat>
</macro>
<macro name="features_selector">
Expand Down
Binary file modified tools/cummerbund/test-data/boxplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/dendrogram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/density.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/dispersion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/expressionbarplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/expressionplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/fpkmSCV.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/heatmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/maplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/pca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/scatter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/scatterMatrix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cummerbund/test-data/volcano.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions tools/remove_beginning/.lint_skip
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CitationsMissing
ToolIDWhitespace
3 changes: 2 additions & 1 deletion tools/remove_beginning/.shed.yml
Original file line number Diff line number Diff line change
@@ -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
Loading