@@ -50,7 +50,7 @@ def helpMessage() {
5050 --skip_deduplication
5151
5252 Complexity Filtering
53- --complexity_filtering Run poly-G removal on FASTQ files
53+ --complexity_filter_poly_g Run poly-G removal on FASTQ files
5454 --complexity_filter_poly_g_min Specify length of poly-g min for clipping to be performed (default: 10)
5555
5656 Clipping / Merging
@@ -151,7 +151,7 @@ params.skip_qualimap = false
151151params. skip_deduplication = false
152152
153153// Complexity filtering reads
154- params. complexity_filter = false
154+ params. complexity_filter_poly_g = false
155155params. complexity_filter_poly_g_min = 10
156156
157157// Read clipping and merging parameters
@@ -291,14 +291,14 @@ if( params.readPaths ){
291291 .from( params. readPaths )
292292 .map { row -> [ row[0 ], [ file( row[1 ][0 ] ) ] ] }
293293 .ifEmpty { exit 1 , " params.readPaths or params.bams was empty - no input files supplied!" }
294- .into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filtering }
294+ .into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filter_poly_g }
295295 ch_bam_to_fastq_convert = Channel . empty()
296296 } else if (! params. bam){
297297 Channel
298298 .from( params. readPaths )
299299 .map { row -> [ row[0 ], [ file( row[1 ][0 ] ), file( row[1 ][1 ] ) ] ] }
300300 .ifEmpty { exit 1 , " params.readPaths or params.bams was empty - no input files supplied!" }
301- .into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filtering }
301+ .into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filter_poly_g }
302302 ch_bam_to_fastq_convert = Channel . empty()
303303 } else {
304304 Channel
@@ -310,15 +310,15 @@ if( params.readPaths ){
310310
311311 // Set up clean channels
312312 ch_read_files_fastqc = Channel . empty()
313- ch_read_files_complexity_filtering = Channel . empty()
313+ ch_read_files_complexity_filter_poly_g = Channel . empty()
314314 ch_read_files_clip = Channel . empty()
315315 }
316316} else if (! params. bam){
317317 Channel
318318 .fromFilePairs( params. reads, size : params. singleEnd ? 1 : 2 )
319319 .ifEmpty { exit 1 , " Cannot find any reads matching: ${ params.reads} \n NB: Path needs" +
320320 " to be enclosed in quotes!\n NB: Path requires at least one * wildcard!\n If this is single-end data, please specify --singleEnd on the command line." }
321- .into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filtering }
321+ .into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filter_poly_g }
322322 ch_bam_to_fastq_convert = Channel . empty()
323323} else {
324324 Channel
@@ -331,7 +331,7 @@ if( params.readPaths ){
331331
332332 // Set up clean channels
333333 ch_read_files_fastqc = Channel . empty()
334- ch_read_files_complexity_filtering = Channel . empty()
334+ ch_read_files_complexity_filter_poly_g = Channel . empty()
335335 ch_read_files_clip = Channel . empty()
336336
337337}
@@ -548,13 +548,13 @@ process fastp {
548548 tag " $name "
549549 publishDir " ${ params.outdir} /FastP" , mode: ' copy'
550550
551- when: params. complexity_filter
551+ when: params. complexity_filter_poly_g
552552
553553 input:
554- set val(name), file(reads) from ch_read_files_complexity_filtering . mix(ch_read_files_converted_fastp)
554+ set val(name), file(reads) from ch_read_files_complexity_filter_poly_g . mix(ch_read_files_converted_fastp)
555555
556556 output:
557- set val(name), file(" *pG.fq.gz" ) into ch_clipped_reads_complexity_filtered
557+ set val(name), file(" *pG.fq.gz" ) into ch_clipped_reads_complexity_filtered_poly_g
558558 file(" *.json" ) into ch_fastp_for_multiqc
559559
560560 script:
@@ -582,7 +582,7 @@ process adapter_removal {
582582 when: ! params. bam
583583
584584 input:
585- set val(name), file(reads) from ( params. complexity_filter ? ch_clipped_reads_complexity_filtered : ch_read_files_clip )
585+ set val(name), file(reads) from ( params. complexity_filter_poly_g ? ch_clipped_reads_complexity_filtered_poly_g : ch_read_files_clip )
586586
587587 output:
588588 file " *.combined*.gz" into (ch_clipped_reads, ch_clipped_reads_for_fastqc,ch_clipped_reads_circularmapper,ch_clipped_reads_bwamem)
0 commit comments