view scan-for-segments.xml @ 7:bff6e82064da draft

planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/segmentation_fold_galaxy_wrapper commit 4a09ba36d8feeea3b61ab5b2b113aac7f34d389f-dirty
author yhoogstrate
date Thu, 10 Mar 2016 03:22:58 -0500
parents a61db7f9d80b
children 8dcf7ca46c72
line wrap: on
line source

<tool id="scan_for_segments" name="scan-for-segments" version="1.6.2-1">
    <description>Scan for the presence of segments in sequences using segmentation-fold</description>
    
    <requirements>
        <requirement type="package" version="1.6.2">segmentation-fold</requirement>
        <requirement type="package" version="2.7.10">python</requirement>
    </requirements>
    
    <stdio></stdio>
    
    <version_command>segmentation-fold --version | head -n 2 | tail -n 1 | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'</version_command>
    
    <command><![CDATA[
        scan-for-segments
            -T \${GALAXY_SLOTS:-4}
            -x
            #if str($parameters.use_custom_xml) == "true"
                "${parameters.input_xml}"
            #else
                "\$SEGMENTATION_FOLD_DEFAULT_XML"
            #end if
            -p "in-depth"
            "${input_fasta}"
            
            >   $output_list
    ]]></command>

    <inputs>
        <param name="input_fasta"
               type="data"
               format="fasta"
               argument="-f"
               label="Fasta file with RNA-sequece" />

        <conditional name="parameters">
            <param name="use_custom_xml"
                type="boolean"
                truevalue="true"
                falsevalue="false"
                selected="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>
    </inputs>

    <outputs>
        <data format="text" name="output_list" label="${tool.name} on ${str($input_fasta.hid) + ': ' + $input_fasta.name}" />
    </outputs>

    <tests>
        <test>
            <param name="input_fasta" value="SNORD13-revised.fa" ftype="fasta" />
            <param name="use_custom_xml" value="false" ftype="fasta" />
            
            <output name="output_list" file="SNORD13-revised.scan-for-segments.txt" />
        </test>
        <test>
            <param name="input_fasta" value="SNORD48-revised.fa" ftype="fasta" />
            <param name="use_custom_xml" value="false" ftype="fasta" />
            
            <output name="output_list" file="SNORD48-revised.scan-for-segments.txt" />
        </test>
        <test>
            <param name="input_fasta" value="SNORD114-4-revised.fa" ftype="fasta" />
            <param name="use_custom_xml" value="false" ftype="fasta" />
            
            <output name="output_list" file="SNORD114-4-revised.scan-for-segments.txt" />
        </test>
        <test>
            <param name="input_fasta" value="SNORD118-revised.fa" ftype="fasta" />
            <param name="use_custom_xml" value="false" ftype="fasta" />
            
            <output name="output_list" file="SNORD118-revised.scan-for-segments.txt" />
        </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>
    
    <citations>
        <citation type="bibtex">
           @mastersthesis{mastersthesis,
              author       = {Youri Hoogstrate}, 
              title        = {An algorithm for predicting RNA 2D structures including K-turns},
              school       = {University of Technology Delft, Leiden University},
              year         = 2012,
              address      = {},
              month        = 11,
              note         = {Research assignment for Master Computer-science},
              url          = { https://yh-kt-fold.googlecode.com/files/Report.pdf }
            }
        </citation>
    </citations>
</tool>