diff --git a/CHANGELOG.md b/CHANGELOG.md index 52ae7f0e..0f0676a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ Thank you to everyone else that has contributed by reporting bugs, enhancements - [[#299](https://github.com/nf-core/viralrecon/issues/299)] - Add the freyja pipeline as a subworkflow - [[PR #387](https://github.com/nf-core/viralrecon/pull/387)] - Software closes gracefully when encountering an error - [[PR #395](https://github.com/nf-core/viralrecon/pull/395)] - Remove minia from default assemblers because it is unreliable +- [[PR #393](https://github.com/nf-core/viralrecon/pull/393)] - Changed primer set to params ### Parameters diff --git a/README.md b/README.md index 3eac4923..46fbea6a 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,7 @@ nextflow run nf-core/viralrecon \ --outdir \ --platform nanopore \ --genome 'MN908947.3' \ + --primer_set 'artic' \ --primer_set_version 3 \ --fastq_dir fastq_pass/ \ --fast5_dir fast5_pass/ \ diff --git a/conf/test_full_nanopore.config b/conf/test_full_nanopore.config index ec041051..43fceae1 100644 --- a/conf/test_full_nanopore.config +++ b/conf/test_full_nanopore.config @@ -23,6 +23,7 @@ params { // Genome references genome = 'MN908947.3' + primer_set = 'artic' primer_set_version = 3 // variant calling options diff --git a/conf/test_nanopore.config b/conf/test_nanopore.config index 0674e8ab..dfcc65c9 100644 --- a/conf/test_nanopore.config +++ b/conf/test_nanopore.config @@ -28,6 +28,7 @@ params { // Genome references genome = 'MN908947.3' + primer_set = 'artic' primer_set_version = 3 // variant calling options diff --git a/docs/usage.md b/docs/usage.md index 93c0c4b0..c5aacc24 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -104,6 +104,7 @@ nextflow run nf-core/viralrecon \ --outdir \ --platform nanopore \ --genome 'MN908947.3' \ + --primer_set 'artic' \ --primer_set_version 3 \ --fastq_dir fastq_pass/ \ --fast5_dir fast5_pass/ \ @@ -123,6 +124,7 @@ nextflow run nf-core/viralrecon \ --outdir \ --platform nanopore \ --genome 'MN908947.3' \ + --primer_set 'artic' \ --primer_set_version 3 \ --fastq_dir fastq_pass/ \ --artic_minion_caller medaka \ diff --git a/main.nf b/main.nf index e51c832d..fd4468ef 100644 --- a/main.nf +++ b/main.nf @@ -23,7 +23,7 @@ if (params.platform == 'illumina' && params.protocol == 'amplicon') { primer_set = params.primer_set primer_set_version = params.primer_set_version } else if (params.platform == 'nanopore') { - primer_set = 'artic' + primer_set = params.primer_set primer_set_version = params.primer_set_version params.artic_scheme = WorkflowMain.getGenomeAttribute(params, 'scheme', log, primer_set, primer_set_version) }