Giter Site home page Giter Site logo

nextflow-extmodules-example's Introduction

External import example

This pipeline has an import coming from a different repository.

Usage

Nothing special, the pipeline runs as expected:

$ nextflow run wbazant/nextflow-extmodules-example
N E X T F L O W  ~  version 21.04.1
Pulling wbazant/nextflow-extmodules-example ...
Launching `wbazant/nextflow-extmodules-example` [amazing_ride] - revision: 9aa97c443a [master]
executor >  local (1)
[5f/17c761] process > sayHello [100%] 1 of 1 โœ”
Hej world!

Tested with nextflow version 21.04.1.5556.

Adding an import as a submodule

mkdir extmodules
cd extmodules
git submodule add [email protected]:wbazant/nextflow-hello-dsl2.git

Taken from this doc.

Mixing with DSL1?

The above script imports a DSL2 extmodule into a DSL2 main.

You can't import something into a DSL1 main, this will happen:

N E X T F L O W  ~  version 21.04.1
Launching `main.nf` [focused_coulomb] - revision: a843258a57
Module feature not enabled -- Set `nextflow.enable.dsl=2` to import module files

You also can't import a DSL1 extmodule, this will happen:

N E X T F L O W  ~  version 21.04.1
Launching `main.nf` [angry_bernard] - revision: 45cc8ee345
Process clause `from` should not be provided when using DSL 2

 -- Check script './extmodules/hello/main.nf' at line: 8 or see '.nextflow.log' file for more details

nextflow-extmodules-example's People

Contributors

wbazant avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.