4
|
1 <tool id="osra" name="Molecule recognition" version="0.3">
|
3
|
2 <description>in Images or PDF documents (OSRA)</description>
|
|
3 <requirements>
|
4
|
4 <requirement type="package" version="2.0.0">osra</requirement>
|
3
|
5 </requirements>
|
8
|
6 <command interpreter="python">
|
3
|
7 ## OSRA_DATA_FILES is set during the toolshed Installation
|
|
8 ## if it is not set, use the standard configuration and hope the best
|
|
9 osra.py -f $oformat $infile
|
|
10 -l \$OSRA_DATA_FILES/spelling.txt -a \$OSRA_DATA_FILES/superatom.txt
|
|
11
|
|
12 ## further additions of OSRA parameter should go after -l and -a
|
|
13 ## because -l and -a can be removed by the python wrapper
|
|
14
|
8
|
15 > $outfile
|
3
|
16 </command>
|
|
17 <inputs>
|
8
|
18 <param format="png,pdf" label="Image or PDF with molecules" name="infile" type="data" />
|
|
19 <param label="Output molecule format" name="oformat" type="select">
|
3
|
20 <option value="can">SMILES</option>
|
|
21 <option value="sdf">SDF</option>
|
|
22 </param>
|
|
23 </inputs>
|
|
24 <outputs>
|
8
|
25 <data format="sdf" name="outfile" type="data">
|
3
|
26 <change_format>
|
8
|
27 <when format="smi" input="oformat" value="can" />
|
3
|
28 </change_format>
|
|
29 </data>
|
|
30 </outputs>
|
|
31 <tests>
|
|
32 <test>
|
8
|
33 <param ftype="png" name="infile" value="CID_2244.png" />
|
|
34 <param name="oformat" value="sdf" />
|
|
35 <output file="osra_on_CID2244.sdf" ftype="sdf" name="outfile" />
|
3
|
36 </test>
|
|
37 </tests>
|
|
38 <help>
|
|
39
|
|
40 **What it does**
|
|
41
|
|
42 OSRA detects molecules in images and converts them to standard molecule formats.
|
|
43
|
|
44
|
|
45 </help>
|
|
46 </tool>
|