I'm updating the `bbmap/bbnorm` module which has b...
# modules
d
I'm updating the
bbmap/bbnorm
module which has been converted to wave. Earlier, it was using a mulled container. What should I do to update one of the tools in the container? The conda and conatiner lines of the module now looks like:
Copy code
conda "${moduleDir}/environment.yml"
    container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
        'oras://community.wave.seqera.io/library/bbmap_samtools_pigz:2a066f0214cc5eb0' :
        'community.wave.seqera.io/library/bbmap_samtools_pigz:79703e935236b43b' }"
bbmap_samtools_pigz
was our name of the mulled container. And I've updated the
environment.yml
to:
Copy code
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json
channels:
  - conda-forge
  - bioconda
dependencies:
  - bioconda::bbmap=39.18
  - pigz=2.8
(The update was
39.17
to
39.18
.) Wave is supposed to build containers for us, right? Is it relying on the
environment.yml
? Should I replace the two container urls somehow to trigger an automatic build of a new container?
m
You can update the
environment.yaml
file and then feed that to the
wave-cli
to generate a new container
the resulting url can be pasted in the module
d
Just to confirm I did things correctly, I ran the below two
wave
commands and pasted the resulting two urls in
main.nf
.
Copy code
wave --conda-file modules/nf-core/bbmap/bbnorm/environment.yml
wave --freeze --singularity --conda-file modules/nf-core/bbmap/bbnorm/environment.yml
m
Yes to the first, not sure about the second. Used to be there was some magic involved to get the correct singularity image. No idea how far that’s evolved
d
Right, I'll just test both of them and see, thanks!
m
All I remember is you should use the https url instead of the
oras
one
d
I see. I had an
oras
url before updating (done by someone else) and got only an
oras
from the command. I'll see how it goes.
m
There’s a step by step manual somewhere on this slack, but I can’t seem to find it immediatly
d
The
oras
didn't work, nor did just naively replacing
oras
with
https
.
m
d
Thanks, the script did it! 🙂