Skip to content

Commit

Permalink
update XML files and test-data
Browse files Browse the repository at this point in the history
  • Loading branch information
Minamehr committed Oct 30, 2024
1 parent ad09a29 commit c21c2b6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions tools/ampvis2/alpha_diversity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@
library(ampvis2, quietly = TRUE)
d <- readRDS("$data")
a <- amp_alphadiv(d,
table <- amp_alphadiv(d,
measure = c($m),
richness = $richness
@RAREFY_TOKEN@,
)
b <- amp_alphadiv(d,
plot <- amp_alphadiv(d,
measure = c($m),
richness = $richness
@RAREFY_TOKEN@,
plot = TRUE,
plot_group_by = "$group_by",
plot_scatter = $plot_scatter
)
write.table(a, file='$alphadiv', quote=FALSE, sep='\t', row.names=FALSE)
write.table(table, file='$alphadiv', quote=FALSE, sep='\t', row.names=FALSE)
ggsave("$alphadiv_plot",
plot = b,
plot = plot,
device = "$output_options.out_format"
#if str($output_options.plot_width) != ''
, width = $output_options.plot_width
Expand All @@ -55,7 +55,7 @@
</inputs>
<outputs>
<data name="alphadiv" format="tabular"/>
<expand macro="out_macro" name="alphadiv_plot" label=": alpha diversity plot"/>
<expand macro="out_macro" name="alphadiv_plot" label=": plot"/>
</outputs>
<tests>
<test>
Expand All @@ -71,7 +71,11 @@
<has_n_columns n="10"/>
</assert_contents>
</output>
<output name="alphadiv_plot" value="AalborgWWTPs-alpha_diversity_plot.pdf" ftype="pdf" compare="sim_size"/>
<output name="alphadiv_plot" ftype="pdf">
<assert_contents>
<has_size min="1"/>
</assert_contents>
</output>
</test>
<test>
<param name="data" value="AalborgWWTPs.rds" ftype="ampvis2"/>
Expand All @@ -90,8 +94,11 @@
<has_text text="&#9;500&#9;"/>
</assert_contents>
</output>
<output name="alphadiv_plot" value="AalborgWWTPs-alpha_diversity_plot2.pdf" ftype="pdf" compare="sim_size"/>

<output name="alphadiv_plot">
<assert_contents>
<has_size min="1"/>
</assert_contents>
</output>
</test>
</tests>
<help><![CDATA[
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit c21c2b6

Please sign in to comment.