17
|
1 <tool id="extract_var_files_from_re" name="Extract various files from RepeatExplorer2 archive">
|
|
2 <command detect_errors="exit_code">
|
|
3
|
|
4 #for $sf in $file:
|
|
5
|
|
6 #if $sf == "CLUSTER_TABLE.csv"
|
|
7 unzip -p -j ${RepeatExplorer_archive} ${sf} > ${cluster_table}
|
|
8 ;
|
|
9 #end if
|
|
10
|
|
11 #if $sf == "COMPARATIVE_ANALYSIS_COUNTS.csv"
|
|
12 unzip -p -j ${RepeatExplorer_archive} ${sf} > ${comparative_analysis_count}
|
|
13 ;
|
|
14 #end if
|
|
15
|
|
16 #if $sf == "SUPERCLUSTER_TABLE.csv"
|
|
17 unzip -p -j ${RepeatExplorer_archive} ${sf} > ${supercluster_table}
|
|
18 ;
|
|
19 #end if
|
|
20
|
|
21 #end for
|
|
22
|
|
23
|
|
24
|
|
25 </command>
|
|
26
|
|
27 <inputs>
|
|
28 <param name="RepeatExplorer_archive" label="Archive with RepeatExplorer2 results" type="data" format="zip"/>
|
|
29
|
|
30 <param name="file" type="select" label="select files you want to extract" multiple="true" optional="false">
|
|
31 <option value="CLUSTER_TABLE.csv">CLUSTER_TABLE.csv</option>
|
|
32 <option value="COMPARATIVE_ANALYSIS_COUNTS.csv">COMPARATIVE_ANALYSIS_COUNTS.csv</option>
|
|
33 <option value="SUPERCLUSTER_TABLE.csv">SUPERCLUSTER_TABLE.csv</option>
|
|
34 </param>
|
|
35 </inputs>
|
|
36
|
|
37 <outputs>
|
|
38 <data format="tabular" name="cluster_table" label="CLUSTER_TABLE.csv from ${RepeatExplorer_archive.hid}" >
|
|
39 <filter>"CLUSTER_TABLE.csv" in file</filter>
|
|
40 </data>
|
|
41 <data format="tabular" name="supercluster_table" label="SUPERCLUSTER_TABLE.csv from ${RepeatExplorer_archive.hid}">
|
|
42 <filter>"SUPERCLUSTER_TABLE.csv" in file</filter>
|
|
43 </data>
|
|
44 <data format="tabular" name="comparative_analysis_count" label="COMPARATIVE_ANALYSIS_COUNTS.csv from ${RepeatExplorer_archive.hid}">
|
|
45 <filter>"COMPARATIVE_ANALYSIS_COUNTS.csv" in file</filter>
|
|
46 </data>
|
|
47 </outputs>
|
|
48 </tool>
|
|
49
|