view splitFasta.xml @ 4:ae4d5733272f draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
author rnateam
date Fri, 16 Oct 2015 16:13:34 -0400
parents
children 733ca84b21ee
line wrap: on
line source

<tool id="rbc_splitfasta" name="Split Fasta" version="0.2.0">
    <description>files into a collection</description>
    <requirements>
        <requirement type="package" version="1.65">biopython</requirement>
    </requirements>
    <stdio>
        <exit_code range="1:" />
    </stdio>
    <command interpreter="python">
    <![CDATA[
        splitFasta.py $inputFile
    ]]></command>
    <inputs>
        <param name="inputFile" type="data" format="fasta" label="Fasta file to split"/>
    </inputs>
    <outputs>
        <collection name="splitted_fasta" type="list" label="Sequence collection in FASTA format">
            <discover_datasets pattern="(?P&lt;designation&gt;.*)" directory="splits" ext="fasta" visible="false"/>
        </collection>
    </outputs>
    <tests>
        <test>
            <param name="inputFile" value="test.fasta" />
            <output_collection name="splitted_fasta">
                <element name="ID1.fasta" file="ID1_result1.fasta" ftype="fasta" />
                <element name="ID2.fasta" file="ID2_result1.fasta" ftype="fasta" />
                <element name="ID3.fasta" file="ID3_result1.fasta" ftype="fasta" />
            </output_collection>
        </test>
    </tests>
    <help><![CDATA[
        Takes an input file and writes each consecutive two lines to a separate file, in a dataset collection.
    ]]></help>
    <citations>
        <citation type="bibtex">
            @ARTICLE{bgruening_galaxytools,
                Author = {Björn Grüning, Cameron Smith, Torsten Houwaart, Nicola Soranzo, Eric Rasche},
                keywords = {bioinformatics, ngs, galaxy, cheminformatics, rna},
                title = {{Galaxy Tools - A collection of bioinformatics and cheminformatics tools for the Galaxy environment}},
                url = {https://github.com/bgruening/galaxytools}
            }
        </citation>
    </citations>
</tool>