annotate filter/ob_grep.xml @ 0:6493d130f018

Uploaded
author bgruening
date Tue, 26 Mar 2013 14:49:44 -0400
parents
children 77b82f259298
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6493d130f018 Uploaded
bgruening
parents:
diff changeset
1 <tool id="ctb_obgrep" name="Compound Search" version="0.1">
6493d130f018 Uploaded
bgruening
parents:
diff changeset
2 <description>an advanced molecular grep program using SMARTS</description>
6493d130f018 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>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
4 <requirements>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
5 <requirement type="package" version="2.3.2">openbabel</requirement>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
6 </requirements>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
7 <command>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
8 ## The command is a Cheetah template which allows some Python based syntax.
6493d130f018 Uploaded
bgruening
parents:
diff changeset
9 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces
6493d130f018 Uploaded
bgruening
parents:
diff changeset
10 obgrep
6493d130f018 Uploaded
bgruening
parents:
diff changeset
11
6493d130f018 Uploaded
bgruening
parents:
diff changeset
12 $invert_matches
6493d130f018 Uploaded
bgruening
parents:
diff changeset
13 #if $n_times != 0:
6493d130f018 Uploaded
bgruening
parents:
diff changeset
14 -t $n_times
6493d130f018 Uploaded
bgruening
parents:
diff changeset
15 #end if
6493d130f018 Uploaded
bgruening
parents:
diff changeset
16
6493d130f018 Uploaded
bgruening
parents:
diff changeset
17 $only_name
6493d130f018 Uploaded
bgruening
parents:
diff changeset
18 $full_match
6493d130f018 Uploaded
bgruening
parents:
diff changeset
19 $number_of_matches
6493d130f018 Uploaded
bgruening
parents:
diff changeset
20 -i ${infile.ext}
6493d130f018 Uploaded
bgruening
parents:
diff changeset
21 "${smarts_pattern}"
6493d130f018 Uploaded
bgruening
parents:
diff changeset
22 "${infile}"
6493d130f018 Uploaded
bgruening
parents:
diff changeset
23 > "${outfile}" 2>&#38;1
6493d130f018 Uploaded
bgruening
parents:
diff changeset
24 </command>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
25 <inputs>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
26 <param name="infile" type="data" format="sdf,mol,mol2,cml,inchi,smi" label="Compound File" help="Specify a compound file in SDF Format."/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
27 <param name="smarts_pattern" type="text" format="text" label="SMARTS Pattern" help="Specify a SMARTS Pattern for your search."/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
28 <param name="invert_matches" type="boolean" label="Invert the matching, print non-matching molecules" truevalue="-v" falsevalue="" checked="false" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
29 <param name="n_times" type="integer" value="0" label="Print a molecule only if the pattern occurs # times inside the molecule" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
30 <param name="only_name" type="boolean" label="Only print the name of the molecules" truevalue="-n" falsevalue="" checked="false" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
31 <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" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
32 <param name="number_of_matches" type="boolean" label="Print the number of matches" truevalue="-c" falsevalue="" checked="false" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
33 </inputs>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
34 <options sanitize="False"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
35 <outputs>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
36 <data name="outfile" format_source="infile" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
37 </outputs>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
38 <tests>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
39 <test>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
40 <param name="infile" ftype="smi" value="8_mol.smi"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
41 <param name="smarts_pattern" value="CO"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
42 <param name="invert_matches" value="" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
43 <param name="n_times" value="0"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
44 <param name="only_name" value="" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
45 <param name="full_match" value="" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
46 <param name="number_of_matches" value="" />
6493d130f018 Uploaded
bgruening
parents:
diff changeset
47 <output name="outfile" ftype="smi" file="obgrep_on_8_mol.smi"/>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
48 </test>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
49 </tests>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
50 <help>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
51 .. class:: warningmark
6493d130f018 Uploaded
bgruening
parents:
diff changeset
52
6493d130f018 Uploaded
bgruening
parents:
diff changeset
53 **What it does**
6493d130f018 Uploaded
bgruening
parents:
diff changeset
54
6493d130f018 Uploaded
bgruening
parents:
diff changeset
55 The obgrep tool can be used to search for molecules inside multi-molecule database files (e.g., SMILES, SDF, etc.) or across multiple files.
6493d130f018 Uploaded
bgruening
parents:
diff changeset
56
6493d130f018 Uploaded
bgruening
parents:
diff changeset
57 -----
6493d130f018 Uploaded
bgruening
parents:
diff changeset
58
6493d130f018 Uploaded
bgruening
parents:
diff changeset
59 **Output format**
6493d130f018 Uploaded
bgruening
parents:
diff changeset
60
6493d130f018 Uploaded
bgruening
parents:
diff changeset
61
6493d130f018 Uploaded
bgruening
parents:
diff changeset
62 **References**
6493d130f018 Uploaded
bgruening
parents:
diff changeset
63
6493d130f018 Uploaded
bgruening
parents:
diff changeset
64 Rajarshi Guha, Michael T. Howard, Geoffrey R. Hutchison, Peter Murray-Rust, Henry Rzepa, Christoph Steinbeck, Joerg Kurt Wegner, Egon Willighagen. "The Blue Obelisk -- Interoperability in Chemical Informatics." J. Chem. Inf. Model. (2006) 46(3) 991-998. DOI:10.1021/ci050400b
6493d130f018 Uploaded
bgruening
parents:
diff changeset
65 The Open Babel Package http://openbabel.sourceforge.net/
6493d130f018 Uploaded
bgruening
parents:
diff changeset
66
6493d130f018 Uploaded
bgruening
parents:
diff changeset
67 </help>
6493d130f018 Uploaded
bgruening
parents:
diff changeset
68 </tool>