Mercurial > repos > iuc > vsearch
annotate sorting.xml @ 1:8c4e2933a17a draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
author | iuc |
---|---|
date | Wed, 26 Aug 2015 13:34:22 -0400 |
parents | fae6527990af |
children | f29e21388219 |
rev | line source |
---|---|
1
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
1 <tool id="vsearch_sorting" name="VSearch sorting" version="@VERSION@.1"> |
0 | 2 <description></description> |
3 <macros> | |
4 <import>vsearch_macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <expand macro="stdio" /> | |
8 <expand macro="version_command" /> | |
9 <command> | |
10 <![CDATA[ | |
11 vsearch | |
12 @GENERAL@ | |
13 #if $sorting_mode.sorting_mode_select == 'sortbylength': | |
14 --sortbylength "$sorting_mode.infile" | |
15 #else: | |
16 --sortbysize "$sorting_mode.infile" | |
17 #if $sorting_mode.minsize: | |
18 --minsize $sorting_mode.minsize | |
19 #end if | |
20 #if $sorting_mode.maxsize: | |
21 --maxsize $sorting_mode.maxsize | |
22 #end if | |
23 #end if | |
24 --output $outfile | |
1
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
25 #if $relabel: |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
26 --relabel "$relabel" |
0 | 27 #end if |
1
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
28 $sizeout |
0 | 29 #if $topn: |
30 --topn $topn | |
31 #end if | |
32 | |
33 ]]> | |
34 </command> | |
35 <inputs> | |
36 <conditional name="sorting_mode"> | |
37 <param name="sorting_mode_select" type="select" label="Sorting by" help=""> | |
38 <option value="sortbylength">sequence length</option> | |
39 <option value="sortbyabundance">by abundance</option> | |
40 </param> | |
41 <when value="sortbylength"> | |
42 <param name="infile" type="data" format="fasta" label="Select your FASTA file" help="(--sortbylength)" /> | |
43 </when> | |
44 <when value="sortbyabundance"> | |
45 <param name="infile" type="data" format="fasta" label="Select your FASTA file" help="(--sortbysize)" /> | |
46 <param name="minsize" type="integer" value="" optional="True" label="Minimum abundance" | |
47 help="(--minsize)"/> | |
48 <param name="maxsize" type="integer" value="" optional="True" label="Maximum abundance" | |
49 help="(--maxsize)"/> | |
50 </when> | |
51 </conditional> | |
52 <expand macro="topn" /> | |
1
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
53 <param name="relabel" type="text" value="" |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
54 label="Relabel with this prefix string after sorting" help="(--relabel)"/> |
0 | 55 <param name="sizeout" type="boolean" truevalue="--sizeout" falsevalue="" checked="False" |
56 label="Add abundance annotation to output" help="(--sizeout)"/> | |
57 </inputs> | |
58 <outputs> | |
59 <data name="outfile" format="fasta" label="${tool.name} on ${on_string}" /> | |
60 </outputs> | |
61 <tests> | |
62 <test> | |
63 <param name="sorting_mode_select" value="sortbyabundance"/> | |
64 <param name="infile" value="db.fasta" ftype="fasta" /> | |
65 <output name="outfile" file="sorting_result1.fasta" ftype="fasta" /> | |
66 </test> | |
67 <test> | |
68 <param name="sorting_mode_select" value="sortbylength"/> | |
69 <param name="infile" value="db.fasta" ftype="fasta" /> | |
70 <output name="outfile" file="sorting_result2.fasta" ftype="fasta" /> | |
71 </test> | |
1
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
72 <test> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
73 <param name="sorting_mode_select" value="sortbylength"/> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
74 <param name="infile" value="db.fasta" ftype="fasta" /> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
75 <param name="relabel" value="TEST" /> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
76 <output name="outfile" file="sorting_result3.fasta" ftype="fasta" /> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
77 </test> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
78 <test> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
79 <param name="sorting_mode_select" value="sortbylength"/> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
80 <param name="infile" value="db.fasta" ftype="fasta" /> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
81 <param name="sizeout" value="--sizeout" /> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
82 <output name="outfile" file="sorting_result4.fasta" ftype="fasta" /> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
83 </test> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
84 <test> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
85 <param name="sorting_mode_select" value="sortbylength"/> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
86 <param name="infile" value="db.fasta" ftype="fasta" /> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
87 <param name="relabel" value="With spaces" /> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
88 <output name="outfile" file="sorting_result5.fasta" ftype="fasta" /> |
8c4e2933a17a
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vsearch commit 95732e013ec4dfe5dae0b9ed81e9d7710cbaed9d
iuc
parents:
0
diff
changeset
|
89 </test> |
0 | 90 </tests> |
91 <help> | |
92 <![CDATA[ | |
93 **What it does** | |
94 | |
95 Fasta entries are sorted by decreasing abundance (−−sortbysize) or sequence length (−−sort- | |
96 bylength). To obtain a stable sorting order, ties are sorted by decreasing abundance and label | |
97 increasing alpha-numerical order (−−sortbylength), or just by label increasing alpha-numerical | |
98 order (−−sortbysize). Label sorting assumes that all sequences have unique labels. The same | |
99 applies to the automatic sorting performed during chimera checking (−−uchime_denovo), derepli- | |
100 cation (−−derep_fulllength), and clustering (−−cluster_fast and −−cluster_size). | |
101 | |
102 Sorting options | |
103 --maxsize INT maximum abundance for sortbysize | |
104 --minsize INT minimum abundance for sortbysize | |
105 --output FILENAME output FASTA file | |
106 --relabel STRING relabel with this prefix string after sorting | |
107 --sizeout add abundance annotation to output | |
108 --sortbylength FILENAME sort sequences by length in given FASTA file | |
109 --sortbysize FILENAME abundance sort sequences in given FASTA file | |
110 --topn INT output just top n seqs after sorting | |
111 | |
112 | |
113 @EXTERNAL_DOCUMENTATION@ | |
114 | |
115 ------- | |
116 | |
117 @REFERENCES@ | |
118 | |
119 | |
120 ]]> | |
121 </help> | |
122 <expand macro="citations" /> | |
123 </tool> |