Mercurial > repos > mbernt > singularity_scriptrunner
annotate general.xml @ 0:9512201417a5 draft
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
author | mbernt |
---|---|
date | Sun, 06 Aug 2023 15:21:11 +0000 |
parents | |
children |
rev | line source |
---|---|
0
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
1 <tool id="singularity_scriptrunner" name="scriptrunner" version="0.1" profile="22.05"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
2 <description>singularity</description> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
3 <creator> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
4 <person givenName="Matthias" familyName="Bernt" email="m.bernt@ufz.de" /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
5 <organization name="Helmholtz Centre for Environmental Research - UFZ" url="https://www.ufz.de/"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
6 </creator> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
7 <command detect_errors="aggressive"><![CDATA[ |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
8 #import re |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
9 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
10 ## cp script to JWD |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
11 mkdir script && |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
12 cp '$script' script/script && |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
13 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
14 mkdir inputs && |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
15 #for $p in $parameters |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
16 #if $p.type_cond.type_sel == "data" |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
17 #if $p.type_cond.filename != '' |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
18 #set fname = $p.type_cond.filename |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
19 #else |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
20 #set fname=re.sub('[^\s\w\.]', '_', str($p.type_cond.param.element_identifier)) + "." + $p.type_cond.param.ext |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
21 #end if |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
22 ln -s '$p.type_cond.param' inputs/'$fname' && |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
23 #end if |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
24 #end for |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
25 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
26 $image.fields.container_type |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
27 exec |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
28 ## --cpus 1 # disabled because rootless cgroups requires cgroups v2 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
29 ## --memory "\$((1024 * \${GALAY_MEMORY_MB:-8192}))" # not needed on EVE |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
30 ## bind Galaxy's file dir, otherwise we need to copy input file to JWD |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
31 --bind '$__app__.config.file_path:$__app__.config.file_path' |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
32 $image.fields.container_params |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
33 '$image.fields.image' |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
34 $image.fields.interpreter 'script/script' |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
35 #for $p in $parameters |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
36 #if $p.type_cond.type_sel == "data" |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
37 #if $p.type_cond.filename != '' |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
38 #set fname = $p.type_cond.filename |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
39 #else |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
40 #set fname=re.sub('[^\s\w\.]', '_', str($p.type_cond.param.element_identifier)) + "." + $p.type_cond.param.ext |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
41 #end if |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
42 inputs/'$fname' |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
43 #else |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
44 '$p.type_cond.param' |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
45 #end if |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
46 #end for |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
47 ]]></command> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
48 <configfiles> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
49 <configfile name="script">$code</configfile> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
50 </configfiles> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
51 <inputs> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
52 <param name="interpreter" type="select" label="Interpreter"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
53 <options from_data_table="scripting_images"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
54 <column name="name" index="3"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
55 <column name="value" index="3"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
56 <filter type="regexp" column="4" value="singularity|apptainer"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
57 </options> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
58 <validator type="no_options" message="No interpreter available. Contact you Galaxy administrator." /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
59 </param> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
60 <param name="image" type="select" label="Image" > |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
61 <options from_data_table="scripting_images"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
62 <filter type="regexp" column="4" value="singularity|apptainer"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
63 <filter type="param_value" column="3" ref="interpreter"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
64 </options> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
65 <validator type="no_options" message="No interpreter / image is available. Contact you Galaxy administrator." /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
66 </param> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
67 <repeat name="parameters" title="Parameters" min="1" default="1" help="Supply one or more parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
68 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
69 <param name="type_sel" type="select" label="Parameter type"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
70 <option value="data">Dataset</option> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
71 <option value="text">Text</option> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
72 <!-- Not sure if int/float make sense .. can they be connected to text in WFs? --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
73 </param> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
74 <when value="data"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
75 <param name="param" type="data" format="data" label="Dataset"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
76 <param name="filename" type="text" label="File name" help="Set if you want to access the data set with a specific file name. Only alphanumeric characters, dash and underscore are allowed (all other characters are replaced by an undercore). Default is Galaxy's data set name."> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
77 <sanitizer invalid_char="_"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
78 <valid initial="string.ascii_letters,string.digits"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
79 <add value="_" /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
80 <add value="-" /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
81 <add value="." /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
82 </valid> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
83 </sanitizer> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
84 <!-- file names must not start with dash --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
85 <validator type="regex" negate="true" message="Filenames must not start with a dash">^[-].*$</validator> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
86 </param> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
87 </when> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
88 <when value="text"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
89 <param name="param" type="text" label="Text parameter" help=""/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
90 </when> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
91 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
92 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
93 <param name="code" type="text" area="true" label="Script to execute" help=""> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
94 <sanitizer> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
95 <valid initial="string.printable"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
96 </sanitizer> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
97 </param> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
98 </inputs> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
99 <outputs> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
100 <collection name="output" type="list" label="Outputs"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
101 <discover_datasets pattern="__designation_and_ext__"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
102 </collection> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
103 </outputs> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
104 <tests> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
105 <!-- read tsv write csv --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
106 <test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
107 <param name="interpreter" value="python"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
108 <param name="image" value="python_continuumio_anaconda"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
109 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
110 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
111 <param name="type_sel" value="data"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
112 <param name="param" value="test.tsv" ftype="tabular"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
113 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
114 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
115 <param name="code" value='import sys; import pandas as pd; df = pd.read_csv(sys.argv[1], sep="\t"); df.to_csv("data.csv", index=False, sep=",");'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
116 <output_collection name="output" type="list" count="1"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
117 <element name="data" ftype="csv"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
118 <assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
119 <has_line line="1,2" /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
120 <has_n_lines n="3"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
121 <has_n_columns n="2" sep=","/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
122 </assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
123 </element> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
124 </output_collection> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
125 <!-- but the data table this should use singularity and not use additional parameters to it (\-\-cleanenv) --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
126 <assert_command> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
127 <has_text text="singularity"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
128 <has_text text="--cleanenv"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
129 </assert_command> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
130 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
131 <!-- plot w matplotlib --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
132 <test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
133 <param name="interpreter" value="python"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
134 <param name="image" value="python_continuumio_anaconda"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
135 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
136 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
137 <param name="param" value="test.tsv" ftype="tabular"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
138 <param name="filename" value="custom_name.tsv"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
139 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
140 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
141 <param name="code" value='import sys; import pandas as pd; from matplotlib.backends.backend_pdf import PdfPages; df = pd.read_csv(sys.argv[1], sep="\t"); fh = PdfPages("points.pdf"); plt = df.plot(); fh.savefig(); fh.close(); print(f"plotted {sys.argv[1]}")'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
142 <output_collection name="output" type="list" count="1"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
143 <element name="points" ftype="pdf"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
144 <assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
145 <has_text text="PDF" /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
146 </assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
147 </element> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
148 </output_collection> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
149 <assert_stdout> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
150 <has_line line="plotted inputs/custom_name.tsv"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
151 </assert_stdout> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
152 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
153 <!-- install libraries ("forbidden") --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
154 <test expect_failure="true"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
155 <param name="interpreter" value="python"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
156 <param name="image" value="python_continuumio_anaconda"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
157 <param name="code" value='import pip; pip.main(["install", "biopython"]); import Bio'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
158 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
159 <!-- read binary files (eg feather) --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
160 <test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
161 <param name="interpreter" value="python"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
162 <param name="image" value="python_continuumio_anaconda"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
163 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
164 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
165 <param name="param" value="test.h5" ftype="h5"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
166 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
167 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
168 <param name="code" value='import sys; import os; import pandas as pd; df = pd.read_hdf(sys.argv[1]); df.to_csv("data.csv", index=False, sep=",");'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
169 <output_collection name="output" type="list" count="1"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
170 <element name="data" ftype="csv"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
171 <assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
172 <has_line line="1,2" /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
173 <has_n_lines n="3"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
174 <has_n_columns n="2" sep=","/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
175 </assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
176 </element> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
177 </output_collection> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
178 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
179 <!-- parameters --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
180 <test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
181 <param name="interpreter" value="python"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
182 <param name="image" value="python_continuumio_anaconda"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
183 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
184 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
185 <param name="type_sel" value="text"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
186 <param name="param" value="filename.csv"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
187 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
188 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
189 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
190 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
191 <param name="type_sel" value="text"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
192 <param name="param" value="some value"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
193 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
194 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
195 <param name="code" value='import sys; fh = open(sys.argv[1], "w"); fh.write("Hello,world\n"); fh.write("Bye,world\n"); fh.close(); print(sys.argv[2]);'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
196 <output_collection name="output" type="list" count="1"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
197 <element name="filename" ftype="csv"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
198 <assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
199 <has_line line="Hello,world"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
200 <has_n_lines n="2"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
201 <has_n_columns n="2" sep=","/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
202 </assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
203 </element> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
204 </output_collection> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
205 <assert_stdout> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
206 <has_line line='some value'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
207 </assert_stdout> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
208 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
209 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
210 <!-- read tsv write csv --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
211 <test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
212 <param name="interpreter" value="Rscript"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
213 <param name="image" value="r_rocker_tidyverse"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
214 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
215 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
216 <param name="param" value="test.tsv" ftype="tabular"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
217 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
218 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
219 <param name="code" value='args = commandArgs(trailingOnly = TRUE); data = read.delim(args[1]); write.csv(data, "data.csv", row.names=FALSE)'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
220 <output_collection name="output" type="list" count="1"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
221 <element name="data" ftype="csv"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
222 <assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
223 <has_line line="1,2" /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
224 <has_n_lines n="3"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
225 <has_n_columns n="2" sep=","/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
226 </assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
227 </element> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
228 </output_collection> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
229 <!-- but the data table this should use apptainer and not use any additional parameters to it --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
230 <assert_command> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
231 <has_text text="apptainer"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
232 <has_text text="--cleanenv" negate="true"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
233 </assert_command> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
234 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
235 <!-- use a tidyverse library --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
236 <test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
237 <param name="interpreter" value="Rscript"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
238 <param name="image" value="r_rocker_tidyverse"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
239 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
240 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
241 <param name="param" value="test.tsv" ftype="tabular"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
242 <param name="filename" value="custom_name.tsv"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
243 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
244 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
245 <param name="code" value='library(ggplot2); args = commandArgs(trailingOnly = TRUE); data = read.delim(args[1]); pdf("points.pdf"); ggplot(data, aes(x=A, y=B)) + geom_point(); dev.off(); print(paste("plotted", args[1]))'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
246 <output_collection name="output" type="list" count="1"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
247 <element name="points" ftype="pdf"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
248 <assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
249 <has_text text="PDF" /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
250 </assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
251 </element> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
252 </output_collection> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
253 <assert_stdout> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
254 <has_line line='[1] "plotted inputs/custom_name.tsv"'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
255 </assert_stdout> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
256 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
257 <!-- install libraries fails --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
258 <test expect_failure="true"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
259 <param name="interpreter" value="Rscript"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
260 <param name="image" value="r_rocker_tidyverse"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
261 <param name="code" value='install.packages("maybe"); library(maybe); print("success")'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
262 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
263 <test expect_failure="true"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
264 <param name="interpreter" value="Rscript"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
265 <param name="image" value="r_rocker_tidyverse"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
266 <param name="code" value='install.packages("BiocManager"); BiocManager::install("multtest"); print("success")'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
267 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
268 <!-- read binary files (eg rds) --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
269 <test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
270 <param name="interpreter" value="Rscript"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
271 <param name="image" value="r_rocker_tidyverse"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
272 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
273 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
274 <param name="param" value="test.rds" ftype="rds"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
275 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
276 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
277 <param name="code" value='args = commandArgs(trailingOnly = TRUE); data = readRDS(args[1]); write.csv(data, "data.csv", row.names=FALSE)'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
278 <output_collection name="output" type="list" count="1"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
279 <element name="data" ftype="csv"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
280 <assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
281 <has_line line="1,2" /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
282 <has_n_lines n="3"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
283 <has_n_columns n="2" sep=","/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
284 </assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
285 </element> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
286 </output_collection> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
287 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
288 <!-- optional input and parameters --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
289 <test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
290 <param name="interpreter" value="Rscript"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
291 <param name="image" value="r_rocker_tidyverse"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
292 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
293 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
294 <param name="type_sel" value="text"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
295 <param name="param" value="filename.csv"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
296 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
297 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
298 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
299 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
300 <param name="type_sel" value="text"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
301 <param name="param" value="some value"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
302 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
303 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
304 <param name="code" value='args = commandArgs(trailingOnly = TRUE); fileConn = file(args[1]); writeLines(c("Hello,world","Bye,world"), fileConn); close(fileConn); print(args[2]);'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
305 <output_collection name="output" type="list" count="1"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
306 <element name="filename" ftype="csv"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
307 <assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
308 <has_line line="Hello,world"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
309 <has_n_lines n="2"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
310 <has_n_columns n="2" sep=","/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
311 </assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
312 </element> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
313 </output_collection> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
314 <assert_stdout> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
315 <has_line line='[1] "some value"'/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
316 </assert_stdout> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
317 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
318 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
319 <!-- some tests with bash--> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
320 <test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
321 <param name="interpreter" value="bash"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
322 <param name="image" value="bash_continuumio_anaconda"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
323 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
324 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
325 <param name="param" value="test.tsv" ftype="tabular"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
326 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
327 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
328 <param name="code" value="sed -e 's/\t/,/' $1 > data.csv"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
329 <output_collection name="output" type="list" count="1"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
330 <element name="data" ftype="csv"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
331 <assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
332 <has_line line="1,2" /> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
333 <has_n_lines n="3"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
334 <has_n_columns n="2" sep=","/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
335 </assert_contents> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
336 </element> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
337 </output_collection> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
338 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
339 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
340 <!-- check that we can turn off networking --> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
341 <test expect_failure="true"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
342 <param name="interpreter" value="bash"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
343 <param name="image" value="bash_continuumio_anaconda"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
344 <repeat name="parameters"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
345 <conditional name="type_cond"> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
346 <param name="param" value="test.tsv" ftype="tabular"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
347 </conditional> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
348 </repeat> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
349 <param name="code" value="curl -iL https://www.galaxyproject.org"/> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
350 </test> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
351 </tests> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
352 <help><![CDATA[ |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
353 **Warning** |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
354 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
355 .. class:: warningmark |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
356 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
357 **Make sure that you know what you are doing. When used wrong the tool may lead to |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
358 data loss of files that you can write to.** |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
359 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
360 .. class:: warningmark |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
361 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
362 This tool is only intended to serve for single-use, ad-hoc exploratory analysis |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
363 of data sets with small scripts. This is because the tool has a limited |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
364 reusuability (in particular on other Galaxy servers). |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
365 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
366 .. class:: warningmark |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
367 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
368 If you use this tool repeatedly with the same script and/or have the impression |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
369 that other Galaxy users could profit from this script then contact your local |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
370 Galaxy administrator or the Galaxy community, e.g. at https://github.com/galaxyproject/tools-iuc/, |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
371 and ask if your script can be turned into a proper Galaxy tool. |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
372 One of the main advantages of a proper Galaxy tool is that they are tested and |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
373 maintained. Furthermore the whole Galaxy community may profit. |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
374 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
375 **What it does** |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
376 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
377 Executes an interpreted script (in a container). The available scripting |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
378 languages (e.g. python, R, bash, etc) and containers are configured by the |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
379 Galaxy administrator. |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
380 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
381 An arbitrary number of data or text parameters can be given to the script. |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
382 Data parameters are by default named like the datasets name and the datatype |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
383 is used as extension. This can be overwritten with the filename parameter |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
384 for the corresponding dataset. |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
385 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
386 **Inputs** |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
387 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
388 A python script can access data set parameters via the ``sys.argv`` list |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
389 where the i-th parameter corresponds to the i-th list element (counting from 1). |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
390 A tab delimited file, for instance, can be read with ``pandas`` as follows: |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
391 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
392 :: |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
393 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
394 import sys |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
395 import pandas as pd |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
396 df = pd.read_csv(sys.argv[1], sep="\t") |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
397 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
398 In an R script the list obtained by ``args <- commandArgs(trailingOnly = TRUE);`` |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
399 contains (again the i-th list element contains the i-th parameter, starting from 1). |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
400 Reading a tab separated file in R could be done as follows: |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
401 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
402 :: |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
403 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
404 args <- commandArgs(trailingOnly = TRUE); |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
405 first_arg <- file(args[1]) |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
406 df <- read.delim(args[1]); |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
407 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
408 **Outputs** |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
409 |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
410 Output datasets are read from the current working directory and put into a |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
411 single collection. The collection elements will be named as the file names |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
412 (without the extension). The file extension determines the datatype of the |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
413 datasets (or Galaxy will try to autodetect the data type). |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
414 ]]></help> |
9512201417a5
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/tools/scripting/ commit 9e9a0860d255a1fd6c43edd0fde9ea538ee679de
mbernt
parents:
diff
changeset
|
415 </tool> |