Can I raise awareness of this BWA_INDEX issue here...
# modules
t
Can I raise awareness of this BWA_INDEX issue here? Is there a way to solve this case without touching the nf-core module?? https://github.com/nf-core/modules/issues/8720
j
Can you use the
saveAs:
function of the
publishDir
directive to rename the directory?
this 1
j
I just said something similar
meow yes 1
j
Copy code
publishDir = [
            path: { "${params.outdir}/bwa_indexes" },
            mode: params.publish_dir_mode,
            saveAs: { filename -> filename.equals('bwa') ? "${meta.id}_bwa_index" : null }
        ]
this 1
✅ 1
Hopefully this gets easier with the new publishing method, once it's finalised
m
I would go with just modifying the path as James described
j
Depends on the desired output schema - if you modify the path you get a directory with a directory inside it called
bwa
, if you set
saveAs
you rename
bwa
instead
m
true
t
thank you all for the pointers 🫶 I'll give it a try
worked like a charm. thanks! @Jim Downie