Struggling with something if anyone has any insigh...
# meta-omics
j
Struggling with something if anyone has any insights. Need to apply a specific
ext.args
for a process inside my test profile, but it doesn't seem to work - it just uses the ext.args specified in
modules.conf
?
Copy code
process {
    resourceLimits = [
        cpus: 4,
        memory: '15.GB',
        time: '1.h'
    ]

    withName: GTDBTK_CLASSIFYWF {
        ext.args   = "--extension gz -f"
    }
}
s
is the above the test config or modules.config ?
j
test.config
s
so in the test specific config it should be
Copy code
process {
    withName: BISMARK_ALIGN {
        ext.args = params.bismark_args
    }
}
and in the test when block
Copy code
test("bowtie2 | single-end | sarscov2 genome [fasta]") {

        when {
            params {
                bismark_args = '--bowtie2'
            }
            process {
                """
j
Ahh!
Actually, will the test config with params.bismark_args not still get overwritten by modules.config as that's read later?
s
i think nf-test appends these configs....u can check the mock folder for how nf-test runs....give it a try
👍 1
j
Oh wait, you mean a test-specific config as-in a config inside
tests/
Not the
conf/test.config
file
s
correct
👍 1
j
I maybe like that solution more... I don't really want to create extra parameters unnecessarily