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