-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add copyFiles pipeline #968
base: release/mvp
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is fine, baring the comments, but not too useful at the moment.
I am approving, but we need some sort of DC, even a dummy, before I want to include it in pipelines. I am not sure how you want to do that with a full directory sync, as opposed to single files.
I thought something like this:
process InitialDatacheck {
label 'mem2GB_DM'
input:
path initial_file
output:
path initial_file
script:
"""
echo "Running datacheck on initial file ${initial_file}"
ensembl-datacheck --file ${initial_file} --test=${params.file_type}
"""
}
But that can come later, if need be.
nextflow/config/filescopy.config
Outdated
@@ -0,0 +1,11 @@ | |||
includeConfig './base.config' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the slurm configuration from production.config
} | ||
|
||
// Function to build and send email | ||
def sendPipelineStatusEmail(String pipelineName, String status, String recipient) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we simplify this by using the built-in Nextflow workflow notification report with -N
? e.g. https://www.nextflow.io/docs/latest/notifications.html#workflow-notification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why I though of creating a custom email is because -N
doesn't mention the source and destination locations.
But if it's not needed, we can use -N
feature as you suggested
Co-authored-by: Daniel Poppleton <[email protected]>
Co-authored-by: Daniel Poppleton <[email protected]>
JIRA Ticket
https://www.ebi.ac.uk/panda/jira/browse/EA-1276
Description
This pipeline copies files from a source directory to a destination using
rsync
. It optionally sends email notifications on completion or failure.Use case & Benefits
With this pipeline, we will be able to automatically copy files from one directory to another
Features
rsync
to copy files from the specified source to the destination..vcf
).send_email
flag.Testing
I tested the pipeline locally and it's working as expected