0
|
1 <tool id="ctb_remSmall" name="Remove small molecules" version="1.0">
|
|
2 <description></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 obabel
|
|
9 -i"${infile.ext}"
|
|
10 "${infile}"
|
|
11 -ocopy
|
|
12 -O "${outfile}"
|
|
13 --filter "atoms > $cutoff"
|
|
14 -e
|
|
15 2>&1
|
|
16 </command>
|
|
17 <inputs>
|
|
18 <param name="infile" format="sdf,mol,mol2,cml,inchi,smi" type="data" label="Molecular input file" />
|
|
19 <param name="cutoff" size="3" type="integer" value="5" label="Specify the cut-off value (only molecules with more than this number of atoms will pass the filter)" />
|
|
20 </inputs>
|
|
21 <outputs>
|
|
22 <data format_source="infile" name="outfile" />
|
|
23 </outputs>
|
|
24 <tests>
|
|
25 <test>
|
|
26 <param name="infile" ftype="smi" value="3_mol.smi" />
|
|
27 <param name="cutoff" value="5" />
|
|
28 <output name="outfile" ftype="smi" file="obremsmall_on_3_mol.smi" />
|
|
29 </test>
|
|
30 </tests>
|
|
31 <help>
|
|
32
|
|
33 .. class:: infomark
|
|
34
|
|
35 **What does this tool do?**
|
|
36
|
|
37 This tool filters a library of compounds and removes small molecules.
|
|
38
|
|
39 -----
|
|
40
|
|
41 .. class:: warningmark
|
|
42
|
|
43 **Tip:** some libraries may contain molecules without 1D/3D descriptor. These molecules may provoke the crashing of any other tool. As a general rule, the user is strongly adviced to run this tool before proceeding to any further step.
|
|
44
|
|
45 -----
|
|
46
|
|
47 .. class:: infomark
|
|
48
|
|
49 **Output format:** is the same as the input file format.
|
|
50
|
|
51 -----
|
|
52
|
|
53 **This tool uses OpenBabel:** The Open Babel Package, version 2.3.0 http://openbabel.sourceforge.net/
|
|
54
|
|
55 </help>
|
|
56 </tool>
|