mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-22 08:29:54 +00:00
18 lines
672 B
Text
18 lines
672 B
Text
params{
|
|
config_profile_description = 'Boehringer Ingelheim internal profile provided by nf-core/configs.'
|
|
config_profile_contact = 'Alexander Peltzer (@apeltzer)'
|
|
config_profile_url = 'https://www.boehringer-ingelheim.com/'
|
|
}
|
|
params.globalConfig = determine_global_config()
|
|
|
|
includeConfig params.globalConfig
|
|
|
|
def determine_global_config() {
|
|
if( System.getenv('NXF_GLOBAL_CONFIG') == null)
|
|
{
|
|
def errorMessage = "ERROR: Environment variable NXF_GLOBAL_CONFIG is missing. Set it to point to global.config file."
|
|
System.err.println(errorMessage)
|
|
throw new Exception(errorMessage)
|
|
}
|
|
return System.getenv('NXF_GLOBAL_CONFIG')
|
|
}
|