annotate filter/ob_grep.xml @ 2:125da3a296ca draft default tip

Uploaded
author bgruening
date Wed, 15 Jul 2015 12:13:08 -0400
parents 527ecd2fc500
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
1 <tool id="ctb_obgrep" name="Compound Search" version="0.1">
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
2 <description>an advanced molecular grep program using SMARTS</description>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
3 <parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
4 <requirements>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
5 <requirement type="package" version="2.3.2">openbabel</requirement>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
6 </requirements>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
7 <command>
2
125da3a296ca Uploaded
bgruening
parents: 0
diff changeset
8 <![CDATA[
0
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
9 ## The command is a Cheetah template which allows some Python based syntax.
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
10 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
11 obgrep
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
12
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
13 $invert_matches
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
14 #if $n_times != 0:
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
15 -t $n_times
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
16 #end if
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
17
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
18 $only_name
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
19 $full_match
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
20 $number_of_matches
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
21 -i ${infile.ext}
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
22 "${smarts_pattern}"
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
23 "${infile}"
2
125da3a296ca Uploaded
bgruening
parents: 0
diff changeset
24 > "${outfile}" 2>&1
125da3a296ca Uploaded
bgruening
parents: 0
diff changeset
25 ]]>
0
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
26 </command>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
27 <inputs>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
28 <param name="infile" type="data" format="sdf,mol,mol2,cml,inchi,smi" label="Compound File" help="Specify a compound file in SDF Format."/>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
29 <param name="smarts_pattern" type="text" format="text" label="SMARTS Pattern" help="Specify a SMARTS Pattern for your search."/>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
30 <param name="invert_matches" type="boolean" label="Invert the matching, print non-matching molecules" truevalue="-v" falsevalue="" checked="false" />
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
31 <param name="n_times" type="integer" value="0" label="Print a molecule only if the pattern occurs # times inside the molecule" />
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
32 <param name="only_name" type="boolean" label="Only print the name of the molecules" truevalue="-n" falsevalue="" checked="false" />
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
33 <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" truevalue="-f" falsevalue="" checked="false" />
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
34 <param name="number_of_matches" type="boolean" label="Print the number of matches" truevalue="-c" falsevalue="" checked="false" />
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
35 </inputs>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
36 <options sanitize="False"/>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
37 <outputs>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
38 <data name="outfile" format_source="infile" label="${tool.name} on ${on_string}"/>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
39 </outputs>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
40 <tests>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
41 <test>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
42 <param name="infile" ftype="smi" value="8_mol.smi"/>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
43 <param name="smarts_pattern" value="CO"/>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
44 <param name="invert_matches" value="" />
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
45 <param name="n_times" value="0"/>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
46 <param name="only_name" value="" />
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
47 <param name="full_match" value="" />
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
48 <param name="number_of_matches" value="" />
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
49 <output name="outfile" ftype="smi" file="obgrep_on_8_mol.smi"/>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
50 </test>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
51 </tests>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
52 <help>
2
125da3a296ca Uploaded
bgruening
parents: 0
diff changeset
53 <![CDATA[
0
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
54
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
55 .. class:: infomark
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
56
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
57 **What this tool does**
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
58
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
59 Uses the Open Babel Obgrep_ to search for molecules inside multi-molecule files (e.g. SMI, SDF, etc.) or across multiple files.
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
60 It is known that not all SMARTS features from the Daylight Toolkit are supported, please have a look here_.
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
61
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
62
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
63 .. _Obgrep: http://openbabel.org/wiki/Obgrep
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
64 .. _here: http://openbabel.org/wiki/SMARTS
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
65
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
66 -----
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
67
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
68 .. class:: infomark
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
69
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
70 **Input**
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
71
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
72 | - `SD-Format`_
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
73 | - `SMILES Format`_
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
74
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
75 .. _SD-Format: http://en.wikipedia.org/wiki/Chemical_table_file
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
76 .. _SMILES Format: http://en.wikipedia.org/wiki/Simplified_molecular_input_line_entry_specification
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
77
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
78 -----
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
79
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
80 .. class:: infomark
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
81
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
82 **Output**
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
83
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
84 Same as input format.
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
85
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
86 -----
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
87
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
88 .. class:: infomark
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
89
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
90 **Cite**
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
91
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
92 N M O'Boyle, M Banck, C A James, C Morley, T Vandermeersch, and G R Hutchison - `Open Babel: An open chemical toolbox.`_
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
93
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
94 .. _`Open Babel: An open chemical toolbox.`: http://www.jcheminf.com/content/3/1/33
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
95
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
96 `Open Babel`_
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
97
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
98 .. _`Open Babel`: http://openbabel.org/wiki/Main_Page
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
99
2
125da3a296ca Uploaded
bgruening
parents: 0
diff changeset
100 ]]>
0
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
101 </help>
527ecd2fc500 Uploaded
bgruening
parents:
diff changeset
102 </tool>