annotate macros.xml.orig @ 5:e55eb3d22f79 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
author iuc
date Tue, 31 Aug 2021 07:56:53 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
1 <?xml version="1.0"?>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
2 <macros>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
3 <xml name="requirements">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
4 <requirements>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
5 <requirement type="package" version="@DADA2_VERSION@">bioconductor-dada2</requirement>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
6 <yield/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
7 </requirements>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
8 </xml>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
9 <<<<<<< HEAD
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
10
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
11 <token name="@DADA2_VERSION@">1.20</token>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
12 =======
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
13 <xml name="bio_tools">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
14 <xrefs>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
15 <xref type='bio.tools'>dada2</xref>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
16 </xrefs>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
17 </xml>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
18 <token name="@DADA2_VERSION@">1.16</token>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
19 >>>>>>> 449abf790 (add bio.tools ID)
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
20 <token name="@WRAPPER_VERSION@">0</token>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
21
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
22 <xml name="version_command">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
23 <version_command><![CDATA[
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
24 echo $(R --version | grep version | grep -v GNU)", dada2 version" $(R --vanilla --slave -e "library(dada2); cat(sessionInfo()\$otherPkgs\$dada2\$Version)" 2> /dev/null | grep -v -i "WARNING: ")
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
25 ]]></version_command>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
26 </xml>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
27
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
28 <xml name="stdio">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
29 <stdio>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
30 <regex match="Error: cannot allocate" source="stderr" level="fatal_oom" description="Out of memory error occurred" />
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
31 <regex match="'Calloc' could not allocate memory" source="stderr" level="fatal_oom" description="Out of memory error occurred" />
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
32 </stdio>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
33 </xml>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
34
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
35 <xml name="citations">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
36 <citations>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
37 <citation type="doi">10.1038/nmeth.3869</citation>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
38 <yield/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
39 </citations>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
40 </xml>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
41
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
42 <token name="@DADA_UNIQUES@">dada2_dada,dada2_mergepairs</token>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
43
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
44 <!-- function to read dada2 data types
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
45 - dada, and mergepairs are simply read as RDS
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
46 - sequence_table is a named integer matrix (rows=samples, columns=ASVs)
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
47 - uniques is a named integer vector (columns=ASVs, only one rows)-->
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
48 <token name="@READ_FOO@"><![CDATA[
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
49 read.uniques <- function ( fname ) {
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
50 p <- read.table(fname, header=F, sep="\t")
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
51 n <-x[,2]
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
52 names(n)<-x[,1]
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
53 }
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
54 #def read_data($dataset)
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
55 #if $dataset.is_of_type('dada2_sequencetable')
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
56 t(as.matrix( read.table('$dataset', header=T, sep="\t", row.names=1) ))
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
57 #else if $dataset.is_of_type('dada2_uniques')
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
58 read.uniques('$dataset')
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
59 #else if $dataset.is_of_type('tabular')
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
60 read.table('$dataset', header=T, sep="\t", row.names=1)
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
61 #else
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
62 readRDS('$dataset')
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
63 #end if
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
64 #end def
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
65 ]]></token>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
66 <!-- function to write dada2 data types (the content or the R variable 'out' is written)
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
67 - dada, and mergepairs are written as RDS
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
68 - sequence_table is a named integer matrix (rows=samples, columns=ASVs)
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
69 - uniques is a named integer vector (columns=ASVs, only one rows)-->
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
70 <token name="@WRITE_FOO@"><![CDATA[
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
71 write.data <- function( data, fname, type ){
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
72 if( type == 'dada2_uniques'){
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
73 write.table(data, file = fname, quote = F, sep = "\t", row.names = T, col.names = F)
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
74 }else if( type== 'dada2_sequencetable'){
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
75 write.table(t(data), file=fname, quote=F, sep="\t", row.names = T, col.names = NA)
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
76 }else{
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
77 saveRDS(data, file=fname)
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
78 }
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
79 }
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
80 ]]></token>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
81
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
82 <xml name="fastq_input" token_multiple="" token_collection_type="" token_argument_fwd="" token_argument_rev="">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
83 <conditional name="paired_cond">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
84 <param name="paired_select" type="select" label="Paired reads">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
85 <option value="paired">paired - in a data set pair</option>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
86 <option value="separate">paired - in two separate data sets</option>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
87 <option value="single">single</option>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
88 </param>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
89 <when value="paired">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
90 <param name="reads" argument="@ARGUMENT_FWD@/@ARGUMENT_REV@" type="data_collection" collection_type="@COLLECTION_TYPE@" format="fastq,fastq.gz" label="Paired short read data"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
91 </when>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
92 <when value="separate">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
93 <param name="reads" argument="@ARGUMENT_FWD@" type="data" format="fastq,fastq.gz" multiple="@MULTIPLE@" label="Forward read data"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
94 <param name="sdaer" argument="@ARGUMENT_REV@" type="data" format="fastq,fastq.gz" multiple="@MULTIPLE@" label="Reverse read data"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
95 </when>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
96 <when value="single">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
97 <param name="reads" argument="@ARGUMENT_FWD@" type="data" format="fastq,fastq.gz" multiple="@MULTIPLE@" label="Short read data"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
98 </when>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
99 </conditional>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
100 </xml>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
101
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
102 <!-- for filterAndTrim -->
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
103 <xml name="trimmers">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
104 <section name="trim" title="Trimming parameters">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
105 <param argument="truncQ" type="integer" value="2" min="0" label="Truncate reads at quality threshold" help="Truncate reads at the first instance of a quality score less than or equal to this threshold"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
106 <param argument="trimLeft" type="integer" value="0" min="0" label="Trim start of each read" help="The number of nucleotides to remove from the start of each read."/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
107 <param argument="trimRight" type="integer" value="0" min="0" label="Trim end of each read" help="The number of nucleotides to remove from the end of each read"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
108 <param argument="truncLen" type="integer" value="0" min="0" label="Truncate read length" help="Truncate reads after this amount of bases. Reads shorter than this are discarded. (default 0: no truncation)"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
109 </section>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
110 </xml>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
111 <xml name="filters">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
112 <section name="filter" title="Filtering parameters">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
113 <param argument="maxLen" type="integer" value="" optional="true" min="0" label="Remove long reads" help="Remove reads with length greater than this value. Default: no length threshold"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
114 <param argument="minLen" type="integer" value="20" min="0" label="Remove short reads" help="Remove reads with length less than this value. Default: 20"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
115 <param argument="maxN" type="integer" value="0" min="0" label="Remove reads with more Ns" help="Note that some of the subsequent dada pipeline steps do not allow Ns"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
116 <param argument="minQ" type="integer" value="0" min="0" label="Remove low quality reads" help="Reads contain a quality score less than this value will be discarded"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
117 <param argument="maxEE" type="integer" value="" optional="true" min="0" label="Remove reads by number expected errors" help="Reads with a higher number of expected errors (EE) will be discarded, where EE = sum(10^(-Q_i/10)), with Q are the nominal quality scores at the read positions"/>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
118 </section>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
119 </xml>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
120
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
121 <xml name="errorEstimationFunction">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
122 <param name="errfoo" argument="errorEstimationFunction" type="select" label="Error function">
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
123 <option value="loessErrfun">loess: Use a loess fit to estimate error rates from transition counts</option>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
124 <option value="noqualErrfun">noqual: Estimate error rates for each type of transition while ignoring quality scores.</option>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
125 <option value="PacBioErrfun">PacBio: Estimate error rates from transition counts in PacBio CCS data.</option>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
126 </param>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
127 </xml>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
128 <token name="@HELP_OVERVIEW@"><![CDATA[
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
129 Overview
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
130 ........
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
131
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
132 The intended use of the dada2 tools for paired sequencing data is shown in the following image.
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
133
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
134 .. image:: pairpipe.png
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
135
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
136 Note: In particular for the analysis of paired collections the collections should be sorted lexicographical
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
137 before the analysis.
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
138
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
139 For single end data you the steps "Unzip collection" and "mergePairs" are not necessary.
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
140
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
141 More information may be found on the dada2 homepage:: https://benjjneb.github.io/dada2/index.html (in particular tutorials) or the documentation of dada2's R package https://bioconductor.org/packages/release/bioc/html/dada2.html (in particular the pdf which contains the full documentation of all parameters)
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
142 ]]></token>
e55eb3d22f79 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dada2 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
iuc
parents:
diff changeset
143 </macros>