annotate obiuniq.xml @ 3:ec215ed98831 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
author iuc
date Mon, 10 May 2021 19:34:29 +0000
parents e0655b546470
children d4bea99366f9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
1 <tool id="obi_uniq" name="obiuniq" version="@TOOL_VERSION@" profile="@PROFILE@">
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
2 <macros>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
3 <import>macros.xml</import>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
4 </macros>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
5 <expand macro="requirements"/>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
6 <expand macro="stdio"/>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
7 <command><![CDATA[
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
8 @GUNZIP_INPUT@
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
9
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
10 obiuniq
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
11 --without-progress-bar
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
12 #if str( $options_attribute) == "merge"
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
13 -m '$options_uniq'
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
14 #else
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
15 -c '$options_uniq'
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
16 #end if
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
17 ${mid}
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
18 ${prefix}
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
19 @INPUT_FORMAT@
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
20 input
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
21 @GZIP_OUTPUT@
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
22 > '$output'
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
23 @GENERATE_GALAXY_JSON@
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
24 ]]></command>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
25 <inputs>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
26 <param name="input" type="data" format="@INPUT_FORMATS@" label="Input sequences file" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
27 <param name="options_uniq" type="select" label="Attribute to merge" >
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
28 <expand macro="attributes"/>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
29 </param>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
30 <param name="options_attribute" type="select" label="Use specific option" >
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
31 <option value="merge" selected="true">merge</option>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
32 <option value="category_attribute">category_attribute</option>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
33 </param>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
34 <param name="mid" type="boolean" checked="false" truevalue="-i" falsevalue="" label="Add a merged attribute containing the list of sequence record ids merged within this group" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
35 <param name="prefix" type="boolean" checked="false" truevalue="-p" falsevalue="" label="Dereplicate through a prefix matching" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
36 <expand macro="input_format_options_macro"/>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
37 </inputs>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
38 <outputs>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
39 <data format="auto" name="output"/>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
40 </outputs>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
41 <tests>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
42 <test>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
43 <param name="input" value="output_ngsfilter_error_3.fastq" ftype="fastqsanger"/>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
44 <param name="options_uniq" value="sample" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
45 <param name="options_attribute" value="merge" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
46 <param name="mid" value="False" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
47 <param name="prefix" value="False" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
48 <output name="output" file="output_obiuniq.fasta" ftype="fasta"/>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
49 </test>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
50 <test>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
51 <param name="input" value="output_ngsfilter_error_3.fastq.gz" ftype="fastqsanger.gz"/>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
52 <param name="options_uniq" value="family" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
53 <param name="options_attribute" value="category_attribute" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
54 <param name="mid" value="True" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
55 <param name="prefix" value="True" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
56 <output name="output" file="output_obiuniq_family.fasta.gz" ftype="fasta.gz" decompress="true"/>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
57 </test>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
58 </tests>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
59 <help><![CDATA[
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
60 .. class:: infomark
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
61
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
62 **What it does**
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
63
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
64 The obiuniq command is in some way analog to the standard Unix uniq -c command.
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
65
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
66 Instead of working text line by text line as the standard Unix tool, the processing is done on sequence records.
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
67
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
68 A sequence record is a complex object composed of an identifier, a set of attributes (key=value), a definition, and the sequence itself.
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
69
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
70 The obiuniq command groups together sequence records. Then, for each group, a sequence record is printed.
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
71
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
72 A group is defined by the sequence and optionally by the values of a set of attributes specified with the -c option.
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
73
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
74 As the identifier, the set of attributes (key=value) and the definition of the sequence records that are grouped together may be different, two options (-m and -i) allow refining how these parts of the records are reported.
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
75
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
76 \* By default, only attributes with identical values within a group of sequence records are kept.
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
77
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
78 \* A count attribute is set to the total number of sequence records for each group.
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
79
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
80 \* For each attribute specified by the -m option, a new attribute whose key is prefixed by merged_ is created. These new attributes contain the number of times each value occurs within the group of sequence records.
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
81
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
82
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
83 @OBITOOLS_LINK@
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
84 ]]></help>
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
85 <expand macro="citation" />
ec215ed98831 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 5d3c7a7b3f7d687bb03ef7993ddf1a6507d655bd"
iuc
parents: 1
diff changeset
86 </tool>