annotate chess_test.xml @ 2:1877f48c9d4c draft default tip

"planemo upload"
author mzhuang
date Sat, 25 Sep 2021 19:44:25 +0000
parents fdc832c0cde8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
fdc832c0cde8 "planemo upload"
mzhuang
parents: 0
diff changeset
1 <tool id="chess_test" name="CHESS Test Pre-processing Tool" version="0.2.0">
0
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
2 <description>for pre-processing raw data</description>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
3 <requirements>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
4 <requirement type="package" version="0.8.4">hexrd</requirement>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
5 </requirements>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
6 <command><![CDATA[
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
7 mkdir -p output;
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
8 cd output;
2
1877f48c9d4c "planemo upload"
mzhuang
parents: 1
diff changeset
9 ##set $history_id=$__app__.security.encode_id($output.creating_job.history.id)
1877f48c9d4c "planemo upload"
mzhuang
parents: 1
diff changeset
10 #set $history_id='abcdefg';
0
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
11 echo '$history_id' >> '$output';
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
12
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
13 ]]></command>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
14 <inputs>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
15 <!--
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
16 <param name="infile_" type="data" multiple="true" label="Any file"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
17 -->
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
18 <conditional name="input_source_conditional">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
19 <param name="input_source" type="select" label="Location of raw data">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
20 <option value="input_source_history" selected="true">Choose from History panel</option>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
21 <option value="input_source_linux">Specify a directory in CHESS file system </option>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
22 </param>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
23 <when value="input_source_history">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
24 <conditional name="input_type_conditional">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
25 <param name="input_type" type="select" label="Input raw data as">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
26 <option value="list_collection" selected="true">List of Datasets</option>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
27 <option value="single">Dataset(s)</option>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
28 </param>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
29 <when value="single">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
30 <param name="fastq_input1" type="data" multiple="true" label="Select (a) raw data file(s)" help="Specify (a) raw data file(s) for pre-processing"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
31 </when>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
32 <when value="list_collection">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
33 <param name="fastq_input" type="data_collection" collection_type="list" label="Select a list of raw data files" help="Specify a list of raw data files for pre-processing one by one"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
34 </when>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
35 </conditional>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
36 </when>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
37 <when value="input_source_linux">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
38 <param name="base_dir" type="text" label="Please specify the directory that contains raw data">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
39 <sanitizer>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
40 <valid initial="string.ascii_letters,string.digits">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
41 <add value="#,/,*,@,.,_,-" />
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
42 <add value="_" />
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
43 </valid>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
44 </sanitizer>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
45 </param>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
46 <param name="expt_name" type="text" label="Please specify the experiment name"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
47 <param name="samp_name" type="text" label="Please specify the sample name"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
48 <param name="scan_numbers" type="text" label="Please specify a scan number or scan numbers separated by comma (for example, 5,7,8,9,20,21,22,23,30 or 5,7:9,20:23,30)"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
49 </when>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
50 </conditional>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
51 <!--
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
52 <param name="which_cluster" type="select" label="Send your job to below cluster">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
53 <option value="SDSC" selected="true">SDSC</option>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
54 <option value="Cornell" selected="true">Cornell CHESS</option>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
55 </param>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
56 -->
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
57 <!--
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
58 <param name="output_dir" type="text" hidden="true"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
59 -->
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
60 <param name="num_frames" type="integer" value="999" label="Number of frames to read"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
61 <param name="start_frame" type="integer" value="0" label="Index of first data frame"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
62 <param name="threshold" type="integer" value="50" label="Threshold for frame caches"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
63 <param name="ome_start" type="float" value="-50.0" label="Start omega"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
64 <param name="ome_end" type="float" value="49.9" label="End omega"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
65 <param name="output_as_list" type="select" label="Would you like the tool to output result(s) as a list?">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
66 <option value="Yes" selected="true">Yes. Let the results be contained in a list.</option>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
67 <option value="No" >No. Show them individually.</option>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
68 </param>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
69 </inputs>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
70 <outputs>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
71 <data format="txt" name="output_list_log" label="${tool.name} on ${on_string}">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
72 <!--filter>input_type_conditional['input_type'] == 'single'</filter-->
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
73 <filter>output_as_list == 'Yes'</filter>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
74 </data>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
75 <!--
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
76 <collection name="output_list" type="list" label="${tool.name} on ${on_string}: processed_data" structured_like="fastq_input" format="npz">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
77 <collection name="output_list" type="list" label="${tool.name} on ${on_string}: processed_data" format="npz">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
78 -->
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
79 <collection name="output_list" type="list" label="${tool.name} on ${on_string}: processed_data">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
80 <!-- discover_datasets pattern="__name_and_ext__" directory="output" ext="npz" visible="false"/-->
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
81 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.npz" ext="hexrd.npz" directory="output"/>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
82 <!--discover_datasets pattern="(?P&lt;designation&gt;.+)\.npz" ext="npz" directory="output"/-->
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
83 <!--discover_datasets pattern="(?P&lt;designation&gt;.npz)" ext="hexrd.npz" directory="output"/-->
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
84 <!--filter>input_type_conditional['input_type'] == 'list_collection'</filter-->
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
85 <filter>output_as_list == 'Yes'</filter>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
86 </collection>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
87 <data format="txt" name="output" label="${tool.name} on ${on_string}">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
88 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.npz" directory="output" ext="hexrd.npz" visible="true" />
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
89 <filter>output_as_list == 'No'</filter>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
90 </data>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
91 <!--data format="txt" name="output_list" label="${tool.name} on ${on_string}: listfiles">
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
92 <filter>input_type_conditional['input_type'] == 'list_collection'</filter>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
93 </data -->
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
94 </outputs>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
95 </tool>
c5d6fd378400 "planemo upload"
mzhuang
parents:
diff changeset
96