0
|
1 <tool id="bg_eden_nearest_neighbor" name="EDeN Nearest Neighbors" version="0.1">
|
|
2 <description></description>
|
7
|
3 <expand macro="requirements" />
|
3
|
4 <macros>
|
|
5 <import>eden_macros.xml</import>
|
|
6 </macros>
|
0
|
7 <command>
|
7
|
8 tmp_dir=`mktemp -d -u`;
|
0
|
9 EDeN --action NEAREST_NEIGHBOR
|
2
|
10
|
0
|
11 --input_data_file_name $infile
|
2
|
12 --target_file_name $target_infile
|
|
13
|
0
|
14 --file_type "SPARSE_VECTOR"
|
|
15 --binary_file_type
|
|
16
|
7
|
17 --output_directory_path \$tmp_dir
|
|
18
|
|
19
|
|
20 ##
|
|
21 ## shuffling files to create the correct outputs for Galaxy
|
|
22 ##
|
0
|
23
|
7
|
24 ;
|
|
25 cp \$tmp_dir/knn $ofile_nnlist 2> /dev/null
|
|
26
|
|
27 ## Nearest neighbor feature representation
|
|
28 #if 'nnf' in str($additional_outputs).split(','):
|
|
29 ;
|
|
30 cp \$tmp_dir/knn_feature $ofile_nnf 2> /dev/null
|
|
31 #end if
|
|
32
|
|
33 ## Nearest neighbor target value list
|
|
34 #if 'nnt' in str($additional_outputs).split(','):
|
|
35 ;
|
|
36 cp \$tmp_dir/knn_target_value $ofile_nnt 2> /dev/null
|
|
37 #end if
|
|
38
|
|
39 ## Nearest neighbor kernel value list
|
|
40 #if 'nnk' in str($additional_outputs).split(','):
|
|
41 ;
|
|
42 cp \$tmp_dir/knn_kernel_value $ofile_nnk 2> /dev/null
|
2
|
43 #end if
|
0
|
44
|
|
45 </command>
|
|
46 <inputs>
|
|
47
|
|
48 <param format="eden_sparse_vector" name="infile" type="data" label="Input Graph" help=""/>
|
|
49 <param format="txt" name="target_infile" type="data" label="Target file" help=""/>
|
|
50
|
2
|
51 <expand macro="input_smooth_conditional" />
|
0
|
52
|
7
|
53 <expand macro="kernel_type_options" />
|
|
54
|
|
55 <expand macro="graph_types" />
|
|
56
|
|
57 <expand macro="normalization_kernel_hash_radius_dist_vertex" />
|
|
58
|
|
59 <param name="additional_outputs" type="select" multiple="true" optional="True" label="Additional outputs">
|
|
60 <option value="none" selected="True">No additional output</option>
|
|
61 <option value="nnk">Nearest neighbor kernel value list</option>
|
|
62 <option value="nnt">Nearest neighbor target value list</option>
|
|
63 <option value="nnf">Nearest neighbor feature representation</option>
|
|
64 </param>
|
|
65
|
0
|
66 </inputs>
|
|
67 <outputs>
|
7
|
68 <data format="tabular" name="ofile_nnlist" label="${tool.name} on ${on_string}"/>
|
|
69 <data format="tabular" name="ofile_nnf" label="${tool.name} on ${on_string} (Nearest neighbor feature representation)">
|
|
70 <filter>'nnf' in additional_outputs</filter>
|
|
71 </data>
|
|
72 <data format="tabular" name="ofile_nnt" label="${tool.name} on ${on_string} (Nearest neighbor target value list)">
|
|
73 <filter>'nnt' in additional_outputs</filter>
|
|
74 </data>
|
|
75 <data format="tabular" name="ofile_nnk" label="${tool.name} on ${on_string} (Nearest neighbor kernel value list)">
|
|
76 <filter>'nnk' in additional_outputs</filter>
|
|
77 </data>
|
0
|
78 </outputs>
|
|
79 <tests>
|
|
80 <test>
|
|
81 <param name="infile" value="3_molceuls.sdf" />
|
|
82 <output name="outfile" file="3_molecules.gspan" />
|
|
83 </test>
|
|
84 </tests>
|
|
85 <help>
|
|
86
|
|
87 .. class:: infomark
|
|
88
|
|
89 **What it does**
|
|
90
|
|
91 Nearest neighbors are efficiently identified with a locality sensitive hashing technique.
|
|
92
|
7
|
93 @references@
|
0
|
94
|
|
95 </help>
|
|
96 </tool>
|