Skip to main content
Many nf-core workflows use the nf-validation package to validate input parameters. To prevent workflows from failing at runtime due to invalid parameter values, the Latch SDK provides a way to use regex to validate inputs before the workflow is launched. Developers can easily add parameter validation to their workflows adding the rules field to the NextflowParameter that requires validation. For example:
In the example above, the fastq parameter is validated to ensure that the file path does not contain spaces. If the regex fails, the error message “File path cannot contain spaces.” is displayed to the user.