nf-core / nf-core/stats

Dependencies containerized

Open
#85 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

regulatory
Dominant language
Python
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Description

How to get containers used by nf-core pipelines

(nextflow version 24.10.4.5934)

Option 1: Nextflow inspect

Documentation:
Bytesize: Explaining Wave containers (Minute 22+)
https://www.nextflow.io/docs/latest/reference/cli.html

Nextflow inspect provides an overview of processes, but it seems to required “dummy” input/outout definitions (Could this be solved in new version).

Here an example:
nextflow inspect nf-core/sarek -profile test,singularity --outdir dummy

Output is json and can easily be parsed, e.g., via python or jq.

Limitations/Questions:
  1. Only containers of processes executed with the corresponding “run” command are included.
  2. Requires running nextflow.
Option 2: Parse from github repo files

Each nf-core pipeline repo has a modules folder and each (?) module should contain a container line showing the information on container used.

Here is how it looks:

    conda "${moduleDir}/environment.yml"
    container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
        'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/63/6397750e9730a3fbcc5b4c43f14bd141c64c723fd7dad80e47921a68a7c3cd21/data':
        'community.wave.seqera.io/library/bedtools_coreutils:a623c13f66d5262b' }"

Parsing via grep should be no problem.

Limitations/Questions:
  1. Does this cover all container used?
  2. Would this be possible without download the repo first.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing Nextflow inspect output for the example nf-core/sarek command with container declarations in the pipeline's modules folder. Determine whether the modules cover all containers and whether extraction can work without downloading the repository; done should document the supported approach and its limitations.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.