# How to pass parameters via Advanced option for the Nextflow config

**URL:** https://community.seqera.io/t/how-to-pass-parameters-via-advanced-option-for-the-nextflow-config/1556
**Category:** Ask for help
**Created:** [December 17, 2024, 1:00am UTC](https://community.seqera.io/t/how-to-pass-parameters-via-advanced-option-for-the-nextflow-config/1556 "2024-12-17T01:00:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![joshamilton](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/joshamilton/32/1309_2.png) [@joshamilton](https://community.seqera.io/u/joshamilton)
#### Post date: [December 17, 2024, 1:00am UTC](https://community.seqera.io/t/how-to-pass-parameters-via-advanced-option-for-the-nextflow-config/1556/1 "2024-12-17T01:00:51Z")

</div>

I am trying to run the Oxford Nanopore [epi2me/wf-basecalling](https://github.com/epi2me-labs/wf-basecalling) pipeline using Seqera Platform and AWS Batch.  
The [nextflow.config](https://github.com/epi2me-labs/wf-basecalling/blob/fff41c767a39867a9858716026bcf9a0e86a89aa/nextflow.config) includes [base.config](https://github.com/epi2me-labs/wf-basecalling/blob/fff41c767a39867a9858716026bcf9a0e86a89aa/base.config), which specifies these parameters when using AWS Batch:

```auto
    awsbatch {
        process {
            executor = 'awsbatch'
            queue = "${params.aws_queue}"
            memory = "16 GB" // likely not enough!
            withLabel:wf_common {
                container = "${params.aws_image_prefix}-wf-common:${params.wf.common_sha}"
            }
            shell = ['/bin/bash', '-euo', 'pipefail']
            
            // lift limit on simultaneous gpu jobs for cloud
            // and ensure that the host mounts relevant driver bobbins inside the container
            withLabel:gpu {
                maxForks = null
                containerOptions = "-e NVIDIA_DRIVER_CAPABILITIES=compute,utility --gpus all"
            }
            withLabel:wf_basecalling {
                container = "${params.aws_image_prefix}-dorado:${params.wf.container_sha_basecalling}"
            }
            withLabel:wf_bonito {
                container = "${params.aws_image_prefix}-bonito:${params.wf.bonito_sha}"
            }
        }
    }

```

The parameter aws\_image\_prefix is set to ‘null’ in nextflow.config

So within Seqera Platform, I specified this advanced option for the Nextflow config file:

```auto
params {
           aws_image_prefix = 'ontresearch'
}

```

However, this does not appear to work. The resolved configuration in Seqera Platform shows:

```auto
aws_image_prefix = '[secret]'

```

And the pipeline fails with

```auto
Error executing process > 'prepare_reference:cram_cache (1)'

Caused by:
  Invalid container image name: [:]-wf-common:shabadd33adae761be6f2d59c6ecfb44b19cf472cfc

```

which suggests that the aws\_image\_prefix parameter isn’t being properly set.

How do I properly pass parameters to override default values in nextflow.config?
