Code Monkey home page Code Monkey logo

hello-nextflow's Introduction

Hello World Pipeline

Nextflow Nextflow

A simple script showing the basic Hello World! example for the Nextflow pipeline.

Description

4 processes, each of them appends a line (in a different language) to a file consumed by the next process. At the end of the execution, the content of the final file is shown.

Execution

Clone the project and run:

nextflow run main.nf -profile local/sge 

or with pipeline sharing, just run:

nextflow run eipm/hello-nextflow 

Output

$ nextflow run eipm/hello-nextflow 
N E X T F L O W  ~  version 20.01.0
Pulling eipm/hello-nextflow ...
downloaded from https://github.com/eipm/hello-nextflow.git
Launching `eipm/hello-nextflow` [nauseous_austin] - revision: 83ede5f13c [master]
executor >  local (4)
[ad/53a790] process > sayHelloInItalian [100%] 1 of 1 ✔
[c0/0a38d8] process > sayHelloInFrench  [100%] 1 of 1 ✔
[2a/ffd88f] process > sayHelloInSpanish [100%] 1 of 1 ✔
[8a/2d40fc] process > sayHelloInEnglish [100%] 1 of 1 ✔
EIPM says:
Ciao world!
Bonjour world!
Hola world!
Hello world!

Azure Cloud

The pipeline can be executed on Azure Cloud.

First, edit nextflow.azure.config and add the batch/storage accounts' names and keys.

Then, install the latest Edge version of Nextflow with:

./install-nf-edge.sh

This will create the nextflow executable locally.

Finally, the pipeline can be launched as follows:

$ ./nextflow -C nextflow.azure.config run main-azure.nf 
N E X T F L O W  ~  version 21.04.0-edge
Launching `main-azure.nf` [shrivelled_gates] - revision: bf54e09e5d
executor >  azurebatch (4)
[5e/cfec18] process > sayHelloInItalian (1) [100%] 1 of 1 ✔
[57/e66ab9] process > sayHelloInFrench (1)  [100%] 1 of 1 ✔
[c8/92bf47] process > sayHelloInSpanish (1) [100%] 1 of 1 ✔
[38/c459e5] process > sayHelloInEnglish (1) [100%] 1 of 1 ✔
Nextflow says: DONE
Completed at: 13-Apr-2021 16:18:01
Duration    : 3m 25s
CPU hours   : (a few seconds)
Succeeded   : 4

DAG visualization

DAG

hello-nextflow's People

Contributors

manuelesimi avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.