comparison dada2_filterAndTrim.xml @ 8:e9d1e654cc9d draft

planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/topic/dada2/tools/dada2 commit 7831a1e3225240028b30ae02808bdff9babaf368-dirty
author matthias
date Mon, 27 May 2019 05:34:36 -0400
parents 37305bbf8f44
children e09edc2b553a
comparison
equal deleted inserted replaced
7:146bee188fdf 8:e9d1e654cc9d
51 fwd <- NULL 51 fwd <- NULL
52 rev <- NULL 52 rev <- NULL
53 filt.fwd <- NULL 53 filt.fwd <- NULL
54 filt.rev <- NULL 54 filt.rev <- NULL
55 #if $paired_cond.paired_select == "paired" 55 #if $paired_cond.paired_select == "paired"
56 fwd <- c(fwd, '$paired_cond.reads.forward') 56 fwd <- c(fwd, '$paired_cond.paired_reads.forward')
57 rev <- c(rev, '$paired_cond.reads.reverse') 57 rev <- c(rev, '$paired_cond.paired_reads.reverse')
58 filt.fwd <- c(filt.fwd, '$paired_output.forward') 58 filt.fwd <- c(filt.fwd, '$paired_output.forward')
59 filt.rev <- c(filt.rev, '$paired_output.reverse') 59 filt.rev <- c(filt.rev, '$paired_output.reverse')
60 #else if $paired_cond.paired_select == "separate" 60 #else if $paired_cond.paired_select == "separate"
61 fwd <- c(fwd, '$paired_cond.forward') 61 fwd <- c(fwd, '$paired_cond.forward')
62 rev <- c(rev, '$paired_cond.reverse') 62 rev <- c(rev, '$paired_cond.reverse')
73 truncQ = truncQ, truncLen = truncLen, trimLeft = trimLeft, trimRight = trimRight, maxLen = maxLen, 73 truncQ = truncQ, truncLen = truncLen, trimLeft = trimLeft, trimRight = trimRight, maxLen = maxLen,
74 minLen = minLen, maxN = maxN, minQ = minQ, maxEE = maxEE, rm.phix = $rmPhiX, orient.fwd = '$orientFwd') 74 minLen = minLen, maxN = maxN, minQ = minQ, maxEE = maxEE, rm.phix = $rmPhiX, orient.fwd = '$orientFwd')
75 75
76 #if $paired_cond.paired_select == "separate": 76 #if $paired_cond.paired_select == "separate":
77 rownames(ftout) <- c( '$paired_cond.forward.element_identifier' ) 77 rownames(ftout) <- c( '$paired_cond.forward.element_identifier' )
78 #else if $paired_cond.paired_select == "paired"
79 rownames(ftout) <- c( '$paired_cond.paired_reads.element_identifier' )
78 #else: 80 #else:
79 rownames(ftout) <- c( '$paired_cond.reads.element_identifier' ) 81 rownames(ftout) <- c( '$paired_cond.reads.element_identifier' )
80 #end if 82 #end if
81 write.table(ftout, "$outtab", quote=F, sep="\t", col.names=NA) 83 write.table(ftout, "$outtab", quote=F, sep="\t", col.names=NA)
82 ]]></configfile> 84 ]]></configfile>
87 <option value="paired">paired - in a data set pair</option> 89 <option value="paired">paired - in a data set pair</option>
88 <option value="separate">paired - in two separate data sets</option> 90 <option value="separate">paired - in two separate data sets</option>
89 <option value="single">single</option> 91 <option value="single">single</option>
90 </param> 92 </param>
91 <when value="paired"> 93 <when value="paired">
92 <param name="reads" argument="fwd/rev" type="data_collection" collection_type="paired" format="fastqsanger,fastqsanger.gz" label="Paired short read data"/> 94 <param name="paired_reads" argument="fwd/rev" type="data_collection" collection_type="paired" format="fastq,fastq.gz" label="Paired short read data"/>
93 </when> 95 </when>
94 <when value="separate"> 96 <when value="separate">
95 <param name="forward" argument="fwd" type="data" format="fastqsanger,fastqsanger.gz" label="Forward read data"/> 97 <param name="forward" argument="fwd" type="data" format="fastq,fastq.gz" label="Forward read data"/>
96 <param name="reverse" argument="rev" type="data" format="fastqsanger,fastqsanger.gz" label="Reverse read data"/> 98 <param name="reverse" argument="rev" type="data" format="fastq,fastq.gz" label="Reverse read data"/>
97 </when> 99 </when>
98 <when value="single"> 100 <when value="single">
99 <param name="reads" argument="fwd" type="data" format="fastqsanger,fastqsanger.gz" label="Short read data"/> 101 <param name="reads" argument="fwd" type="data" format="fastq,fastq.gz" label="Short read data"/>
100 </when> 102 </when>
101 </conditional> 103 </conditional>
102 <expand macro="trimmers"/> 104 <expand macro="trimmers"/>
103 <expand macro="filters"/> 105 <expand macro="filters"/>
104 <conditional name="seprev_cond"> 106 <conditional name="seprev_cond">
111 <expand macro="trimmers"/> 113 <expand macro="trimmers"/>
112 <expand macro="filters"/> 114 <expand macro="filters"/>
113 </when> 115 </when>
114 </conditional> 116 </conditional>
115 <param argument="rmPhiX" truevalue="TRUE" falsevalue="FALSE" type="boolean" checked="true" label="Discard reads matching the PhiX genome" /> 117 <param argument="rmPhiX" truevalue="TRUE" falsevalue="FALSE" type="boolean" checked="true" label="Discard reads matching the PhiX genome" />
116 <param name="orientFwd" argument="orinent.fwd" type="text" value="" optional="true" label="String present at the start of valid reads" help="see below"/> 118 <param name="orientFwd" argument="orient.fwd" type="text" value="" optional="true" label="String present at the start of valid reads" help="see below"/>
117 <param name="output_statistics" truevalue="TRUE" falsevalue="FALSE" type="boolean" checked="true" label="Output statistics" help="Create extra table with the number of reads pre and post filtering" /> 119 <param name="output_statistics" truevalue="TRUE" falsevalue="FALSE" type="boolean" checked="true" label="Output statistics" help="Create extra table with the number of reads pre and post filtering" />
118 </inputs> 120 </inputs>
119 <outputs> 121 <outputs>
120 <collection name="paired_output" type="paired"> 122 <collection name="paired_output" type="paired" structured_like="paired_reads" inherit_format="true">
121 <data name="forward" format="fastqsanger.gz" />
122 <data name="reverse" format="fastqsanger.gz" />
123 <filter>paired_cond['paired_select'] == "paired"</filter> 123 <filter>paired_cond['paired_select'] == "paired"</filter>
124 </collection> 124 </collection>
125 <data name="output_single" format="fastqsanger.gz" > 125 <data name="output_single" format_source="reads" >
126 <filter>paired_cond['paired_select'] == "single"</filter> 126 <filter>paired_cond['paired_select'] == "single"</filter>
127 </data> 127 </data>
128 <data name="output_fwd" format="fastqsanger.gz" label="${tool.name} on ${on_string}: Forward reads" > 128 <data name="output_fwd" format_source="forward" label="${tool.name} on ${on_string}: Forward reads" >
129 <filter>paired_cond['paired_select'] == "separate"</filter> 129 <filter>paired_cond['paired_select'] == "separate"</filter>
130 </data> 130 </data>
131 <data name="output_rev" format="fastqsanger.gz" label="${tool.name} on ${on_string}: Reverse reads" > 131 <data name="output_rev" format_source="reverse" label="${tool.name} on ${on_string}: Reverse reads" >
132 <filter>paired_cond['paired_select'] == "separate"</filter> 132 <filter>paired_cond['paired_select'] == "separate"</filter>
133 </data> 133 </data>
134 <data name="outtab" format="tabular" label="${tool.name} on ${on_string}: Statistics"> 134 <data name="outtab" format="tabular" label="${tool.name} on ${on_string}: Statistics">
135 <filter>output_statistics</filter> 135 <filter>output_statistics</filter>
136 </data> 136 </data>
139 <!-- paired data 139 <!-- paired data
140 currently removed `expect_num_outputs="2"` because of https://github.com/galaxyproject/galaxy/pull/7894--> 140 currently removed `expect_num_outputs="2"` because of https://github.com/galaxyproject/galaxy/pull/7894-->
141 <test> 141 <test>
142 <conditional name="paired_cond"> 142 <conditional name="paired_cond">
143 <param name="paired_select" value="paired"/> 143 <param name="paired_select" value="paired"/>
144 <param name="reads"> 144 <param name="paired_reads">
145 <collection type="paired"> 145 <collection type="paired">
146 <element name="forward" value="F3D0_S188_L001_R1_001.fastq.gz" ftype="fastqsanger.gz"/> 146 <element name="forward" value="F3D0_S188_L001_R1_001.fastq.gz" ftype="fastqsanger.gz"/>
147 <element name="reverse" value="F3D0_S188_L001_R2_001.fastq.gz" ftype="fastqsanger.gz"/> 147 <element name="reverse" value="F3D0_S188_L001_R2_001.fastq.gz" ftype="fastqsanger.gz"/>
148 </collection> 148 </collection>
149 </param> 149 </param>
204 <!-- paired data w separate filters and trimmers for reverse 204 <!-- paired data w separate filters and trimmers for reverse
205 currently removed `expect_num_outputs="1"` because of https://github.com/galaxyproject/galaxy/pull/7894--> 205 currently removed `expect_num_outputs="1"` because of https://github.com/galaxyproject/galaxy/pull/7894-->
206 <test> 206 <test>
207 <conditional name="paired_cond"> 207 <conditional name="paired_cond">
208 <param name="paired_select" value="paired"/> 208 <param name="paired_select" value="paired"/>
209 <param name="reads"> 209 <param name="paired_reads">
210 <collection type="paired"> 210 <collection type="paired">
211 <element name="forward" value="F3D0_S188_L001_R1_001.fastq.gz" ftype="fastqsanger.gz"/> 211 <element name="forward" value="F3D0_S188_L001_R1_001.fastq.gz" ftype="fastqsanger.gz"/>
212 <element name="reverse" value="F3D0_S188_L001_R2_001.fastq.gz" ftype="fastqsanger.gz"/> 212 <element name="reverse" value="F3D0_S188_L001_R2_001.fastq.gz" ftype="fastqsanger.gz"/>
213 </collection> 213 </collection>
214 </param> 214 </param>