Skip to content

Commit 0e659df

Browse files
authored
Merge pull request #230 from drpatelh/updates
Pre-release bug fixes
2 parents 232827f + a9c51b7 commit 0e659df

File tree

10 files changed

+46
-41
lines changed

10 files changed

+46
-41
lines changed

CHANGELOG.md

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

6-
## [[2.2](https://github.com/nf-core/rnaseq/releases/tag/2.2)] - 2021-07-28
6+
## [[2.2](https://github.com/nf-core/rnaseq/releases/tag/2.2)] - 2021-07-29
77

88
### Enhancements & fixes
99

1010
* Updated pipeline template to [nf-core/tools 2.1](https://github.com/nf-core/tools/releases/tag/2.1)
1111
* Remove custom content to render Pangolin report in MultiQC as it was officially added as a module in [v1.11](https://github.com/ewels/MultiQC/pull/1458)
1212
* [[#212](https://github.com/nf-core/viralrecon/issues/212)] - Access to `PYCOQC.out` is undefined
13+
* [[#229](https://github.com/nf-core/viralrecon/issues/229)] - ARTIC Guppyplex settings for 1200bp ARTIC primers with Nanopore data
1314

1415
### Software dependencies
1516

conf/base.config

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ process {
2020

2121
// Process-specific resource requirements
2222
withLabel:process_low {
23-
cpus = { check_max( 2 * task.attempt, 'cpus' ) }
24-
memory = { check_max( 12.GB * task.attempt, 'memory' ) }
25-
time = { check_max( 4.h * task.attempt, 'time' ) }
23+
cpus = { check_max( 2 * task.attempt, 'cpus' ) }
24+
memory = { check_max( 12.GB * task.attempt, 'memory' ) }
25+
time = { check_max( 4.h * task.attempt, 'time' ) }
2626
}
2727
withLabel:process_medium {
28-
cpus = { check_max( 6 * task.attempt, 'cpus' ) }
29-
memory = { check_max( 36.GB * task.attempt, 'memory' ) }
30-
time = { check_max( 8.h * task.attempt, 'time' ) }
28+
cpus = { check_max( 6 * task.attempt, 'cpus' ) }
29+
memory = { check_max( 36.GB * task.attempt, 'memory' ) }
30+
time = { check_max( 8.h * task.attempt, 'time' ) }
3131
}
3232
withLabel:process_high {
33-
cpus = { check_max( 12 * task.attempt, 'cpus' ) }
34-
memory = { check_max( 72.GB * task.attempt, 'memory' ) }
35-
time = { check_max( 16.h * task.attempt, 'time' ) }
33+
cpus = { check_max( 12 * task.attempt, 'cpus' ) }
34+
memory = { check_max( 72.GB * task.attempt, 'memory' ) }
35+
time = { check_max( 16.h * task.attempt, 'time' ) }
3636
}
3737
withLabel:process_long {
38-
time = { check_max( 20.h * task.attempt, 'time' ) }
38+
time = { check_max( 20.h * task.attempt, 'time' ) }
3939
}
4040
withLabel:process_high_memory {
4141
memory = { check_max( 200.GB * task.attempt, 'memory' ) }

conf/modules.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ params {
102102
publish_dir = "${params.artic_minion_caller}/pangolin"
103103
}
104104
'nanopore_nextclade' {
105+
publish_files = ['csv':'']
105106
publish_dir = "${params.artic_minion_caller}/nextclade"
106107
}
107108
'nanopore_asciigenome' {
@@ -298,6 +299,7 @@ params {
298299
publish_dir = 'variants/ivar/pangolin'
299300
}
300301
'illumina_ivar_nextclade' {
302+
publish_files = ['csv':'']
301303
publish_dir = 'variants/ivar/nextclade'
302304
}
303305
'illumina_ivar_asciigenome' {
@@ -369,6 +371,7 @@ params {
369371
publish_dir = 'variants/bcftools/pangolin'
370372
}
371373
'illumina_bcftools_nextclade' {
374+
publish_files = ['csv':'']
372375
publish_dir = 'variants/bcftools/nextclade'
373376
}
374377
'illumina_bcftools_asciigenome' {

modules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"git_sha": "e937c7950af70930d1f34bb961403d9d2aa81c7d"
8383
},
8484
"nextclade": {
85-
"git_sha": "e937c7950af70930d1f34bb961403d9d2aa81c7d"
85+
"git_sha": "29c847424034eb04765d7378fb384ad3094a66a6"
8686
},
8787
"pangolin": {
8888
"git_sha": "e7e30b6da631ce5288151af4e46488ac6d294ff4"

modules/local/multiqc_illumina.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ process MULTIQC {
6767
multiqc_to_custom_csv.py --platform illumina
6868
6969
## Manually remove files that we don't want in the report
70-
if grep -q skip_assembly workflow_summary_mqc.yaml; then
70+
if grep -q ">skip_assembly<" workflow_summary_mqc.yaml; then
7171
rm -f *assembly_metrics_mqc.csv
7272
fi
7373
74-
if grep -q skip_variants workflow_summary_mqc.yaml; then
74+
if grep -q ">skip_variants<" workflow_summary_mqc.yaml; then
7575
rm -f *variants_metrics_mqc.csv
7676
fi
7777

modules/nf-core/modules/nextclade/main.nf

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,28 @@ process NEXTCLADE {
2020

2121
input:
2222
tuple val(meta), path(fasta)
23-
val output_format
2423

2524
output:
26-
tuple val(meta), path("${prefix}.csv") , optional:true, emit: csv
27-
tuple val(meta), path("${prefix}.json") , optional:true, emit: json
28-
tuple val(meta), path("${prefix}.tree.json") , optional:true, emit: json_tree
29-
tuple val(meta), path("${prefix}.tsv") , optional:true, emit: tsv
25+
tuple val(meta), path("${prefix}.csv") , emit: csv
26+
tuple val(meta), path("${prefix}.json") , emit: json
27+
tuple val(meta), path("${prefix}.tree.json") , emit: json_tree
28+
tuple val(meta), path("${prefix}.tsv") , emit: tsv
3029
tuple val(meta), path("${prefix}.clades.tsv"), optional:true, emit: tsv_clades
3130
path "*.version.txt" , emit: version
3231

3332
script:
3433
def software = getSoftwareName(task.process)
3534
prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
36-
def format = output_format
37-
if (!(format in ['json', 'csv', 'tsv', 'tree', 'tsv-clades-only'])) {
38-
format = 'json'
39-
}
40-
def extension = format
41-
if (format in ['tsv-clades-only']) {
42-
extension = '.clades.tsv'
43-
} else if (format in ['tree']) {
44-
extension = 'tree.json'
45-
}
4635
"""
4736
nextclade \\
4837
$options.args \\
4938
--jobs $task.cpus \\
5039
--input-fasta $fasta \\
51-
--output-${format} ${prefix}.${extension}
40+
--output-json ${prefix}.json \\
41+
--output-csv ${prefix}.csv \\
42+
--output-tsv ${prefix}.tsv \\
43+
--output-tsv-clades-only ${prefix}.clades.tsv \\
44+
--output-tree ${prefix}.tree.json
5245
5346
echo \$(nextclade --version 2>&1) > ${software}.version.txt
5447
"""

modules/nf-core/modules/nextclade/meta.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tools:
1111
documentation: None
1212
tool_dev_url: https://github.com/nextstrain/nextclade
1313
doi: ""
14-
licence: ['MIT']
14+
licence: ["MIT"]
1515

1616
input:
1717
- meta:
@@ -23,11 +23,6 @@ input:
2323
type: file
2424
description: FASTA file containing one or more consensus sequences
2525
pattern: "*.{fasta,fa}"
26-
- output_format:
27-
type: string
28-
description: |
29-
String for output format supported by nextclade
30-
i.e one of 'json', 'csv', 'tsv', 'tree', 'tsv-clades-only'
3126

3227
output:
3328
- meta:

subworkflows/local/variants_bcftools.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ workflow VARIANTS_BCFTOOLS {
7979
}
8080

8181
if (!params.skip_nextclade) {
82-
NEXTCLADE ( ch_consensus, 'csv' )
82+
NEXTCLADE ( ch_consensus )
8383
ch_nextclade_report = NEXTCLADE.out.csv
8484
ch_nextclade_version = NEXTCLADE.out.version
8585
}

subworkflows/local/variants_ivar.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ workflow VARIANTS_IVAR {
9292
}
9393

9494
if (!params.skip_nextclade) {
95-
NEXTCLADE ( ch_consensus, 'csv' )
95+
NEXTCLADE ( ch_consensus )
9696
ch_nextclade_report = NEXTCLADE.out.csv
9797
ch_nextclade_version = NEXTCLADE.out.version
9898
}

workflows/nanopore.nf

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,23 @@ def artic_minion_options = modules['nanopore_artic_minion']
9292
artic_minion_options.args += params.artic_minion_caller == 'medaka' ? Utils.joinModuleArgs(['--medaka']) : ''
9393
artic_minion_options.args += params.artic_minion_aligner == 'bwa' ? Utils.joinModuleArgs(['--bwa']) : Utils.joinModuleArgs(['--minimap2'])
9494

95+
def artic_guppyplex_options = modules['nanopore_artic_guppyplex']
96+
if (params.primer_set_version == 1200) {
97+
def args_split = artic_guppyplex_options.args.tokenize()
98+
def min_idx = args_split.indexOf('--min-length')
99+
def max_idx = args_split.indexOf('--max-length')
100+
if (min_idx != -1) {
101+
args_split[min_idx+1] = '250'
102+
}
103+
if (max_idx != -1) {
104+
args_split[max_idx+1] = '1500'
105+
}
106+
artic_guppyplex_options.args = args_split.join(' ')
107+
}
108+
95109
include { PYCOQC } from '../modules/nf-core/modules/pycoqc/main' addParams( options: modules['nanopore_pycoqc'] )
96110
include { NANOPLOT } from '../modules/nf-core/modules/nanoplot/main' addParams( options: modules['nanopore_nanoplot'] )
97-
include { ARTIC_GUPPYPLEX } from '../modules/nf-core/modules/artic/guppyplex/main' addParams( options: modules['nanopore_artic_guppyplex'] )
111+
include { ARTIC_GUPPYPLEX } from '../modules/nf-core/modules/artic/guppyplex/main' addParams( options: artic_guppyplex_options )
98112
include { ARTIC_MINION } from '../modules/nf-core/modules/artic/minion/main' addParams( options: artic_minion_options )
99113
include { BCFTOOLS_STATS } from '../modules/nf-core/modules/bcftools/stats/main' addParams( options: modules['nanopore_bcftools_stats'] )
100114
include { QUAST } from '../modules/nf-core/modules/quast/main' addParams( options: modules['nanopore_quast'] )
@@ -373,8 +387,7 @@ workflow NANOPORE {
373387
ch_nextclade_multiqc = Channel.empty()
374388
if (!params.skip_nextclade) {
375389
NEXTCLADE (
376-
ARTIC_MINION.out.fasta,
377-
'csv'
390+
ARTIC_MINION.out.fasta
378391
)
379392
ch_software_versions = ch_software_versions.mix(NEXTCLADE.out.version.ifEmpty(null))
380393

0 commit comments

Comments
 (0)