Mercurial > repos > bgruening > openbabel
comparison modify/ob_addh.xml @ 0:527ecd2fc500 draft
Uploaded
author | bgruening |
---|---|
date | Thu, 15 Aug 2013 03:25:06 -0400 |
parents | |
children | 125da3a296ca |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:527ecd2fc500 |
---|---|
1 <tool id="ctb_ob_addh" name="Add hydrogen atoms" version="1.0"> | |
2 <description>at a certain pH value</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 interpreter="python"> | |
8 ob_addh.py | |
9 -i "${infile}" | |
10 --iformat "${infile.ext}" | |
11 -o "${outfile}" | |
12 $polar | |
13 --pH "${pH_value}" | |
14 </command> | |
15 <inputs> | |
16 <param name="infile" type="data" format="sdf,smi,mol,mol2,cml,inchi" label="Select input file"/> | |
17 <param name="polar" type="boolean" truevalue="--polar" falsevalue="" label="Add hydrogens to polar atoms only"/> | |
18 <param name="pH_value" type="float" size="4" value="7.4" label="Specify pH value"/> | |
19 </inputs> | |
20 <outputs> | |
21 <data format_source="infile" name="outfile" /> | |
22 </outputs> | |
23 <tests> | |
24 <test> | |
25 <param name="infile" value="CID_2244.can" ftype="smi" /> | |
26 <param name="polar" value="--polar" /> | |
27 <param name="pH_value" value="7.4" /> | |
28 <output name="outfile" file="CID_2244_addh.can" ftype="can" /> | |
29 </test> | |
30 </tests> | |
31 <help> | |
32 | |
33 .. class:: infomark | |
34 | |
35 **What this tool does** | |
36 | |
37 Parses a molecular file and adds hydrogen atoms at a user-defined pH value. | |
38 | |
39 * Protocol:: | |
40 | |
41 1. The hydrogen atoms included in the input molecule are deleted. | |
42 2. Protonation state is predicted at the target pH and the corresponding hydrogen atoms added accordingly. | |
43 | |
44 ----- | |
45 | |
46 .. class:: infomark | |
47 | |
48 **Input** | |
49 | |
50 3D format files are required, e.g. SDF_ | |
51 | |
52 .. _SDF: http://en.wikipedia.org/wiki/Chemical_table_file | |
53 | |
54 ----- | |
55 | |
56 .. class:: warningmark | |
57 | |
58 **Hint** | |
59 | |
60 To avoid possible crashes, only molecules with more than five heavy atoms are parsed. | |
61 | |
62 ----- | |
63 | |
64 .. class:: infomark | |
65 | |
66 **Output** | |
67 | |
68 Same output format as the input format. | |
69 | |
70 ----- | |
71 | |
72 .. class:: infomark | |
73 | |
74 **Cite** | |
75 | |
76 `Open Babel`_ | |
77 | |
78 .. _Open Babel: http://openbabel.org/wiki/Main_Page | |
79 | |
80 N M O'Boyle, C Morley and G R Hutchison - `Pybel: a Python wrapper for the OpenBabel cheminformatics toolkit`_ | |
81 | |
82 .. _`Pybel: a Python wrapper for the OpenBabel cheminformatics toolkit`: http://www.biomedcentral.com/content/pdf/1752-153X-2-5.pdf | |
83 | |
84 </help> | |
85 </tool> |