Is it possible for the workflow to generate an email containing reports, perhaps by using the workflow.onComplete module or another email option available in Nextflow? My idea is to use the Nextflow script to generate the email body, then use the sendEmail function to send a pipeline summary to the lab. Alternatively, we could incorporate the contents from the workflow.onComplete module. I believe this approach could effectively communicate the results of the pipeline execution. Thank you.
Pipeline Execution Summary
Run name : ${workflow.runName}
Status : ${status}
Completed at : ${workflow.complete}
Duration : ${workflow.duration}
Project directory : ${workflow.projectDir}
Output directory : ${workflow.projectDir}/${params.output}
Command : ${workflow.commandLine}
(line 105-line 111 in main.nf)
workflow.onComplete = {
println "Project output directory: ${workflow.projectDir}/${params.output}"
println "Pipeline completed at: $workflow.complete"
println "Pipeline completed time duration: $workflow.duration"
println "Command line: $workflow.commandLine"
println "Execution status: ${ workflow.success ? 'OK' : 'failed' }"
}
Is it possible for the workflow to generate an email containing reports, perhaps by using the
workflow.onCompletemodule or another email option available in Nextflow? My idea is to use the Nextflow script to generate the email body, then use thesendEmailfunction to send a pipeline summary to the lab. Alternatively, we could incorporate the contents from theworkflow.onCompletemodule. I believe this approach could effectively communicate the results of the pipeline execution. Thank you.Pipeline Execution Summary
Run name : ${workflow.runName}
Status : ${status}
Completed at : ${workflow.complete}
Duration : ${workflow.duration}
Project directory : ${workflow.projectDir}
Output directory : ${workflow.projectDir}/${params.output}
Command : ${workflow.commandLine}
(line 105-line 111 in main.nf)
workflow.onComplete = {
println "Project output directory: ${workflow.projectDir}/${params.output}"
println "Pipeline completed at: $workflow.complete"
println "Pipeline completed time duration: $workflow.duration"
println "Command line: $workflow.commandLine"
println "Execution status: ${ workflow.success ? 'OK' : 'failed' }"
}