annotate obiuniq.xml @ 2:c0f7b58b4ce4 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit 57f71aa633a43ab02bbf05acd0c6d7f406e01f1e"
author iuc
date Thu, 28 Nov 2019 15:52:27 -0500
parents e0655b546470
children ec215ed98831
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
e0655b546470 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit b3426aed6615742d96dfb8f7346a9e0d4e391a99
iuc
parents: 0
diff changeset
1 <tool id="obi_uniq" name="obiuniq" version="@TOOL_VERSION@">
0
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
2 <macros>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
3 <import>macros.xml</import>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
4 </macros>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
5 <expand macro="requirements"/>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
6 <expand macro="stdio"/>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
7 <command>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
8
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
9 <![CDATA[
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
10
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
11 obiuniq
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
12 #if str( $options_attribute) == "merge"
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
13 -m '$options_uniq'
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
14 #else
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
15 -c '$options_uniq'
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
16 #end if
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
17 ${mid}
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
18 ${prefix}
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
19 '$input' > '$output'
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
20
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
21 ]]>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
22
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
23 </command>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
24
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
25 <inputs>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
26 <param name="input" type="data" format="fasta,fastq" label="Input sequences file" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
27 <param name="options_uniq" type="select" label="Attribute to merge" >
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
28 <expand macro="attributes"/>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
29 </param>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
30 <param name="options_attribute" type="select" label="Use specific option" >
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
31 <option value="merge" selected="true">merge</option>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
32 <option value="category_attribute">category_attribute</option>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
33 </param>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
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" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
35 <param name="prefix" type="boolean" checked="false" truevalue="-p" falsevalue="" label="Dereplicate through a prefix matching" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
36 </inputs>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
37 <outputs>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
38 <data format="fasta" name="output" label="output.fasta with ${tool.name} on ${on_string}" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
39 </outputs>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
40
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
41 <tests>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
42 <test>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
43 <param name="input" value="output_ngsfilter_error_3.fastq" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
44 <param name="options_uniq" value="sample" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
45 <param name="options_attribute" value="merge" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
46 <param name="mid" value="False" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
47 <param name="prefix" value="False" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
48 <output name="output" file="output_obiuniq.fasta" ftype="fasta"/>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
49 </test>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
50 <test>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
51 <param name="input" value="output_ngsfilter_error_3.fastq" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
52 <param name="options_uniq" value="family" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
53 <param name="options_attribute" value="category_attribute" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
54 <param name="mid" value="True" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
55 <param name="prefix" value="True" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
56 <output name="output" file="output_obiuniq_family.fasta" ftype="fasta"/>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
57 </test>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
58
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
59 </tests>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
60 <help><![CDATA[
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
61
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
62 .. class:: infomark
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
63
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
64 **What it does**
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
65
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
66 The obiuniq command is in some way analog to the standard Unix uniq -c command.
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
67
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
68 Instead of working text line by text line as the standard Unix tool, the processing is done on sequence records.
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
69
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
70 A sequence record is a complex object composed of an identifier, a set of attributes (key=value), a definition, and the sequence itself.
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
71
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
72 The obiuniq command groups together sequence records. Then, for each group, a sequence record is printed.
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
73
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
74 A group is defined by the sequence and optionally by the values of a set of attributes specified with the -c option.
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
75
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
76 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.
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
77
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
78 \* By default, only attributes with identical values within a group of sequence records are kept.
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
79
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
80 \* A count attribute is set to the total number of sequence records for each group.
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
81
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
82 \* 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.
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
83
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
84
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
85 @OBITOOLS_LINK@
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
86
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
87
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
88
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
89 ]]>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
90 </help>
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
91 <expand macro="citation" />
4c2b715a258a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/obitools commit e1031e4c94b25d1ed535bf221764ab801b710ab2
iuc
parents:
diff changeset
92 </tool>