Skip to content

Commit

Permalink
fixed ext issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zargham-ahmad committed May 3, 2024
1 parent be63963 commit c039521
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tools/waveica/macros.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@

<xml name="outputs">
<outputs>
<data name="normalized_data" format_source="data" >
<data name="normalized_data" format="tsv">
<change_format>
<when input="data.ext" value="parquet" format="parquet" />
<when input_dataset="data" attribute="ext" value="parquet" format="parquet" />
</change_format>
</data>
</outputs>
Expand Down
18 changes: 9 additions & 9 deletions tools/waveica/waveica.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="waveica" name="WaveICA" version="@TOOL_VERSION@+galaxy5" python_template_version="3.5">
<tool id="waveica" name="WaveICA" version="@TOOL_VERSION@+galaxy5" profile="21.09">
<description>removal of batch effects for untargeted metabolomics data</description>
<macros>
<import>macros.xml</import>
Expand Down Expand Up @@ -103,7 +103,7 @@
<param name="t" value="0.05"/>
<param name="t2" value="0.05"/>
<param name="alpha" value="0"/>
<output name="normalized_data" file="normalized_data.tsv"/>
<output name="normalized_data" file="normalized_data.tsv" ftype="tsv"/>
</test>
<test><!-- TEST 2 -->
<param name="data" value="input_data.tsv" ftype="tsv"/>
Expand All @@ -114,7 +114,7 @@
<param name="t" value="0.05"/>
<param name="t2" value="0.05"/>
<param name="alpha" value="0"/>
<output name="normalized_data" file="normalized_data.tsv"/>
<output name="normalized_data" file="normalized_data.tsv" ftype="tsv"/>
</test>
<test><!-- TEST 3 -->
<param name="data" value="input_data.parquet" ftype="parquet"/>
Expand All @@ -125,7 +125,7 @@
<param name="t" value="0.05"/>
<param name="t2" value="0.05"/>
<param name="alpha" value="0"/>
<output name="normalized_data" file="normalized_data.parquet"/>
<output name="normalized_data" file="normalized_data.parquet" ftype="parquet"/>
</test>
<test><!-- TEST 4 -->
<param name="input_choice" value="2"/>
Expand All @@ -138,7 +138,7 @@
<param name="t" value="0.05"/>
<param name="t2" value="0.05"/>
<param name="alpha" value="0"/>
<output name="normalized_data" file="normalized_data.tsv"/>
<output name="normalized_data" file="normalized_data.tsv" ftype="tsv"/>
</test>
<test><!-- TEST 5 -->
<param name="input_choice" value="2"/>
Expand All @@ -151,7 +151,7 @@
<param name="t" value="0.05"/>
<param name="t2" value="0.05"/>
<param name="alpha" value="0"/>
<output name="normalized_data" file="normalized_data.tsv"/>
<output name="normalized_data" file="normalized_data.tsv" ftype="tsv"/>
</test>
<test><!-- TEST 6 -->
<param name="input_choice" value="2"/>
Expand All @@ -164,7 +164,7 @@
<param name="t" value="0.05"/>
<param name="t2" value="0.05"/>
<param name="alpha" value="0"/>
<output name="normalized_data" file="normalized_data.parquet" compare="sim_size" delta="200"/>
<output name="normalized_data" file="normalized_data.parquet" compare="sim_size" delta="200" ftype="parquet"/>
</test>
<test><!-- TEST 7 -->
<param name="input_choice" value="2"/>
Expand All @@ -178,7 +178,7 @@
<param name="t" value="0.05"/>
<param name="t2" value="0.05"/>
<param name="alpha" value="0"/>
<output name="normalized_data" file="normalized_data.parquet" compare="sim_size" delta="200"/>
<output name="normalized_data" file="normalized_data.parquet" compare="sim_size" delta="200" ftype="parquet"/>
</test>
<test><!-- TEST 8 -->
<param name="input_choice" value="2"/>
Expand All @@ -192,7 +192,7 @@
<param name="t" value="0.05"/>
<param name="t2" value="0.05"/>
<param name="alpha" value="0"/>
<output name="normalized_data" file="normalized_data.tsv"/>
<output name="normalized_data" file="normalized_data.tsv" ftype="tsv"/>
</test>
<!-- The following test has different results on three platform I've tried -->
<!-- <test>
Expand Down
2 changes: 1 addition & 1 deletion tools/waveica/waveica_wrapper.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ exclude_group <- function(data, group) {

store_data <- function(data, output, ext) {
if (ext == "parquet") {
arrow::write_parquet(data, sink = output)
arrow::write_parquet(data, output)
} else {
write.table(data,
file = output, sep = "\t",
Expand Down

0 comments on commit c039521

Please sign in to comment.