Skip to content

Commit 8d4a148

Browse files
authored
Merge branch 'dev' into dev
2 parents 0d04a06 + 7c0938d commit 8d4a148

4 files changed

Lines changed: 29 additions & 22 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6-
## [2.3.1] - 2021-14
6+
## [2.3.1] - 2021-01-14
77

88
### `Added`
99

1010
### `Fixed`
1111

12-
- Fixed issue with Docker container not being pullable by Nextflow
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+
- [#655](https://github.com/nf-core/eager/issues/655) - Updated read groups for all mappers to allow proper GATK validation
14+
- Fixed issue with Docker container not being pullable by Nextflow due to version-number inconsistencies
1315

1416
### `Dependencies`
1517

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ Those who have provided conceptual guidance, suggestions, bug reports etc.
160160

161161
* Arielle Munters
162162
* [Hester van Schalkwyk](https://github.com/hesterjvs)
163+
* [Ido Bar](https://github.com/IdoBar)
163164
* [Irina Velsko](https://github.com/ivelsko)
164165
* [Katerine Eaton](https://github.com/ktmeaton)
165166
* [Luc Venturini](https://github.com/lucventurini)

main.nf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,14 +1494,14 @@ process bwa {
14941494
"""
14951495
bwa aln -t ${task.cpus} $fasta ${r1} -n ${params.bwaalnn} -l ${params.bwaalnl} -k ${params.bwaalnk} -f ${libraryid}.r1.sai
14961496
bwa aln -t ${task.cpus} $fasta ${r2} -n ${params.bwaalnn} -l ${params.bwaalnl} -k ${params.bwaalnk} -f ${libraryid}.r2.sai
1497-
bwa sampe -r "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina" $fasta ${libraryid}.r1.sai ${libraryid}.r2.sai ${r1} ${r2} | samtools sort -@ ${task.cpus} -O bam - > ${libraryid}_"${seqtype}".mapped.bam
1497+
bwa sampe -r "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina\\tPU:ILLUMINA-${libraryid}-${seqtype}" $fasta ${libraryid}.r1.sai ${libraryid}.r2.sai ${r1} ${r2} | samtools sort -@ ${task.cpus} -O bam - > ${libraryid}_"${seqtype}".mapped.bam
14981498
samtools index "${libraryid}"_"${seqtype}".mapped.bam ${size}
14991499
"""
15001500
} else {
15011501
//PE collapsed, or SE data
15021502
"""
15031503
bwa aln -t ${task.cpus} ${fasta} ${r1} -n ${params.bwaalnn} -l ${params.bwaalnl} -k ${params.bwaalnk} -f ${libraryid}.sai
1504-
bwa samse -r "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina" $fasta ${libraryid}.sai $r1 | samtools sort -@ ${task.cpus} -O bam - > "${libraryid}"_"${seqtype}".mapped.bam
1504+
bwa samse -r "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina\\tPU:ILLUMINA-${libraryid}-${seqtype}" $fasta ${libraryid}.sai $r1 | samtools sort -@ ${task.cpus} -O bam - > "${libraryid}"_"${seqtype}".mapped.bam
15051505
samtools index "${libraryid}"_"${seqtype}".mapped.bam ${size}
15061506
"""
15071507
}
@@ -1531,12 +1531,12 @@ process bwamem {
15311531

15321532
if (!params.single_end && params.skip_collapse){
15331533
"""
1534-
bwa mem -t ${task.cpus} $fasta $r1 $r2 -R "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina" | samtools sort -@ ${task.cpus} -O bam - > "${libraryid}"_"${seqtype}".mapped.bam
1534+
bwa mem -t ${task.cpus} $fasta $r1 $r2 -R "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina\\tPU:ILLUMINA-${libraryid}-${seqtype}" | samtools sort -@ ${task.cpus} -O bam - > "${libraryid}"_"${seqtype}".mapped.bam
15351535
samtools index ${size} -@ ${task.cpus} "${libraryid}".mapped.bam
15361536
"""
15371537
} else {
15381538
"""
1539-
bwa mem -t ${task.cpus} $fasta $r1 -R "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina" | samtools sort -@ ${task.cpus} -O bam - > "${libraryid}"_"${seqtype}".mapped.bam
1539+
bwa mem -t ${task.cpus} $fasta $r1 -R "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina\\tPU:ILLUMINA-${libraryid}-${seqtype}" | samtools sort -@ ${task.cpus} -O bam - > "${libraryid}"_"${seqtype}".mapped.bam
15401540
samtools index -@ ${task.cpus} "${libraryid}"_"${seqtype}".mapped.bam ${size}
15411541
"""
15421542
}
@@ -1600,15 +1600,15 @@ process circularmapper{
16001600
"""
16011601
bwa aln -t ${task.cpus} $elongated_root $r1 -n ${params.bwaalnn} -l ${params.bwaalnl} -k ${params.bwaalnk} -f ${libraryid}.r1.sai
16021602
bwa aln -t ${task.cpus} $elongated_root $r2 -n ${params.bwaalnn} -l ${params.bwaalnl} -k ${params.bwaalnk} -f ${libraryid}.r2.sai
1603-
bwa sampe -r "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina" $elongated_root ${libraryid}.r1.sai ${libraryid}.r2.sai $r1 $r2 > tmp.out
1603+
bwa sampe -r "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina\\tPU:ILLUMINA-${libraryid}-${seqtype}" $elongated_root ${libraryid}.r1.sai ${libraryid}.r2.sai $r1 $r2 > tmp.out
16041604
realignsamfile -e ${params.circularextension} -i tmp.out -r $fasta $filter
16051605
samtools sort -@ ${task.cpus} -O bam tmp_realigned.bam > ${libraryid}_"${seqtype}".mapped.bam
16061606
samtools index "${libraryid}"_"${seqtype}".mapped.bam ${size}
16071607
"""
16081608
} else {
16091609
"""
16101610
bwa aln -t ${task.cpus} $elongated_root $r1 -n ${params.bwaalnn} -l ${params.bwaalnl} -k ${params.bwaalnk} -f ${libraryid}.sai
1611-
bwa samse -r "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina" $elongated_root ${libraryid}.sai $r1 > tmp.out
1611+
bwa samse -r "@RG\\tID:ILLUMINA-${libraryid}\\tSM:${libraryid}\\tPL:illumina\\tPU:ILLUMINA-${libraryid}-${seqtype}" $elongated_root ${libraryid}.sai $r1 > tmp.out
16121612
realignsamfile -e ${params.circularextension} -i tmp.out -r $fasta $filter
16131613
samtools sort -@ ${task.cpus} -O bam tmp_realigned.bam > "${libraryid}"_"${seqtype}".mapped.bam
16141614
samtools index "${libraryid}"_"${seqtype}".mapped.bam ${size}
@@ -1677,13 +1677,13 @@ process bowtie2 {
16771677
//PE data without merging, PE data without any AR applied
16781678
if ( seqtype == 'PE' && ( params.skip_collapse || params.skip_adapterremoval ) ){
16791679
"""
1680-
bowtie2 -x ${fasta} -1 ${r1} -2 ${r2} -p ${task.cpus} ${sensitivity} ${bt2n} ${bt2l} ${trim5} ${trim3} 2> "${libraryid}"_bt2.log | samtools sort -@ ${task.cpus} -O bam > "${libraryid}"_"${seqtype}".mapped.bam
1680+
bowtie2 -x ${fasta} -1 ${r1} -2 ${r2} -p ${task.cpus} ${sensitivity} ${bt2n} ${bt2l} ${trim5} ${trim3} --rg-id ILLUMINA-${libraryid} --rg SM:${libraryid} --rg PL:illumina --rg PU:ILLUMINA-${libraryid}-${seqtype} 2> "${libraryid}"_bt2.log | samtools sort -@ ${task.cpus} -O bam > "${libraryid}"_"${seqtype}".mapped.bam
16811681
samtools index "${libraryid}"_"${seqtype}".mapped.bam ${size}
16821682
"""
16831683
} else {
16841684
//PE collapsed, or SE data
16851685
"""
1686-
bowtie2 -x ${fasta} -U ${r1} -p ${task.cpus} ${sensitivity} ${bt2n} ${bt2l} ${trim5} ${trim3} 2> "${libraryid}"_bt2.log | samtools sort -@ ${task.cpus} -O bam > "${libraryid}"_"${seqtype}".mapped.bam
1686+
bowtie2 -x ${fasta} -U ${r1} -p ${task.cpus} ${sensitivity} ${bt2n} ${bt2l} ${trim5} ${trim3} --rg-id ILLUMINA-${libraryid} --rg SM:${libraryid} --rg PL:illumina --rg PU:ILLUMINA-${libraryid}-${seqtype} 2> "${libraryid}"_bt2.log | samtools sort -@ ${task.cpus} -O bam > "${libraryid}"_"${seqtype}".mapped.bam
16871687
samtools index "${libraryid}"_"${seqtype}".mapped.bam ${size}
16881688
"""
16891689
}

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)