comparison chop.seqs.xml @ 0:f1d0a5a4e30c draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 180a403421967d36f995941b1a4561349d75cfc5
author iuc
date Fri, 24 Jun 2016 17:35:55 -0400
parents
children b0f422397f42
comparison
equal deleted inserted replaced
-1:000000000000 0:f1d0a5a4e30c
1 <tool profile="16.07" id="mothur_chop_seqs" name="Chop.seqs" version="@WRAPPER_VERSION@.0">
2 <description>Trim sequences to a specified length</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="version_command"/>
8 <command detect_errors="aggressive"><![CDATA[
9 ## create symlinks to input datasets
10 ln -s "$fasta" fasta.dat &&
11 ln -s "$name" name.dat &&
12 ln -s "$group" group.dat &&
13 ln -s "$count" count.dat &&
14
15 echo 'chop.seqs(
16 fasta=fasta.dat,
17 numbases=$numbases,
18 keep=$keep,
19 countgaps=$countgaps,
20 short=$short,
21 #if $name:
22 name=name.dat,
23 #end if
24 #if $group:
25 group=group.dat,
26 #end if
27 #if $count:
28 count=count.dat,
29 #end if
30 processors='\${GALAXY_SLOTS:-8}'
31 )'
32 | sed 's/ //g' ## mothur trips over whitespace
33 | mothur
34 ]]></command>
35 <inputs>
36 <param name="fasta" type="data" format="fasta,mothur.align" label="fasta - Sequences to be chopped"/>
37 <param name="numbases" type="integer" value="10" label="numbases - Number of bases to keep"/>
38 <param name="keep" type="select" label="keep - Part of the sequence to keep">
39 <option value="front">front</option>
40 <option value="back">back</option>
41 </param>
42 <param name="countgaps" type="boolean" truevalue="true" falsevalue="false" checked="false" label="countgaps - Count gaps as bases"/>
43 <param name="short" type="boolean" truevalue="true" falsevalue="false" checked="false" label="short - keep sequences that are too short to chop"/>
44 <param name="name" type="data" format="name" optional="true" label="name file"/>
45 <param name="group" type="data" format="group" optional="true" label="group file"/>
46 <param name="count" type="data" format="mothur.count_table" optional="true" label="count file"/>
47 </inputs>
48 <outputs>
49 <expand macro="logfile-output"/>
50 <data name="out_fasta" format_source="fasta" from_work_dir="fasta*.chop.fasta" label="${tool.name} on ${on_string}: chop.fasta"/>
51 </outputs>
52 <tests>
53 <test>
54 <param name="fasta" value="Mock_S280_L001_R1_001_small.trim.contigs.good.align_head"/>
55 <param name="name" value="Mock_S280_L001_R1_001_small.trim.contigs.good.names"/>
56 <output name="out_fasta" file="Mock_S280_L001_R1_001_small.trim.contigs.good.chop.fasta" compare="contains"/>
57 <expand macro="logfile-test"/>
58 </test>
59 </tests>
60 <help>
61 <![CDATA[
62
63 @MOTHUR_OVERVIEW@
64
65 **Command Documenation**
66
67 The chop.seqs_ command reads a fasta file of sequences and outputs a .chop.fasta file containing the trimmed sequences. It works on both aligned and unaligned sequences.
68
69 .. _chop.seqs: http://www.mothur.org/wiki/Chop.seqs
70
71 v1.20.0: Updated to 1.33. Added name, group and count options for mothur version 1.31.0
72 ]]>
73 </help>
74 <expand macro="citations"/>
75 </tool>