annotate rdeval_report.xml @ 5:7cfeba6facd1 draft

planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
author richard-burhans
date Fri, 02 May 2025 22:49:30 +0000
parents 7bf95986aaa4
children fdad714d7caf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
1 <tool id="rdeval_report" name="rdeval report" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
2 <description>Read summary and figures.</description>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
3 <macros>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
4 <import>macros.xml</import>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
5 </macros>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
6 <expand macro="requirements"/>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
8 mkdir render &&
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
9 cd render &&
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
10 export RDEVAL_SHARE_DIR="\$(dirname \$(dirname \$(type -P rdeval)))/share/rdeval" &&
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
11 ln -s "\$RDEVAL_SHARE_DIR/figures.Rmd" &&
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
12 ln -s "\$RDEVAL_SHARE_DIR/rdeval_interface.R" &&
5
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
13 #set $input_file_list = []
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
14 #for $idx, $input_file in enumerate($input_files)
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
15 ln -s '$input_file' '${idx}.rd' &&
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
16 #silent $input_file_list.append(f"'{idx}.rd'")
4
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
17 #end for
5
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
18 #set $r_vector = "c(" + ",".join(input_file_list) + ")"
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
19 #set $interactive_value = "FALSE"
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
20 #if $output_format.format_selector == "html" and $output_format.interactive
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
21 #set $interactive_value = "TRUE"
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
22 #end if
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
23 R -e "rmarkdown::render('figures.Rmd', output_file='$outfile', output_format='${output_format.format_selector}_document', params=list(input_files=$r_vector, interactive='$interactive_value'))"
4
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
24 ]]></command>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
25 <inputs>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
26 <param name="input_files" type="data" format="data" multiple="true" label="Input dataset" help="RD files"/>
5
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
27 <conditional name="output_format">
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
28 <param name="format_selector" type="select" label="output format" help="output format">
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
29 <option value="html" selected="true">html</option>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
30 <option value="pdf">pdf</option>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
31 </param>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
32 <when value="html">
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
33 <param name="interactive" type="boolean" value="true" label="interactive" help="interactive"/>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
34 </when>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
35 <when value="pdf"/>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
36 </conditional>
4
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
37 </inputs>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
38 <outputs>
5
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
39 <data name="outfile" format="html" label="Rdeval report">
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
40 <change_format>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
41 <when input="output_format" value="pdf" format="pdf"/>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
42 </change_format>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
43 </data>
4
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
44 </outputs>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
45 <tests>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
46 <test expect_num_outputs="1">
5
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
47 <param name="input_files" value="input1.rd"/>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
48 <conditional name="output_format">
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
49 <param name="format_selector" value="html"/>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
50 </conditional>
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
51
7cfeba6facd1 planemo upload for repository https://github.com/vgl-hub/rdeval commit d55c4b3d6b91d0418950ed6b7806ef779a916099
richard-burhans
parents: 4
diff changeset
52 <output name="outfile" ftype="html">
4
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
53 <assert_contents>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
54 <has_size size="833000" delta="8330"/>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
55 </assert_contents>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
56 </output>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
57 </test>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
58 </tests>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
59 <help><![CDATA[
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
60 This tool creates a report containing a read summary and figures from input RD files.
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
61 ]]></help>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
62 <expand macro="citations"/>
7bf95986aaa4 planemo upload for repository https://github.com/vgl-hub/rdeval commit 0d51c740073961b52774f611929f062b06de80da
richard-burhans
parents:
diff changeset
63 </tool>