annotate EDeN_nearest_neighbor.xml @ 8:9262f801d739 draft

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