view cmpress.xml @ 7:477d829d3250 draft default tip

planemo upload for repository commit 1527e05bcd748a2b3cef22e0e356697066a55635
author bgruening
date Sat, 11 Nov 2017 16:01:09 -0500
parents 6e18e0b098cd
line wrap: on
line source

<tool id="infernal_cmpress" name="cmpress" version="@VERSION@.0">
    <description> Prepare a covariance model database for cmscan</description>
    <expand macro="requirements" />
    <expand macro="stdio" />
    ## CM file from the history or stored as database on disc
    #if str($cm_opts.cm_opts_selector) == "db":
    #end if
    cmpress -F "\$cmfile_path" &&
    ##cmpress creates four files in the same directory of the cm file
    cd `dirname "\$cmfile_path"` &&
    tar -cvf '$outfile' `basename "\$cmfile_path"`.i1*
        <conditional name="cm_opts">
            <param name="cm_opts_selector" type="select" label="Subject covariance models &lt;cmdb&gt; ">
                <option value="db" >Locally installed covariance models</option>
                <option value="histdb" selected="True">Covariance model from your history</option>
            <when value="db">
                <param name="database" type="select" label="Covariance models">
                    <options from_file="infernal.loc">
                        <column name="value" index="0"/>
                        <column name="name" index="1"/>
                        <column name="path" index="2"/>
            <when value="histdb">
                <param name="cmfile" type="data" format="cm" label="Covariance models file from the history."/>

        <data format="tar" name="outfile" label="cmpress on ${on_string}"/>

            <conditional name="cm_opts">
                <param name="cm_opts_selector" value="histdb"/>
                <param name="cmfile" value=""/>
                    <has_text text="Working...    done."/>



**What it does**

Starting from a CM database <cmfile> in standard Infernal-1.1 format, construct binary compressed datafiles for cm-
scan. The cmpress step is required for cmscan to work.

**Input format**

The <cmfile> must be have already been calibrated with cmcalibrate for cmpress to work.

**Output format**

For further questions please refere to the Infernal `Userguide <>`_.


    <expand macro="citations" />