view subsearch.xml @ 7:ab2b9d87b067 draft

planemo upload for repository commit ed9b6859de648aa5f7cde483732f5df20aaff90e
author bgruening
date Tue, 07 May 2019 13:34:19 -0400
parents 98e12cc1f3a8
children 171c94786a56
line wrap: on
line source

<tool id="openbabel_subsearch" name="Substructure Search" version="@VERSION@.0">
    <description>of fingerprint data sets</description>
    <expand macro="requirements"/>
    <command detect_errors="aggressive">

    python '$__tool_directory__/'
        -i '${query}'
        --iformat '${query.ext}'
        --fastsearch-index '${os.path.join($fastsearch.extra_files_path, 'molecule.fs')}'
        -o '${outfile}'
        --oformat $oformat
        --max-candidates $max_candidates
        --processors "\${GALAXY_SLOTS:-12}"

        <param name="query" type='data' format="tabular,smi,sdf,inchi,txt" label="Query"/>
        <param name="fastsearch" type='data' format="obfs" label="OpenBabel Fastsearch Index" help="The OpenBabel fastsearch index can be created with the compound conversion tool."/>
        <param name="max_candidates" type="integer" value="4000" label="Maximum number of candidates"/>
        <param name='oformat' type='select' format='text' label="Output format">
            <option value='smi'>SMILES</option>
            <option value='inchi'>InChI</option>
            <option value='sdf'>SD-Files</option>
            <option value='mol2'>mol2</option>
            <option value='names'>Return the molecule names only</option>
       <data format="smi" name="outfile">
           <when input="oformat" value="inchi" format="inchi"/>
           <when input="oformat" value="sdf" format="sdf"/>
           <when input="oformat" value="mol2" format="mol2"/>
           <when input="oformat" value="names" format="tabular"/>
            <param name="query" ftype="sdf" value="CID_2244.sdf"/>
            <param name="fastsearch" value="ob_convert_on_CID2244_obfs.txt" ftype="obfs" >
                <composite_data value='molecule.sdf' />
                <composite_data value='molecule.fs'/>
            <param name="oformat" value="names" />
            <output name="outfile" ftype="tabular" file="ob_subsearch_with_CID2244.tabular" />

.. class:: infomark

**What this tool does**

Substructure search in based on Open Babel FastSearch_ Index. It uses molecular fingerprints to prepare and search an index of a multi-molecule datafile.

.. _FastSearch:


.. class:: infomark


SMILES or SMARTS patterns are possible. SD- and InChI files are converted to SMILES.

    <expand macro="citations"/>