0
|
1 <tool id="ctb_subsearch" name="Substructure Search" version="0.1">
|
|
2 <description>of fingerprint data sets</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="2.3.2">openbabel</requirement>
|
|
5 </requirements>
|
|
6 <command interpreter="python">
|
2
|
7 <![CDATA[
|
0
|
8
|
|
9 subsearch.py
|
|
10 -i $query
|
|
11 --iformat "${query.ext}"
|
2
|
12 --fastsearch-index "${os.path.join($fastsearch.files_path,'molecule.fs')}"
|
0
|
13 -o "${outfile}"
|
|
14 --oformat $oformat
|
|
15 --max-candidates $max_candidates
|
2
|
16 --processors "\${GALAXY_SLOTS:-12}"
|
0
|
17
|
2
|
18 ]]>
|
0
|
19 </command>
|
|
20 <inputs>
|
|
21 <param name="query" type='data' format="tabular,smi,sdf,inchi,text" label="query"/>
|
|
22 <param name="fastsearch" type='data' format="obfs" label="OpenBabel Fastsearch Index"/>
|
|
23 <param name="max_candidates" size="6" type="integer" value="4000" label="The maximum number of candidates"/>
|
|
24 <param name='oformat' type='select' format='text' label="Output format.">
|
|
25 <option value='smi'>SMILES</option>
|
|
26 <option value='inchi'>InChI</option>
|
|
27 <option value='sdf'>SD-Files</option>
|
|
28 <option value='mol2'>mol2</option>
|
|
29 <option value='names'>Return the molecule names only</option>
|
|
30 </param>
|
|
31 </inputs>
|
|
32 <outputs>
|
|
33 <data format="smi" name="outfile">
|
|
34 <change_format>
|
|
35 <when input="oformat" value="inchi" format="inchi"/>
|
|
36 <when input="oformat" value="sdf" format="sdf"/>
|
|
37 <when input="oformat" value="mol2" format="mol2"/>
|
|
38 <when input="oformat" value="names" format="tabular"/>
|
|
39 </change_format>
|
|
40 </data>
|
|
41 </outputs>
|
|
42 <tests>
|
|
43 <test>
|
|
44 </test>
|
|
45 </tests>
|
|
46 <help>
|
2
|
47 <![CDATA[
|
0
|
48
|
|
49 .. class:: infomark
|
|
50
|
|
51 **What this tool does**
|
|
52
|
|
53 Substructure search in based on Open Babel FastSearch_ Index. It uses molecular fingerprints to prepare and search an index of a multi-molecule datafile.
|
|
54
|
|
55 .. _FastSearch: http://openbabel.org/wiki/FastSearch
|
|
56
|
|
57 -----
|
|
58
|
|
59 .. class:: infomark
|
|
60
|
|
61 **Input**
|
|
62
|
|
63 SMILES or SMARTS patterns are possible. SD- and InChI files are converted to SMILES.
|
|
64
|
|
65 -----
|
|
66
|
|
67 .. class:: infomark
|
|
68
|
|
69 **Cite**
|
|
70
|
|
71 `Open Babel`_
|
|
72
|
|
73 .. _Open Babel: http://openbabel.org/wiki/Main_Page
|
|
74
|
2
|
75 ]]>
|
0
|
76 </help>
|
|
77 </tool>
|