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