Mercurial > repos > bgruening > openbabel
comparison filter/ob_grep.xml @ 0:6493d130f018
Uploaded
author | bgruening |
---|---|
date | Tue, 26 Mar 2013 14:49:44 -0400 |
parents | |
children | 77b82f259298 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6493d130f018 |
---|---|
1 <tool id="ctb_obgrep" name="Compound Search" version="0.1"> | |
2 <description>an advanced molecular grep program using SMARTS</description> | |
3 <parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="10000" shared_inputs="" merge_outputs="outfile"></parallelism> | |
4 <requirements> | |
5 <requirement type="package" version="2.3.2">openbabel</requirement> | |
6 </requirements> | |
7 <command> | |
8 ## The command is a Cheetah template which allows some Python based syntax. | |
9 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces | |
10 obgrep | |
11 | |
12 $invert_matches | |
13 #if $n_times != 0: | |
14 -t $n_times | |
15 #end if | |
16 | |
17 $only_name | |
18 $full_match | |
19 $number_of_matches | |
20 -i ${infile.ext} | |
21 "${smarts_pattern}" | |
22 "${infile}" | |
23 > "${outfile}" 2>&1 | |
24 </command> | |
25 <inputs> | |
26 <param name="infile" type="data" format="sdf,mol,mol2,cml,inchi,smi" label="Compound File" help="Specify a compound file in SDF Format."/> | |
27 <param name="smarts_pattern" type="text" format="text" label="SMARTS Pattern" help="Specify a SMARTS Pattern for your search."/> | |
28 <param name="invert_matches" type="boolean" label="Invert the matching, print non-matching molecules" truevalue="-v" falsevalue="" checked="false" /> | |
29 <param name="n_times" type="integer" value="0" label="Print a molecule only if the pattern occurs # times inside the molecule" /> | |
30 <param name="only_name" type="boolean" label="Only print the name of the molecules" truevalue="-n" falsevalue="" checked="false" /> | |
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" /> | |
32 <param name="number_of_matches" type="boolean" label="Print the number of matches" truevalue="-c" falsevalue="" checked="false" /> | |
33 </inputs> | |
34 <options sanitize="False"/> | |
35 <outputs> | |
36 <data name="outfile" format_source="infile" /> | |
37 </outputs> | |
38 <tests> | |
39 <test> | |
40 <param name="infile" ftype="smi" value="8_mol.smi"/> | |
41 <param name="smarts_pattern" value="CO"/> | |
42 <param name="invert_matches" value="" /> | |
43 <param name="n_times" value="0"/> | |
44 <param name="only_name" value="" /> | |
45 <param name="full_match" value="" /> | |
46 <param name="number_of_matches" value="" /> | |
47 <output name="outfile" ftype="smi" file="obgrep_on_8_mol.smi"/> | |
48 </test> | |
49 </tests> | |
50 <help> | |
51 .. class:: warningmark | |
52 | |
53 **What it does** | |
54 | |
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. | |
56 | |
57 ----- | |
58 | |
59 **Output format** | |
60 | |
61 | |
62 **References** | |
63 | |
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 | |
65 The Open Babel Package http://openbabel.sourceforge.net/ | |
66 | |
67 </help> | |
68 </tool> |