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