Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Repository files navigation

nf-modules

Prerequisites

  • nf-core tools: module load cellgen/nf-core/3.3.2

Usage

List all modules

This will show all all the modules available in the repository.

nf-core modules -g https://github.com/cellgeni/nf-modules.git list remote

List all subworkflows

This will show all the subworkflows available in the repository.

nf-core subworkflows -g https://github.com/cellgeni/nf-modules.git list remote

Install a subworkflow

This will install a subworkflow, along with the used modules, from the repository. so, you shouldn't manually install modules from the repository unless is not used in a subworkflow.

nf-core subworkflows -g https://github.com/cellgeni/nf-modules.git install <subworkflow_name>

Install a module

If the module is not used in a subworkflow, you can install it directly from the repository.

nf-core modules -g https://github.com/cellgeni/nf-modules.git install <module_name>

List installed modules

This will show all the modules installed in your local repository.

nf-core modules -g https://github.com/cellgeni/nf-modules.git list local

Remove a module

If you want to remove a module, you can do it with the following command:

nf-core modules -g https://github.com/cellgeni/nf-modules.git remove <module_name>

List all installed subworkflows

This will show all the subworkflows installed in your local repository.

nf-core subworkflows -g https://github.com/cellgeni/nf-modules.git list local

Remove a subworkflow

If you want to remove a subworkflow, you can do it with the following command:

nf-core subworkflows -g https://github.com/cellgeni/nf-modules.git remove <subworkflow_name>

Annotating modules with operations

Modules can declare what they do with an optional top-level operations list in meta.yml. Values are operation ids from the bioimage-task-vocabulary (op:<id>), listed in the order the module performs them.

keywords:
  - segmentation
operations:
  - "op:crop"      # read the tile given by x_min/x_max/y_min/y_max
  - "op:detect"    # Image -> instance Label
  - "op:vectorize" # instance Label -> outlines (WKT)
  • Use only ids defined in vocabulary/operations.yaml; the module catalog warns about unknown ids and lets you filter modules by operation.
  • List every operation the module performs on the data, including secondary ones such as op:crop for a tile given by x_min/x_max/y_min/y_max. Do not list incidental steps such as writing versions.yml or staging files.
  • List operations that run by default or that a declared module input switches on (for example flatfield maps passed as an input). Do not list steps that only a tool flag in ext.args enables.
  • Leave the field out when no operation fits. That gap is worth raising in the vocabulary repository.
  • The field is not part of the nf-core meta schema. That schema does not set additionalProperties: false, so the extra key passes schema validation. nf-core modules lint --fix keeps unknown keys but moves them to the end of meta.yml.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages