Workflow Parameters
The workflow parameters should be included in a configuration file, an example of which can be found at https://raw.githubusercontent.com/mriffle/nf-ms-dda-casanovo/main/resources/pipeline.config
The parameters in this file should be changed to indicate the locations of your data, the options you’d like to use for the software included in the workflow, and the capabilities and configuration for the system on which you are running the workflow steps.
The configuration file is roughly organized as:
params {
...
}
profiles {
...
}
mail {
...
}
The
paramssection includes locations of data and configuration options for a specific run of the workflow.The
profilessections includes parameters that describe the capabilities of the systems that run the steps of the workflow. For example, if running on your local system, this will include things like how many cores and how much RAM may be used by the steps of the workflow. This will not need to be changed for each run of the workflow.The
mailsection includes configuration options for sending email. This is optional and only necessary if you wish to send emails when the workflow completes. This will not need to be changed for each run of the workflow.
Below is a complete description of all parameters that may be included in these sections.
Note
This workflow can process files stored in PanoramaWeb. When specifying directories or file locations, any paths that begin with https:// will be interpreted as being PanoramaWeb locations.
The exception to this is specifying casanovo_weights, where a GitHub URL may be used.
For example, to process a raw file stored in PanoramaWeb, you would have the following in your pipeline.config file:
spectra_file= 'https://panoramaweb.org/_webdav/path/to/@files/RawFiles/my_raw_file.raw'
Where, https://panoramaweb.org/_webdav/path/to/@files/RawFiles/my_raw_file.raw is the WebDav URL of the file on the Panorama server.
The params Section
Req? |
Parameter Name |
Description |
|---|---|---|
✓ |
|
The path to the location of a raw, mzML, or mzXML file to be processed. This can be a local file (e.g., |
|
The path to the location of the Casanovo params file to be used in the Casanovo search. This can be a local file (e.g., |
|
|
The path to the location of the Casanovo weights file to be used in the Casanovo search. This can be a local file (e.g., |
|
|
Set to |
|
|
Set to |
|
|
Set to |
|
|
This is required if |
|
|
This is required if |
|
|
This is required if |
|
|
This is required if |
|
|
Comma-delimited list of Limelight tags to use for this search (e.g., |
|
|
The email address to which a notification should be sent upon workflow completion. If no email is specified, no email will be sent. To send email, you must configure mail server settings (see below). |
The profiles Section
The example configuration file includes this profiles section:
profiles {
// "standard" is the profile used when the steps of the workflow are run
// locally on your computer. These parameters should be changed to match
// your system resources (that you are willing to devote to running
// workflow jobs).
standard {
params.max_memory = '8.GB'
params.max_cpus = 4
params.max_time = '240.h'
params.mzml_cache_directory = '/data/mass_spec/nextflow/nf-ms-dda-casanovo/mzml_cache'
params.panorama_cache_directory = '/data/mass_spec/nextflow/panorama/raw_cache'
}
}
These parameters describe the capability of your local computer for running the steps of the workflow. Below is a description of each parameter:
Req? |
Parameter Name |
Description |
|---|---|---|
✓ |
|
The maximum amount of RAM that may be used by steps of the workflow. Default: 8 gigabytes. |
✓ |
|
The number of cores that may be used by the workflow. Default: 4 cores. |
✓ |
|
The maximum amount of a time a step in the workflow may run before it is stopped and error generated. Default: 240 hours. |
✓ |
|
When |
✓ |
|
If the RAW files to be processed are in PanoramaWeb, the RAW files will be downloaded to and cached in this directory for future use. |
The mail Section
This is a more advanced and entirely optional set of parameters. When the workflow completes, it can optionally send an email to the address specified above in the params section.
For this to work, the following parameters must be changed to match the settings of your email server. You may need to contact your IT department to obtain the appropriate settings.
The example configuration file includes this mail section:
mail {
from = 'address@host.com'
smtp.host = 'smtp.host.com'
smtp.port = 587
smtp.user = 'smpt_user'
smtp.password = 'smtp_password'
smtp.auth = true
smtp.starttls.enable = true
smtp.starttls.required = false
mail.smtp.ssl.protocols = 'TLSv1.2'
}
Below is a description of each parameter:
Req? |
Parameter Name |
Description |
|---|---|---|
✓ |
|
The email address from which the email should be sent. |
✓ |
|
The internet address (host name or ip address) of the email SMTP server. |
✓ |
|
The port on the host to connect to. Most likely will be |
|
If authentication is required, this is the username. |
|
|
If authentication is required, this is the password. |
|
✓ |
|
Whether or not (true or false) authentication is required. |
✓ |
|
Whether or not to enable TLS support. |
✓ |
|
Whether or not TLS is required. |
✓ |
|
SSL protocol to use for sending SMTP messages. |