Skip to content

Commit

Permalink
Merge pull request #2273 from krokicki/dev2273
Browse files Browse the repository at this point in the history
Make multiqc_report optional when emailing
  • Loading branch information
ewels authored May 8, 2023
2 parents 1edabeb + eae38cb commit 8450f26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Template

- `params.max_multiqc_email_size` is no longer required
- Remove `cleanup = true` from `test_full.config` in pipeline template
- Fix usage docs for specifying `params.yaml`
- Added stub in modules template ([#2277])(https://github.com/nf-core/tools/pull/2277) [Contributed by @nvnieuwk]
Expand Down
2 changes: 1 addition & 1 deletion nf_core/pipeline-template/lib/NfcoreTemplate.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class NfcoreTemplate {
def email_html = html_template.toString()

// Render the sendmail template
def max_multiqc_email_size = params.max_multiqc_email_size as nextflow.util.MemoryUnit
def max_multiqc_email_size = (params.containsKey('max_multiqc_email_size') ? params.max_multiqc_email_size : 0) as nextflow.util.MemoryUnit
def smail_fields = [ email: email_address, subject: subject, email_txt: email_txt, email_html: email_html, projectDir: "$projectDir", mqcFile: mqc_report, mqcMaxSize: max_multiqc_email_size.toBytes() ]
def sf = new File("$projectDir/assets/sendmail_template.txt")
def sendmail_template = engine.createTemplate(sf).make(smail_fields)
Expand Down

0 comments on commit 8450f26

Please sign in to comment.