0
|
1 <tool id="ctb_multi_obgrep" name="Multi Compound Search" version="0.1">
|
|
2 <description>an advanced molecular grep program using SMARTS</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 multi_obgrep.py
|
|
10 -i $infile
|
|
11 --iformat ${infile.ext}
|
|
12 -q $query
|
|
13 -o "${outfile}"
|
|
14 $invert_matches
|
|
15 --n-times $n_times
|
|
16 $only_name
|
|
17 $full_match
|
|
18 $number_of_matches
|
2
|
19 --processors "\${GALAXY_SLOTS:-12}"
|
0
|
20
|
2
|
21 ]]>
|
0
|
22 </command>
|
|
23 <inputs>
|
|
24 <param name="infile" type="data" format="sdf,mol,mol2,cml,inchi,smi" label="Compound File" help="Specify a compound file in SDF Format"/>
|
|
25 <param name="query" type='data' format="tabular,text" label="Query file" help="One SMARTS pattern in each line."/>
|
|
26 <param name="invert_matches" type="boolean" label="Invert the matching, print non-matching molecules (-v)" truevalue="--invert-matches" falsevalue="" checked="false" />
|
|
27 <param name="n_times" type="integer" value="0" label="Print a molecule only if the pattern occurs # times inside the molecule" />
|
|
28 <param name="only_name" type="boolean" label="Only print the name of the molecules (-n)" truevalue="--only-name" falsevalue="" checked="false" />
|
|
29 <param name="full_match" type="boolean" label="Full match, print matching-molecules only when the number of heavy atoms is also equal to the number of atoms in the SMARTS pattern (-f)" truevalue="--full-match" falsevalue="" checked="false" />
|
|
30 <param name="number_of_matches" type="boolean" label="Print the number of matches (-c)" truevalue="--number-of-matches" falsevalue="" checked="false" />
|
|
31 </inputs>
|
|
32 <outputs>
|
|
33 <data name="outfile" format_source="infile" />
|
|
34 </outputs>
|
|
35 <tests>
|
|
36 <test>
|
|
37 </test>
|
|
38 </tests>
|
|
39 <help>
|
2
|
40 <![CDATA[
|
0
|
41
|
|
42 .. class:: infomark
|
|
43
|
|
44 **What this tool does**
|
|
45
|
|
46 Uses the Open Babel Obgrep_ to search for molecules inside multi-molecule files (e.g. SMI, SDF, etc.) or across multiple files.
|
|
47 It is known that not all SMARTS features from the Daylight Toolkit are supported, please have a look here_.
|
|
48
|
|
49 .. _Obgrep: http://openbabel.org/wiki/Obgrep
|
|
50 .. _here: http://openbabel.org/wiki/SMARTS
|
|
51
|
|
52 -----
|
|
53
|
|
54 .. class:: infomark
|
|
55
|
|
56 **Input**
|
|
57
|
|
58 | - `SD-Format`_
|
|
59 | - `SMILES Format`_
|
|
60
|
|
61 .. _SD-Format: http://en.wikipedia.org/wiki/Chemical_table_file
|
|
62 .. _SMILES Format: http://en.wikipedia.org/wiki/Simplified_molecular_input_line_entry_specification
|
|
63
|
|
64 -----
|
|
65
|
|
66 .. class:: infomark
|
|
67
|
|
68 **Output**
|
|
69
|
|
70 Same as input format.
|
|
71
|
|
72 -----
|
|
73
|
|
74 .. class:: infomark
|
|
75
|
|
76 **Cite**
|
|
77
|
|
78 N M O'Boyle, M Banck, C A James, C Morley, T Vandermeersch, and G R Hutchison - `Open Babel: An open chemical toolbox.`_
|
|
79
|
|
80 .. _`Open Babel: An open chemical toolbox.`: http://www.jcheminf.com/content/3/1/33
|
|
81
|
|
82 `Open Babel`_
|
|
83
|
|
84 .. _`Open Babel`: http://openbabel.org/wiki/Main_Page
|
|
85
|
2
|
86 ]]>
|
0
|
87 </help>
|
|
88 </tool>
|