In the (future version of) <#C06TRU74N4D|pairgenom...
# modules
c
In the (future version of) #pairgenomealign, I have a module (
last/mafconvert
) that does some file format conversion, and I want it to not publish its files if one given parameter (
--cram
) is set (because I am going to post-process them in another module that will then publish its output, and they are big). Concretely, I am doing this:
Copy code
withname: 'LAST_MAFCONVERT' {
        if (params.cram) {
            publishDir = { publishDir + [ saveAs: null ] }
        }
    }
However, I still see the files being output. ChatGPT did not manage to help me, so I am asking here…
j
If you like using AI, the Seqera AI is probably better than ChatGPT
But you morel ikely need ot use a combination of the
enabled
and
saveAs
attribute: