1
|
1 <tool id="select_optimal_cluster" name="Select Optimal Cluster" version="1.0.0">
|
|
2 <description>
|
|
3 Select the Optimal Clusters from TITAN
|
|
4 </description>
|
|
5 <requirements>
|
|
6 <requirement type="binary">Rscript</requirement>
|
|
7 <requirement type="package" version="3.2.1">R</requirement>
|
|
8 <requirement type="package" version="1.0">cancer_genomics_functions</requirement>
|
|
9 <requirement type="environment" verion="1.0">CANCER_GENOMICS_FUNCTIONS_PATH</requirement>
|
|
10 </requirements>
|
|
11 <command>
|
|
12
|
|
13 Rscript $__tool_directory__/select_optimal_cluster.R
|
|
14 --input_params
|
|
15 #for $f in $params:
|
|
16 $f
|
|
17 #end for
|
|
18 --input_segments
|
|
19 #for $f in $segments:
|
|
20 $f
|
|
21 #end for
|
|
22 #if $method.method_selector == "validity_index"
|
|
23 --method validity_index
|
|
24 #else
|
|
25 --method validity_index_and_pga
|
|
26 -pga $method.pga
|
|
27 #end if
|
|
28 --output_param $output_param
|
|
29 --output_segment $output_segment
|
|
30 -cgfp \$CANCER_GENOMICS_FUNCTIONS_PATH
|
|
31
|
|
32 </command>
|
|
33
|
|
34 <inputs>
|
|
35 <conditional name="method">
|
|
36 <param name="method_selector" type="select" label="Method for Cluster Selection">
|
|
37 <option value="validity_index" selected="True">Min Val Index</option>
|
|
38 <option value="validity_index_and_pga">Min Val Index + PGA Threshold</option>
|
|
39 </param>
|
|
40 <when value="validity_index_and_pga">
|
|
41 <param name="pga" type="float" min="0.0" max="1.0" value="0.8" label="Maximum Percent Genome Alteration"/>
|
|
42 </when>
|
|
43 </conditional>
|
|
44 <param type="data_collection" format="txt" collection_type="list" name="params"/>
|
|
45 <param type="data_collection" format="txt" collection_type="list" name="segments"/>
|
|
46 </inputs>
|
|
47
|
|
48 <outputs>
|
|
49 <data format="txt" name="output_param" label="Optimal TITAN parameters output"/>
|
|
50 <data format="txt" name="output_segment" label="Optimal TITAN segments output"/>
|
|
51 </outputs>
|
|
52
|
|
53 </tool>
|