NextFlow scripts use the built-in params object that automatically maps the keys in YAML file to variables under the params scope.
Using this will avoid the need for the current implementation: JsonProcessor.processInputJson(params.genome_json)
Built-in params object:
// main.nf
workflow {
log.info "Processing project: ${params.project_name}"
log.info "Input file path: ${params.input_path}"
}
# params.yaml
project_name: "Minimal_Demo"
input_path: "/data/samples/test_file.fastq"
nextflow run main.nf -params-file params.yaml
NextFlow scripts use the built-in
paramsobject that automatically maps the keys in YAML file to variables under theparamsscope.Using this will avoid the need for the current implementation:
JsonProcessor.processInputJson(params.genome_json)Built-in
paramsobject: