Júlia
10/11/2023, 11:15 AMvalidateParameters() or validateParameters('custom_nextflow_schema.json')
@Function
void validateParameters(
String schemaFilename = 'nextflow_schema.json'
) { ... }
Now we need to add optional named arguments, so we used a Map for that
@Function
void validateParameters(
Map options = null,
String schemaFilename
) { ... }
But when using this function without any arguments (validateParameters()) we see this error
ERROR ~ Could not find which method validateParameters() to invoke from this list:
public void nextflow.validation.SchemaValidator#validateParameters(java.lang.String)
public void nextflow.validation.SchemaValidator#validateParameters(java.util.Map, java.lang.String)
Is there a better way to code that?Nicolas Vannieuwkerke
10/11/2023, 11:21 AMschemaFilename as an option in the options map? since that parameter isn't mandatory for the execution of the function?Júlia
10/11/2023, 11:27 AMvalidateParameters('custom_nextflow_schema.json')
but you are right, maybe that’s our best optionNicolas Vannieuwkerke
10/11/2023, 11:28 AMNicolas Vannieuwkerke
10/11/2023, 11:29 AMNicolas Vannieuwkerke
10/11/2023, 11:32 AMsteve
10/11/2023, 12:47 PMsteve
10/11/2023, 12:48 PMcsv work and are configuredsteve
10/11/2023, 12:50 PMsteve
10/11/2023, 12:51 PMNicolas Vannieuwkerke
10/11/2023, 12:51 PMJúlia
10/11/2023, 1:24 PM