view utils_estimate-energy.xml @ 6:4d16cf9414cf draft default tip

planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/segmentation_fold commit 3a3c1d069e0a079d8ea7c0b4ac856ef24141b1aa
author erasmus-medical-center
date Fri, 24 Feb 2017 04:18:22 -0500
parents b7cf9b172cfe
children
line wrap: on
line source

<tool id="smf_utils_estimate-energy" name="estimate-energy" version="@VERSION@-2">
    <description>Estimates whether a certain Segment(Loop) is present and for which delta-G this transistion takes place</description>
    
    <macros>
        <import>macros.xml</import>
    </macros>
    
    <expand macro="requirements" />
    <expand macro="version_command" />
    
    <command detect_errors="aggressive"><![CDATA[
        segmentation-fold-utils
            estimate-energy
                -T \${GALAXY_SLOTS:-2}
                -x
                #if str($parameters.use_custom_xml) == "true"
                    "${parameters.input_xml}"
                #else
                    "\$(segmentation-fold -X)"
                #end if
                
                -p $precision
                -r $randomize
                
                #if $sequences_from_fasta_file:
                    --sequences-from-fasta-file "${sequences_from_fasta_file}"
                #end if
                
                $output_list
    ]]></command>

    <inputs>
        <conditional name="parameters">
            <param name="use_custom_xml"
                type="boolean"
                truevalue="true"
                falsevalue="false"
                checked="false"
                label="Use segment definition from history" />

            <when value="false" />
            <when value="true">
                <param name="input_xml"
                    type="data"
                    format="xml"
                    multiple="false"
                    argument="-x"
                    label="Custom 'segments.xml'-syntaxed file" />
            </when>
        </conditional>
        
        <param name="precision"
               type="float"
               value="0.05"
               min="0"
               argument="--precision"
               label="Precision"
               help="Minimal difference for binary split - the smaller this value the slower. if this value equals 0, the difference is set to infinity (default: 0.05)" />

        <param name="randomize"
               type="integer"
               value="0"
               min="0"
               argument="--randomize"
               label="Shuffle each sequence this many times and predict energy of shuffled sequence(s) (default: 0, 0 means disabled)" />
        
        <param name="sequences_from_fasta_file"
               type="data"
               format="fasta"
               multiple="false"
               optional="true"
               argument="--sequences-from-fasta-file"
               label="Optional sequences to scan for Segment(Loop)s (FASTA)"
               help="Use sequences from a FASTA file instead of the XML file that contains the segments. In XML files you can explicitly link one Segment(Loop) to one particular sequence instead of doing n*n comparisons (default: None)" />
    </inputs>

    <outputs>
        <data format="dbn" name="output_list" label="${tool.name}" />
    </outputs>

    <tests>
        <!-- xml * fasta mode -->
        <test>
            <param name="use_custom_xml" value="false" ftype="fasta" />
            <param name="sequences_from_fasta_file" value="SNORD13-revised.fa" ftype="fasta" />
            
            <output name="output_list" file="SNORD13-revised.scan-for-segments.txt" />
        </test>
        <test>
            <param name="use_custom_xml" value="false" ftype="fasta" />
            <param name="sequences_from_fasta_file" value="SNORD48-revised.fa" ftype="fasta" />
            
            <output name="output_list" file="SNORD48-revised.scan-for-segments.txt" />
        </test>
        <test>
            <param name="use_custom_xml" value="false" ftype="fasta" />
            <param name="sequences_from_fasta_file" value="SNORD114-4-revised.fa" ftype="fasta" />
            
            <output name="output_list" file="SNORD114-4-revised.scan-for-segments.txt" />
        </test>
        <test>
            <param name="use_custom_xml" value="false" ftype="fasta" />
            <param name="sequences_from_fasta_file" value="SNORD118-revised.fa" ftype="fasta" />
            
            <output name="output_list" file="SNORD118-revised.scan-for-segments.txt" />
        </test>
        
        
        <!-- xml * xml mode -->
        <test>
            <param  name="use_custom_xml" value="true" />
            <param  name="input_xml" value="segments_truncated.xml" ftype="xml" />
            <param  name="do_randomization" value="false" />
            <param  name="shuffle_n_times" value="0" />
            
            <output name="output_list" file="segments_truncated.out.txt" lines_diff="2" />
        </test>
        <test>
            <param  name="use_custom_xml" value="true" />
            <param  name="input_xml" value="segments_truncated.xml" ftype="xml" />
            <param  name="do_randomization" value="false" />
            <param  name="shuffle_n_times" value="1" />
            
            <output name="output_list" file="segments_truncated.2.out.txt" lines_diff="10" />
        </test>
    </tests>
    
    <help><![CDATA[
This is an utility of the segmentation-fold package that allows to scan for the presence of certain segments.
If present, it will also scan for the Gibbs free energy necessairy the segment has to provide to contribute to the optimal structure.
    ]]></help>
    
    <expand macro="citations" />
</tool>