It would be great if name (workflow name) and could be added as valid variables in the authormanifest scope.
Additionally, if non-standard variable names in the scope could trigger an error that would be helpful.
Thanks!
Phil
The author should be already there!
You’re right! My apologies.
Additionally, if non-standard variable names in the scope could trigger an error that would be helpful.
Hm, if I add a variable that is not part of the controlled vocabulary of the manifest, Nextflow already throws an error. I.e. when I add age = '27' to the manifest scope, and try to access it in the main.nf with workflow.manifest.age, I get:
ERROR ~ No such variable: age
@ewels could you explain me, what you meant? Maybe I did not get the issue properly.
Sven
True, trying to access it throws an error. I more meant to throw an error if you try to just define it.
A warning message would be even better.
On Sun, Sep 30, 2018, 14:17 Phil Ewels notifications@github.com wrote:
True, trying to access it throws an error. I more meant to throw an error
if you try to just define it.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nextflow-io/nextflow/issues/871#issuecomment-425716847,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAx3SK0upNUx9Afsl2mV7ansi1tJ-Kd8ks5ugLZugaJpZM4W9DhZ
.
My current code would produce something like this: (dont know, why the warning messages are repeated though)
WARN: 'age' is not a valid manifest field!
WARN: 'pipelineVersion' is not a valid manifest field!
Launching `../hlatyping-workflow/main.nf` [elated_allen] - revision: 61c759c958
WARN: 'age' is not a valid manifest field!
WARN: 'pipelineVersion' is not a valid manifest field!
WARN: The config file defines settings for an unknown process: fastqc
WARN: 'age' is not a valid manifest field!
WARN: 'pipelineVersion' is not a valid manifest field!
WARN: Access to undefined parameter `reads` -- Initialise it to a default value eg. `params.reads = some_value`
=========================================
WARN: Access to undefined parameter `version` -- Initialise it to a default value eg. `params.version = some_value`
nf-core/hlatyping vnull
=========================================
ERROR ~ No such variable: age
-- Check script 'main.nf' at line: 109 or see '.nextflow.log' file for more details
Is the warning for the same field showed multiple times?
yes, and i dont know why honestly
A patch is available in the latest snapshot 0.32.1-SNAPSHOT.
Released with version 18.10.1.
Most helpful comment
A patch is available in the latest snapshot
0.32.1-SNAPSHOT.