Skip to content

Commit 2828014

Browse files
authored
Merge pull request #748 from nf-core/validation-fixes-patch
Fix bedtools annotation file condition and re-add defaults
2 parents e942094 + c0342b8 commit 2828014

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1616
- Updated template to nf-core/tools 1.14
1717
- [#688](https://github.com/nf-core/eager/issues/688) - Clarified the pipeline is not just for humans and microbes, but also plants and animals, and also for modern DNA
1818
- [#751](https://github.com/nf-core/eager/pull/751) - Added missing label to mtnucratio
19+
- General code cleanup and standarisation of parameters with no default setting
1920

2021
### `Dependencies`
2122

main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if ( params.skip_collapse && params.skip_trim ) {
4646
}
4747

4848
// Bedtools validation
49-
if(params.run_bedtools_coverage && params.anno_file ){
49+
if(params.run_bedtools_coverage && !params.anno_file ){
5050
exit 1, "[nf-core/eager] error: you have turned on bedtools coverage, but not specified a BED or GFF file with --anno_file. Please validate your parameters."
5151
}
5252

nextflow_schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@
616616
},
617617
"bt2n": {
618618
"type": "integer",
619+
"default": 0,
619620
"description": "Specify the -N parameter for bowtie2 (mismatches in seed). This will override defaults from alignmode/sensitivity.",
620621
"fa_icon": "fas fa-sort-numeric-down",
621622
"help_text": "The number of mismatches allowed in the seed during seed-and-extend procedure of Bowtie2. This will override any values set with `--bt2_sensitivity`. Can either be 0 or 1. Default: 0 (i.e. use`--bt2_sensitivity` defaults).\n\n> Modifies Bowtie2 parameters: `-N`",
@@ -626,18 +627,21 @@
626627
},
627628
"bt2l": {
628629
"type": "integer",
630+
"default": 0,
629631
"description": "Specify the -L parameter for bowtie2 (length of seed substrings). This will override defaults from alignmode/sensitivity.",
630632
"fa_icon": "fas fa-ruler-horizontal",
631633
"help_text": "The length of the seed sub-string to use during seeding. This will override any values set with `--bt2_sensitivity`. Default: 0 (i.e. use`--bt2_sensitivity` defaults: [20 for local and 22 for end-to-end](http://bowtie-bio.sourceforge.net/bowtie2/manual.shtml#command-line).\n\n> Modifies Bowtie2 parameters: `-L`"
632634
},
633635
"bt2_trim5": {
634636
"type": "integer",
637+
"default": 0,
635638
"description": "Specify number of bases to trim off from 5' (left) end of read before alignment.",
636639
"fa_icon": "fas fa-cut",
637640
"help_text": "Number of bases to trim at the 5' (left) end of read prior alignment. Maybe useful when left-over sequencing artefacts of in-line barcodes present Default: 0\n\n> Modifies Bowtie2 parameters: `-bt2_trim5`"
638641
},
639642
"bt2_trim3": {
640643
"type": "integer",
644+
"default": 0,
641645
"description": "Specify number of bases to trim off from 3' (right) end of read before alignment.",
642646
"fa_icon": "fas fa-cut",
643647
"help_text": "Number of bases to trim at the 3' (right) end of read prior alignment. Maybe useful when left-over sequencing artefacts of in-line barcodes present Default: 0.\n\n> Modifies Bowtie2 parameters: `-bt2_trim3`"
@@ -695,12 +699,14 @@
695699
},
696700
"bam_mapping_quality_threshold": {
697701
"type": "integer",
702+
"default": 0,
698703
"description": "Minimum mapping quality for reads filter.",
699704
"fa_icon": "fas fa-greater-than-equal",
700705
"help_text": "Specify a mapping quality threshold for mapped reads to be kept for downstream analysis. By default keeps all reads and is therefore set to `0` (basically doesn't filter anything).\n\n> Modifies samtools view parameter: `-q`"
701706
},
702707
"bam_filter_minreadlength": {
703708
"type": "integer",
709+
"default": 0,
704710
"fa_icon": "fas fa-ruler-horizontal",
705711
"description": "Specify minimum read length to be kept after mapping.",
706712
"help_text": "Specify minimum length of mapped reads. This filtering will apply at the same time as mapping quality filtering.\n\nIf used _instead_ of minimum length read filtering at AdapterRemoval, this can be useful to get more realistic endogenous DNA percentages, when most of your reads are very short (e.g. in single-stranded libraries) and would otherwise be discarded by AdapterRemoval (thus making an artificially small denominator for a typical endogenous DNA calculation). Note in this context you should not perform mapping quality filtering nor discarding of unmapped reads to ensure a correct denominator of all reads, for the endogenous DNA calculation.\n\n> Modifies filter_bam_fragment_length.py parameter: `-l`"
@@ -1065,6 +1071,7 @@
10651071
},
10661072
"freebayes_g": {
10671073
"type": "integer",
1074+
"default": 0,
10681075
"description": "Specify to skip over regions of high depth by discarding alignments overlapping positions where total read depth is greater than specified in --freebayes_C.",
10691076
"fa_icon": "fab fa-think-peaks",
10701077
"help_text": "Specify to skip over regions of high depth by discarding alignments overlapping positions where total read depth is greater than specified C. Not set by default.\n\n> Modifies freebayes parameter: `-g`"

0 commit comments

Comments
 (0)