view osra.xml @ 0:efd9c309b8f7

Uploaded
author bgruening
date Tue, 26 Mar 2013 14:50:53 -0400
parents
children abe9670bfc44
line wrap: on
line source

<tool id="osra" name="Molecule recognition" version="0.2">
    <description>in Images or PDF documents</description>
    <requirements>
        <requirement type="package" version="1.4.0">osra</requirement>
    </requirements>
    <command>
        osra -f $oformat $infile > $outfile
    </command>
    <inputs>
        <param name="infile" type="data" format="png,pdf" label="Image or PDF with molecules"/>
        <param name="oformat" type="select" label="Output molecule format">
            <option value="can">SMILES</option>
            <option value="sdf">SDF</option>
        </param>
    </inputs>
    <outputs>
        <data name="outfile" type="data" format="sdf">
            <change_format>
                <when input="oformat" value="can" format="smi"/>
            </change_format>
        </data>
    </outputs>
    <tests>
        <test>
            <param name="infile" ftype="png" value="CID_2244.png"/>
            <param name="oformat" value="sdf"/>
            <output name="outfile" ftype="sdf" file="osra_on_CID2244.sdf"/>
        </test>
    </tests>
    <help>

**What it does**

OSRA detects molecules in images and converts them to standard molecule formats. 


    </help>
</tool>