annotate cutadapt_plugin.xml @ 24:f7e2f1eb3a16 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
author iuc
date Mon, 02 Sep 2024 14:22:54 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
1 <macros>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
2 <token name="@CUTADAPT_COMMAND@"><![CDATA[
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
3 #set $pattern = "This is cutadapt"
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
4 #for $file in $repeat.software_cond.input
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
5 @ESCAPE_IDENTIFIER@
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
6 #set file_path = os.path.join($software_dir, str($identifier) + '.txt')
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
7 ln -s '$file' '$file_path' &&
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
8 ## replace header for old cutadapt release
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
9 sed -i.old 's/You are running/This is/' '$file_path' &&
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
10 grep -q "$pattern" '$file_path' || die "'$pattern' or 'You are running cutadapt' not found in the file" &&
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
11 #end for
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
12 ]]></token>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
13 <xml name="cutadapt_form">
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
14 <param name="input" type="data" format="txt,tabular,tsv,csv" multiple="true" label="Output of Cutadapt" help="It should contain 'This is cutadapt' or 'You are running cutadapt'"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
15 </xml>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
16 <xml name="cutadapt_test">
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
17 <test expect_num_outputs="3">
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
18 <repeat name="results">
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
19 <conditional name="software_cond">
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
20 <param name="software" value="cutadapt"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
21 <param name="input" value="cutadapt.txt"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
22 </conditional>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
23 </repeat>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
24 <param name="title" value="Title of the report"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
25 <param name="comment" value="Commment for the report"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
26 <param name="flat" value="true"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
27 <param name="export" value="true"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
28 <output name="html_report">
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
29 <assert_contents>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
30 <has_text text="Title of the report"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
31 <has_text text="Commment for the report"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
32 <has_text text="cutadapt_trimmed_sequences_plot"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
33 </assert_contents>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
34 </output>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
35 <output name="stats">
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
36 <assert_contents>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
37 <has_text text="Cutadapt"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
38 <has_text text="Cutadapt_mqc_generalstats_cutadapt_percent_trimmed"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
39 <has_text text="10"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
40 <has_text text="Cutadapt_mqc_generalstats_cutadapt_percent_trimmed"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
41 <has_n_lines n="2"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
42 <has_n_columns n="2"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
43 </assert_contents>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
44 </output>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
45 <output_collection name="plots" type="list" count="2"/>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
46 </test>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
47 </xml>
f7e2f1eb3a16 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit dffbb5d421a5a5773bcb7f05933b12c45461bb58
iuc
parents:
diff changeset
48 </macros>