view splitfasta.xml @ 2:a9803f1fff75 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/hacked/splitFasta commit 7e4c12467b74b77f04ca3817518cc4066aa507fe
author rnateam
date Sun, 05 Jul 2015 10:04:33 -0400
parents 279e2625de3a
children 7439ffbd8943
line wrap: on
line source

<tool id="rbc_splitfasta" name="SplitFasta" version="0.1.0">
    <requirements>
    </requirements>
    <stdio>
        <exit_code range="1:" />
    </stdio>

    <command interpreter="python">
    <![CDATA[
        splitFasta.py $inputFile; echo 'blah' > blah
    ]]></command>
    <inputs>
        <param name="inputFile" type="data" format="txt" label="Fasta file to split"/>
        <param name="outputFormat" type="select" label="Output Format">
            <option value="separate">Separate History Items</option>
            <option value="collection">Create dataset collection</option>
        </param>
    </inputs>
    <outputs>
        <collection type="list">
            <filter>outputFormat == 'collection'</filter>
            <discover_datasets pattern="(?P&lt;designation&gt;.*)" directory="splits" ext="fasta" visible="false"/>
        </collection>
        <data name="output">
            <filter>outputFormat == 'separate'</filter>
            <discover_datasets pattern="(?P&lt;designation&gt;.*)" directory="splits" ext="fasta" visible="true"/>
        </data>
    </outputs>
    <help><![CDATA[
        Takes an input file and writes each consecutive two lines to a separate file, in a dataset collection.
    ]]></help>
</tool>