annotate chess_test.xml @ 0:c5d6fd378400 draft

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