Skip to content

Commit 8ad2456

Browse files
authored
Merge pull request #659 from jfy133/schema-number-type-fix
Fix schema accidently strings values to correct integers
2 parents 469897c + 0212ff9 commit 8ad2456

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### `Fixed`
1111

12+
- [#654](https://github.com/nf-core/eager/issues/654) - Fixed some values in JSON schema (used in launch GUI) not passing validation checks during run
13+
1214
### `Dependencies`
1315

1416
### `Deprecated`

nextflow_schema.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -587,29 +587,33 @@
587587
"bt2n": {
588588
"type": "integer",
589589
"description": "Specify the -N parameter for bowtie2 (mismatches in seed). This will override defaults from alignmode/sensitivity.",
590-
"default": "0",
590+
"default": 0,
591591
"fa_icon": "fas fa-sort-numeric-down",
592-
"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`"
592+
"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`",
593+
"enum": [
594+
0,
595+
1
596+
]
593597
},
594598
"bt2l": {
595599
"type": "integer",
600+
"default": 0,
596601
"description": "Specify the -L parameter for bowtie2 (length of seed substrings). This will override defaults from alignmode/sensitivity.",
597602
"fa_icon": "fas fa-ruler-horizontal",
598-
"default": "0",
599603
"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`"
600604
},
601605
"bt2_trim5": {
602606
"type": "integer",
607+
"default": 0,
603608
"description": "Specify number of bases to trim off from 5' (left) end of read before alignment.",
604609
"fa_icon": "fas fa-cut",
605-
"default": "0",
606610
"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`"
607611
},
608612
"bt2_trim3": {
609613
"type": "integer",
614+
"default": 0,
610615
"description": "Specify number of bases to trim off from 3' (right) end of read before alignment.",
611616
"fa_icon": "fas fa-cut",
612-
"default": "0",
613617
"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`"
614618
}
615619
},
@@ -658,15 +662,15 @@
658662
"bam_mapping_quality_threshold": {
659663
"type": "integer",
660664
"description": "Minimum mapping quality for reads filter.",
661-
"default": "0",
665+
"default": 0,
662666
"fa_icon": "fas fa-greater-than-equal",
663667
"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`"
664668
},
665669
"bam_filter_minreadlength": {
666670
"type": "integer",
671+
"default": 0,
667672
"fa_icon": "fas fa-ruler-horizontal",
668673
"description": "Specify minimum read length to be kept after mapping.",
669-
"default": "0",
670674
"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`"
671675
},
672676
"bam_unmapped_type": {
@@ -851,28 +855,28 @@
851855
},
852856
"bamutils_clip_half_udg_left": {
853857
"type": "integer",
854-
"default": "1",
858+
"default": 1,
855859
"fa_icon": "fas fa-ruler-combined",
856860
"description": "Specify the number of bases to clip off reads from 'left' end of read for half-UDG libraries.",
857861
"help_text": "Default set to `1` and clips off one base of the left or right side of reads from libraries whose UDG treatment is set to `half`. Note that reverse reads will automatically be clipped off at the reverse side with this (automatically reverses left and right for the reverse read).\n\n> Modifies bamUtil's trimBam parameter: `-L -R`"
858862
},
859863
"bamutils_clip_half_udg_right": {
860864
"type": "integer",
861-
"default": "1",
865+
"default": 1,
862866
"fa_icon": "fas fa-ruler",
863867
"description": "Specify the number of bases to clip off reads from 'right' end of read for half-UDG libraries.",
864868
"help_text": "Default set to `1` and clips off one base of the left or right side of reads from libraries whose UDG treatment is set to `half`. Note that reverse reads will automatically be clipped off at the reverse side with this (automatically reverses left and right for the reverse read).\n\n> Modifies bamUtil's trimBam parameter: `-L -R`"
865869
},
866870
"bamutils_clip_none_udg_left": {
867871
"type": "integer",
868-
"default": "1",
872+
"default": 1,
869873
"fa_icon": "fas fa-ruler-combined",
870874
"description": "Specify the number of bases to clip off reads from 'left' end of read for non-UDG libraries.",
871875
"help_text": "Default set to `1` and clips off one base of the left or right side of reads from libraries whose UDG treatment is set to `none`. Note that reverse reads will automatically be clipped off at the reverse side with this (automatically reverses left and right for the reverse read).\n\n> Modifies bamUtil's trimBam parameter: `-L -R`"
872876
},
873877
"bamutils_clip_none_udg_right": {
874878
"type": "integer",
875-
"default": "1",
879+
"default": 1,
876880
"fa_icon": "fas fa-ruler",
877881
"description": "Specify the number of bases to clip off reads from 'right' end of read for non-UDG libraries.",
878882
"help_text": "Default set to `1` and clips off one base of the left or right side of reads from libraries whose UDG treatment is set to `none`. Note that reverse reads will automatically be clipped off at the reverse side with this (automatically reverses left and right for the reverse read).\n\n> Modifies bamUtil's trimBam parameter: `-L -R`"
@@ -1023,9 +1027,9 @@
10231027
},
10241028
"freebayes_g": {
10251029
"type": "integer",
1030+
"default": 0,
10261031
"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.",
10271032
"fa_icon": "fab fa-think-peaks",
1028-
"default": "0",
10291033
"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`"
10301034
},
10311035
"freebayes_p": {

0 commit comments

Comments
 (0)