You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behaviour:
While the parameter provided on the command-line overrides the value of said parameter definition from the config file, any variable interpolation done in the config file will use the value as found in the config file instead of the cmdline provided value.
Steps to reproduce the problem
Define a nextflow.config file with the following content:
nextflow run -profile test variable-interpolation-test.nf --propertyOne There!
and witness that the propertyOne value defined as cmdline argument is not interpolated into anotherProp as it produced below output
Program output
May 09, 2024 3:39:38 PM com.google.auth.oauth2.DefaultCredentialsProvider warnAboutProblematicCredentials
WARNING: Your application has authenticated using end user credentials from Google Cloud SDK. We recommend that most server applications use service accounts instead. If your application continues to use end user credentials from Cloud SDK, you might receive a "quota exceeded" or "API not enabled" error. For more information about service accounts, see https://cloud.google.com/docs/authentication/.
N E X T F L O W ~ version 23.10.1
Launching `variable-interpolation-test.nf` [curious_mcclintock] DSL2 - revision: d61a249b4e
propertyOne: There!
anotherProp: Hello world
Environment
Nextflow version: 23.10.1
Java version: openjdk 17.0.10
Operating system: Linux (Ubuntu)
Bash version: GNU bash, version 5.0.17(1)-release
The text was updated successfully, but these errors were encountered:
mluypaert
added a commit
to alliance-genome/agr_pavi
that referenced
this issue
May 9, 2024
Bug report
Expected behavior and actual behavior
Expected behaviour:
When using variable interpolation in the nextflow.config file, I expect parameters provided on the command line to override the value of the respective variable in the config file (as per the documented source priority order), and interpolation in other parameters to use this command-line provided value.
Actual behaviour:
While the parameter provided on the command-line overrides the value of said parameter definition from the config file, any variable interpolation done in the config file will use the value as found in the config file instead of the cmdline provided value.
Steps to reproduce the problem
Define a
nextflow.config
file with the following content:Write a file called
variable-interpolation-test.nf
with the following content:Run the variable-interpolation-test.nf script:
and witness that the
propertyOne
value defined as cmdline argument is not interpolated intoanotherProp
as it produced below outputProgram output
Environment
The text was updated successfully, but these errors were encountered: