Skip to content

Use built-in params object #22

@PubuduSaneth

Description

@PubuduSaneth

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions