Skip to content

New RFC: use process directives to declare prefix, args and when defaults #86

@nvnieuwk

Description

@nvnieuwk

Have you read the RFC docs?

  • Yes, I have read and understood the RFC docs

Summary

Currently modules declare their prefix and args as defaults inside of the script: and stub: block which creates code duplication. Having the defaults as directives will deduplicate this code and make sure that stub and script blocks have the same defaults.

Champion

@nvnieuwk

Background & Motivation

I made a POC PR some time ago and am trying to get this through via an RFC.

Goals

  • Reduce code duplication in processes
  • Use more Nextflow native ways of handling ext directive defaults
  • Update nf-core/tools linting to fail on when the old syntax is being used so the migration will happen progressively

Non-Goals

  • Break modules, this change shouldn't have any effect on the current way we use modules

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions