Pieter Moris
08/06/2024, 6:36 PMnextflow run nf-core/rnaseq -profile test,vsc_calcua,skylake_local --outdir test_output). I get the following error message: ERROR ~ Unknown config attribute host. host is a local parameter defined in the config (https://github.com/nf-core/configs/blob/2842f014f342f177ad9417b284262bfa630261e3/conf/vsc_calcua.config#L13). Did anything change with regards to I'd contact the authors for help, but that'd be me š„² I've verified that removing all lines that reference host makes the config work again, but I haven't figured out why it suddenly started causing issues.Simon Pearce
08/06/2024, 7:40 PM-c rather than -profile?
What if you remove the def from the def host = System.getenv("VSC_INSTITUTE") line?Pieter Moris
08/07/2024, 6:13 AM--custom_config_base pointing to a full clone of the nf-core/configs repo, rather than -c to a single file, but yep. Also, in case that wasn't clear from the start, I'm quite sure this config did work properly in the past...
Anyway, what I've tried so far:
⢠removing all lines containing host works
⢠using an older version of nextflow doesn't work
⢠defining def host, but not using the host variable at any later point works
⢠changing references to $host doesn't work
⢠removing def from the assignment line works! (your suggestion)
But why and why now though? š¤
I use a def in other places in the config too...and I borrowed the idea from another config even.Pieter Moris
08/07/2024, 7:45 AMhost check from either of your UGent/KUL configs.Nicolas Vannieuwkerke
08/07/2024, 7:58 AMPieter Moris
08/07/2024, 8:02 AMAug-07 10:00:00.139 [main] DEBUG nextflow.config.ConfigBuilder - In the following config snippet the attribute `host` is empty:
//
//
//
Aug-07 10:00:00.143 [main] ERROR nextflow.cli.Launcher - Unknown config attribute `host` -- check config file: /user/antwerpen/203/vsc20380/.nextflow/assets/nf-core/rnaseq/nextflow.config
nextflow.exception.ConfigParseException: Unknown config attribute `host` -- check config file: /user/antwerpen/203/vsc20380/.nextflow/assets/nf-core/rnaseq/nextflow.config
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at nextflow.config.ConfigBuilder.validate(ConfigBuilder.groovy:465)
at nextflow.config.ConfigBuilder.validate(ConfigBuilder.groovy:452)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at nextflow.config.ConfigBuilder.merge0(ConfigBuilder.groovy:426)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at nextflow.config.ConfigBuilder.buildConfig0(ConfigBuilder.groovy:375)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at nextflow.config.ConfigBuilder.buildGivenFiles(ConfigBuilder.groovy:320)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at nextflow.config.ConfigBuilder.buildConfigObject(ConfigBuilder.groovy:814)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
at nextflow.config.ConfigBuilder.build(ConfigBuilder.groovy:827)
at nextflow.cli.CmdRun.run(CmdRun.groovy:328)
at nextflow.cli.Launcher.run(Launcher.groovy:503)
at nextflow.cli.Launcher.main(Launcher.groovy:657)Pieter Moris
08/07/2024, 8:05 AMPieter Moris
08/07/2024, 8:07 AMhostname = ... rather than def hostname, but it does use def elsewhere (e.g., def hostname = "doduo").
Would anyone know what the difference is between defining variables with or without def in config files? Global vs local variables?Nicolas Vannieuwkerke
08/07/2024, 8:09 AMNicolas Vannieuwkerke
08/07/2024, 8:10 AMPieter Moris
08/07/2024, 8:10 AMNicolas Vannieuwkerke
08/07/2024, 8:11 AMPieter Moris
08/07/2024, 8:11 AMPieter Moris
08/07/2024, 8:11 AMNicolas Vannieuwkerke
08/07/2024, 8:12 AMNicolas Vannieuwkerke
08/07/2024, 8:14 AMPieter Moris
08/07/2024, 8:14 AMNicolas Vannieuwkerke
08/07/2024, 8:14 AMhost is not defined in that functionNicolas Vannieuwkerke
08/07/2024, 8:14 AMPieter Moris
08/07/2024, 8:16 AMdef x = value in the main body of the file, it will only be accessible in other top level sections, but not inside functions.
⢠If I use x = value, it will also be accessible inside functions?Nicolas Vannieuwkerke
08/07/2024, 8:16 AMdef to prevent weird issues šPieter Moris
08/07/2024, 8:18 AMNicolas Vannieuwkerke
08/07/2024, 8:21 AMPieter Moris
08/07/2024, 11:49 AMAPPTAINER_TMPDIR and APPTAINER_CACHEDIR in the ugent config are being ignored. Based on some tests I've run and this warning in the docs.
I've resorted to only setting the NXF_APPTAINER_CACHEDIR if it's missing (via singularity.cacheDir) and just showing warnings for the others (since I can't figure out how to override them inside the config).Nicolas Vannieuwkerke
08/07/2024, 12:01 PMenv only sets the env variables for processesPieter Moris
08/07/2024, 12:05 PMNicolas Vannieuwkerke
08/07/2024, 12:07 PM