Skip to content

Commit 71f0329

Browse files
authored
Merge pull request #152 from jfy133/dev
polyg param improvement
2 parents e85b58f + 16fedae commit 71f0329

4 files changed

Lines changed: 18 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unpublished / Dev Branch]
88

9+
### `Added`
10+
11+
* Clarified `--complexity_filter` flag to be specifically for poly G trimming.
12+
913
### `Fixed`
14+
1015
* [#151](https://github.com/nf-core/eager/pull/151) - Fixed [post-deduplication step errors](https://github.com/nf-core/eager/issues/128
1116
* [#147](https://github.com/nf-core/eager/pull/147) - Fix Samtools Index for [large references](https://github.com/nf-core/eager/issues/146)
1217
* [#145](https://github.com/nf-core/eager/pull/145) - Added Picard Memory Handling [fix](https://github.com/nf-core/eager/issues/144)
@@ -20,7 +25,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2025

2126
### `Fixed`
2227
* [#128](https://github.com/nf-core/eager/issues/128) - Fixed reference genome handling errors
23-
)
2428

2529
### `Dependencies`
2630
* Picard Tools 2.18.21 -> 2.18.23

conf/multiqc_config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ top_modules:
99
- '*_fastqc.zip'
1010
path_filters_exclude:
1111
- '*.combined.prefixed_fastqc.zip'
12+
- 'fastp'
1213
- 'adapterRemoval'
1314
- 'fastqc':
1415
name: 'FastQC (post-AdapterRemoval)'

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Turns off duplicate removal methods DeDup and MarkDuplicates respectively. No du
303303

304304
## Complexity Filtering Options
305305

306-
### `--complexity_filter`
306+
### `--complexity_filter_poly_g`
307307

308308
Performs a poly-G tail removal step in the beginning of the pipeline, if turned on. This can be useful for trimming ploy-G tails from short-fragments sequenced on two-colour Illumina chemistry such as NextSeqs (where no-fluorescence is read as a G on two-colour chemistry), which can inflate reported GC content values.
309309

main.nf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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
151151
params.skip_deduplication = false
152152

153153
//Complexity filtering reads
154-
params.complexity_filter = false
154+
params.complexity_filter_poly_g = false
155155
params.complexity_filter_poly_g_min = 10
156156

157157
//Read clipping and merging parameters
@@ -285,14 +285,14 @@ if( params.readPaths ){
285285
.from( params.readPaths )
286286
.map { row -> [ row[0], [ file( row[1][0] ) ] ] }
287287
.ifEmpty { exit 1, "params.readPaths or params.bams was empty - no input files supplied!" }
288-
.into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filtering }
288+
.into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filter_poly_g }
289289
ch_bam_to_fastq_convert = Channel.empty()
290290
} else if (!params.bam){
291291
Channel
292292
.from( params.readPaths )
293293
.map { row -> [ row[0], [ file( row[1][0] ), file( row[1][1] ) ] ] }
294294
.ifEmpty { exit 1, "params.readPaths or params.bams was empty - no input files supplied!" }
295-
.into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filtering }
295+
.into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filter_poly_g }
296296
ch_bam_to_fastq_convert = Channel.empty()
297297
} else {
298298
Channel
@@ -304,15 +304,15 @@ if( params.readPaths ){
304304

305305
//Set up clean channels
306306
ch_read_files_fastqc = Channel.empty()
307-
ch_read_files_complexity_filtering = Channel.empty()
307+
ch_read_files_complexity_filter_poly_g = Channel.empty()
308308
ch_read_files_clip = Channel.empty()
309309
}
310310
} else if (!params.bam){
311311
Channel
312312
.fromFilePairs( params.reads, size: params.singleEnd ? 1 : 2 )
313313
.ifEmpty { exit 1, "Cannot find any reads matching: ${params.reads}\nNB: Path needs" +
314314
"to be enclosed in quotes!\nNB: Path requires at least one * wildcard!\nIf this is single-end data, please specify --singleEnd on the command line." }
315-
.into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filtering }
315+
.into { ch_read_files_clip; ch_read_files_fastqc; ch_read_files_complexity_filter_poly_g }
316316
ch_bam_to_fastq_convert = Channel.empty()
317317
} else {
318318
Channel
@@ -325,7 +325,7 @@ if( params.readPaths ){
325325

326326
//Set up clean channels
327327
ch_read_files_fastqc = Channel.empty()
328-
ch_read_files_complexity_filtering = Channel.empty()
328+
ch_read_files_complexity_filter_poly_g = Channel.empty()
329329
ch_read_files_clip = Channel.empty()
330330

331331
}
@@ -543,13 +543,13 @@ process fastp {
543543
tag "$name"
544544
publishDir "${params.outdir}/FastP", mode: 'copy'
545545

546-
when: params.complexity_filter
546+
when: params.complexity_filter_poly_g
547547

548548
input:
549-
set val(name), file(reads) from ch_read_files_complexity_filtering.mix(ch_read_files_converted_fastp)
549+
set val(name), file(reads) from ch_read_files_complexity_filter_poly_g.mix(ch_read_files_converted_fastp)
550550

551551
output:
552-
set val(name), file("*pG.fq.gz") into ch_clipped_reads_complexity_filtered
552+
set val(name), file("*pG.fq.gz") into ch_clipped_reads_complexity_filtered_poly_g
553553
file("*.json") into ch_fastp_for_multiqc
554554

555555
script:
@@ -577,7 +577,7 @@ process adapter_removal {
577577
when: !params.bam
578578

579579
input:
580-
set val(name), file(reads) from ( params.complexity_filter ? ch_clipped_reads_complexity_filtered : ch_read_files_clip )
580+
set val(name), file(reads) from ( params.complexity_filter_poly_g ? ch_clipped_reads_complexity_filtered_poly_g : ch_read_files_clip )
581581

582582
output:
583583
file "*.combined*.gz" into (ch_clipped_reads, ch_clipped_reads_for_fastqc,ch_clipped_reads_circularmapper,ch_clipped_reads_bwamem)

0 commit comments

Comments
 (0)