I would like to take up apptainer for containers, ...
# nostupidquestions
n
I would like to take up apptainer for containers, and I would like to use
libraryDir
to share images. Is there some way to easily populate that library to provide images for some commonly used nf-core pipelines?
I currently have this bash monstrosity, for biocontainers, but maybe there is a way that I do not have to come up with something equally horrible for
community.wave.seqera.io
:
Copy code
#!/bin/bash
grep "'biocontainers.*'" ~/.nextflow/assets/nf-core* -Roh \
    | sed "s/'//g" \
    | sort \
    | uniq \
    | sed 's@biocontainers@docker://quay.io/biocontainers@1'  \
    | xargs -I % echo apptainer pull % % \
    | sed 's@docker://quay.io/biocontainers/@quay.io-biocontainers-@1' \
    | sed 's@:@-@1' \
    | sed 's@ docker@\.img docker@' \
    | bash
m
see
nextflow inspect
👀 1
and maybe combine it with
nf-core pipelines list --sort stars
and
nf-core p download
(which uses nextflow inspect)
n
Thanks
Did you know that
nextflow inspect
does not seem to work for all nf-core pipelines (?):
Copy code
$ nextflow inspect -format 'config' nf-core/atacseq
ERROR ~ ERROR: Validation of pipeline parameters failed!


The following invalid input values have been detected:

* Missing required parameter: --input
* Missing required parameter: --outdir
m
i think it depends on the nextflow version (25.10.0 might make problems), but atacseq is also not too up-to-date unfortunately
n
I see, okay
a
Older
inspect
needed to actually compile the nextflow code so you had to pass all the necessary params. Newer
inspect
does not do this, but that gives it the significant downside (imo) of not being able to accurately determine dynamically assigned containers. Also has some issues with containers set using certain
withName
selectors. See this related issue I made with more details on the behaviour changes.