0
|
1 <tool id="ctb_remDuplicates" name="Remove duplicated 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 --unique "${descriptor}"
|
|
13 -O "${outfile}"
|
|
14 -e
|
|
15 2>&1
|
|
16 </command>
|
|
17 <inputs>
|
|
18 <param name="infile" type="data" format="sdf,mol,mol2,cml,inchi,smi" label="Molecular input file"/>
|
|
19 <param name="descriptor" type="select" label="Select descriptor for molecule comparison">
|
|
20 <option value="inchi" checked="True">InChI (default)</option>
|
|
21 <option value="cansmi">Canonical SMILES</option>
|
|
22 <option value="cansmiNS">Canonical SMILES (without stereo)</option>
|
|
23 </param>
|
|
24 </inputs>
|
|
25 <outputs>
|
|
26 <data format_source="infile" name="outfile"/>
|
|
27 </outputs>
|
|
28 <tests>
|
|
29 <test>
|
|
30 <param name="infile" ftype="smi" value="2_mol.smi"/>
|
|
31 <param name="descriptor" value="inchi" />
|
|
32 <output name="outfile" ftype="smi" file="ob_remDuplicates_on_2_mol.smi" />
|
|
33 </test>
|
|
34 </tests>
|
|
35 <help>
|
|
36
|
|
37 .. class:: infomark
|
|
38
|
|
39 **What does this tool do?**
|
|
40
|
|
41 This tool filters a library of compounds and removes duplicated molecules.
|
|
42
|
|
43 -----
|
|
44
|
|
45 .. class:: warningmark
|
|
46
|
|
47 **Tip:** comparison based on Canonical SMILES without stereochemistry may be useful in cases where this information is not crucial for library preparation. Several VS tools will automatically generate stereoisomeric forms.
|
|
48
|
|
49 -----
|
|
50
|
|
51 .. class:: infomark
|
|
52
|
|
53 **Output format:** is the same as the input file format.
|
|
54
|
|
55 -----
|
|
56
|
|
57 **This tool uses OpenBabel:** The Open Babel Package, version 2.3.0 http://openbabel.sourceforge.net/
|
|
58
|
|
59 </help>
|
|
60 </tool>
|