You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional logic - Some parameters may require additional logic. If this is the case it may make sense to perform this above where all of the parameters are logged. This will ensure that a useful value is printed for the user.
For example, for the overhang parameter if this is not set by the user it's default value will be false. However, a new variable overhang is calculated which is the read length - 1. It would be more useful for this value to be printed to users rather than the default value of false so this needs to be performed above the logging:
Optional parameters - Optional parameters can be set (or not) in the script of the relevant process
For example, here the value of the $slidingwindow variable will only be equal to SLIDINGWINDOW:4:15 if the user has set their slidingwindow parameter to true. Otherwise it will be equal to an empty string and slidingwindow will not be set
Params, or not params, that is the question - Make sure to use the correct variable. Sticking again with the example of overhang. Here it was useful to create a new overhang variable which can then be modified based on other input parameters. However, make sure to take care to use the correct variable i.e. overhang and not params.overhang later on in the script and specific process(es)
The text was updated successfully, but these errors were encountered:
Steps
nextflow.config
file with a default valuemain.nf
:helpMessage
log
process
script
docs/usage
Considerations
overhang
parameter if this is not set by the user it's default value will befalse
. However, a new variableoverhang
is calculated which is the read length - 1. It would be more useful for this value to be printed to users rather than the default value offalse
so this needs to be performed above the logging:$slidingwindow
variable will only be equal toSLIDINGWINDOW:4:15
if the user has set theirslidingwindow
parameter totrue
. Otherwise it will be equal to an empty string andslidingwindow
will not be setoverhang
. Here it was useful to create a newoverhang
variable which can then be modified based on other input parameters. However, make sure to take care to use the correct variable i.e.overhang
and notparams.overhang
later on in the script and specific process(es)The text was updated successfully, but these errors were encountered: