annotate splitFasta.xml @ 5:733ca84b21ee draft default tip

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
author rnateam
date Mon, 21 Sep 2020 15:40:14 +0000
parents ae4d5733272f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
1 <tool id="rbc_splitfasta" name="Split Fasta" version="0.4.0">
4
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
2 <description>files into a collection</description>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
3 <requirements>
5
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
4 <requirement type="package" version="1.76">biopython</requirement>
4
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
5 </requirements>
5
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
6 <command detect_errors="aggressive">
4
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
7 <![CDATA[
5
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
8 #if $splitmode.splitmode_select == "each":
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
9 python $__tool_directory__/split_fasta.py '$inputFile'
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
10 #else if $splitmode.splitmode_select == "chunks":
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
11 python $__tool_directory__/split_fasta.py '$inputFile' $splitmode.num_chunks
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
12 #end if
4
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
13 ]]></command>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
14 <inputs>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
15 <param name="inputFile" type="data" format="fasta" label="Fasta file to split"/>
5
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
16 <conditional name="splitmode">
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
17 <param name="splitmode_select" type="select" label="Split mode">
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
18 <option value="each">Each sequence in its own dataset</option>
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
19 <option value="chunks">Split into a number of chunks</option>
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
20 </param>
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
21 <when value="chunks">
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
22 <param name="num_chunks" type="integer" value="10" label="Number of chunks to split into" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
23 </when>
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
24 <when value="each"/>
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
25 </conditional>
4
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
26 </inputs>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
27 <outputs>
5
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
28 <collection name="splitted_fasta" type="list" label="${tool.name} on ${on_string}">
4
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
29 <discover_datasets pattern="(?P&lt;designation&gt;.*)" directory="splits" ext="fasta" visible="false"/>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
30 </collection>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
31 </outputs>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
32 <tests>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
33 <test>
5
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
34 <param name="inputFile" value="sample1.fasta" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
35 <param name="splitmode|splitmode_select" value="each" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
36 <output_collection name="splitted_fasta" count="3">
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
37 <element name="ID1" file="ID1.fasta" ftype="fasta" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
38 <element name="ID2" file="ID2.fasta" ftype="fasta" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
39 <element name="ID3" file="ID3.fasta" ftype="fasta" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
40 </output_collection>
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
41 </test>
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
42 <test>
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
43 <param name="inputFile" value="sample2.fasta" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
44 <param name="splitmode|splitmode_select" value="chunks" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
45 <param name="num_chunks" value="4" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
46 <output_collection name="splitted_fasta" count="4">
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
47 <element name="part1" file="part1.fasta" ftype="fasta" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
48 <element name="part2" file="part2.fasta" ftype="fasta" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
49 <element name="part3" file="part3.fasta" ftype="fasta" />
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
50 <element name="part4" file="part4.fasta" ftype="fasta" />
4
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
51 </output_collection>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
52 </test>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
53 </tests>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
54 <help><![CDATA[
5
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
55 Takes an input FASTA file and writes entries (i.e. sequences) to separate datasets, which are organized in a dataset collection.
733ca84b21ee "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 31945d5d8c5ebee64ebf29c6ea022fb831f47274"
rnateam
parents: 4
diff changeset
56 There are two modes: 1) each sequence is written to its own data set which is named by the ID of the sequence or 2) The file is split into a given number of chunks which are numbered.
4
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
57 ]]></help>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
58 <citations>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
59 <citation type="bibtex">
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
60 @ARTICLE{bgruening_galaxytools,
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
61 Author = {Björn Grüning, Cameron Smith, Torsten Houwaart, Nicola Soranzo, Eric Rasche},
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
62 keywords = {bioinformatics, ngs, galaxy, cheminformatics, rna},
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
63 title = {{Galaxy Tools - A collection of bioinformatics and cheminformatics tools for the Galaxy environment}},
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
64 url = {https://github.com/bgruening/galaxytools}
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
65 }
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
66 </citation>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
67 </citations>
ae4d5733272f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/splitfasta commit 03f3cc2000e6ce876a3cb44c55c3fe878a2e7ce3-dirty
rnateam
parents:
diff changeset
68 </tool>