Skip to content

Generate run report and send as email to lab for review. #11

@yveuno

Description

@yveuno

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' }"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions