Hadrien Gourlé
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Nextflow ### keywords - portability - scalability - reproducibility - containerisation Golden rules of repro use github use nexftlow :blush: isolate the pipeline using docker small dataset to test unit testing with a CI Future: allows creating a workflow using other workflows challenging to implement improving cloud support (azure, google, openstack) optimize remote storage *caching* kubernetes cloud agnostic container clusterig and management https://kubernetes.io ## Phil Ewels - Nextflow at SciLifeLab > Slides online >[here](https://www.slideshare.net/tallphil/standardising-swedish-genomics-analyses-using-nextflow/1)<. To tackle 1x human genome eq every 4 minutes, need scaling and be strong on automation. ### basic bioinformatics services initial data analysis for major protocols (QC) want to be automated, reliable, easy for others to run + reproducible NGI is ISO17025 certified Team of 10 bioinformaticians Mature pipelines: * Cancer Analysis Workflow * NGI-RNAseq In testing: * NGI-Methyl * NGI-smRNAseq * NGI-ChipSeq * and more! * sharing is caring, put your stuff on github! * Use continous integration, e.g. Travis * Use versioned releases ### Config files build multiple small config files around small blocks of functions. Allows to setup different profiles more easily! example: ![](https://i.imgur.com/47EV9ig.jpg) Code snippets: 1. [`check_max` function](https://github.com/SciLifeLab/NGI-RNAseq/blob/master/nextflow.config#L70-L86) 2. [base config file](https://github.com/SciLifeLab/NGI-RNAseq/blob/master/conf/base.config) 3. [Overwrite the limits](https://github.com/SciLifeLab/NGI-RNAseq/blob/master/conf/uppmax-devel.config#L21-L26) --- Recommends illumina iGenomes as resource for reference genomes [ftp link to iGenomes](ftp://igenome:G3nom3s4u@ussd-ftp.illumina.com) [link to AWS bucket](https://ewels.github.io/AWS-iGenomes/) ### Gotchas #### Dodgy file patterns, e.g. PE vs SE (try to be explicit) ```groovy params.singleEnd = false Channel .fromFilePairs( params.reads, size: params.singleEnd ? 1 : 2 ) ``` The wrong way to do it was with `params.singleEnd = -1` (which treats paired-end files as single-end if glob pattern doesn't use proper `{1,2}` tags), #### Overwriting params Cannot overwrite existing params (e.g. `params.xyz`) Create and overwrite variable instead ### MultiQC [MultiQC](http://multiqc.info) is nice to have a html report with stats at the end of a workflow. See an [example process](https://github.com/SciLifeLab/NGI-RNAseq/blob/master/main.nf#L1040-L1075). Has [special process](https://github.com/SciLifeLab/NGI-MethylSeq/blob/master/bismark.nf#L477-L503) to dump tool versions, [aggregated into yaml](https://github.com/SciLifeLab/NGI-MethylSeq/blob/master/bin/scrape_software_versions.py) file and [picked up](http://multiqc.info/docs/#custom-content) by MultiQC. ### Email notifications Default is to use `mail` in `workflow.onComplete` (see [docs](https://www.nextflow.io/docs/latest/metadata.html#notification-message)). Phil has html equivalent - see [code](https://github.com/SciLifeLab/NGI-MethylSeq/blob/master/bismark.nf#L541-L625). Which is also a hackathon project to make the HTML emails even nicer (and easier). ### Use Groovy syntax highlighting Bugs easier spotted, e.g. in github pull requests using .gitattributes: ``` *.nf linguist-language=Groovy *.config linguist-language=Groovy ``` _Note from Phil: This fixes the "code type" bar at the top of the main GitHub page too. It didn't use to affect syntax highlightnig, but maybe it does now..?_ In file headers, using vim syntax higlighting: ```groovy /* vim: syntax=groovy -*- mode: groovy;-*- */ ``` ### Saving intermediates if special parameter is set, the output is stored in a special directory for intermediate results (e.g. different analysis parts/workflows picking up from main workflow) ### future work * use singularity for everything * Benchmark AWS run pricing * Refine pipelines ### Links * http://opensource.scilifelab.se/ * https://github.com/scilifelab #### NGI pipelines * [NGI-RNAseq](https://github.com/SciLifeLab/NGI-RNAseq) * [CAW](http://github.com/SciLifeLab/CAW) _(Cancer Analysis Workflow)_ * [NGI-MethylSeq](https://github.com/SciLifeLab/NGI-MethylSeq) * [NGI-ChIPseq](https://github.com/SciLifeLab/NGI-ChIPseq) * [NGI-smRNAseq](https://github.com/SciLifeLab/NGI-smRNAseq) --- ## Scott Hazelhurst - Building pipelines to support African Bioinformatics * 8 collaborative centres, 13 research projects, Biorepositories, Pan-African Bioinformatics Network for H3Africa * [AWI Gen](https://www.wits.ac.za/research/sbimb/research/awi-gen/): Genetic & environmental factors in cardio-metabolic disorders in afrcan populations - hub at Witswatersrand * Within H3ABionet, more than 20 different workflows some constraints for workflows to work in a diverse environment (basically the African continent) - needs to work on laptop and hpc - ### Exploring different workflows * Four workflows, two different systems (Nextflow and CWL) * Nextflow for GWAS analysis, CWL for NGS / 16S analysis parts at H3ABionet * More a language specification rather than a tool - several tool support it * [cwtool](https://github.com/common-workflow-language/cwltool) (reference implementaion) * Docker support, parallelism, language based on YAML experimental converter nf <--> cwl: [link](https://github.com/nextflow-io/cwl2nxf) H3Abionet pipelines [here](https://github.com/h3abionet) ## Evan Floden: Inside-Out DBs & modules with nextflow ### reproducibility Problem: different OSes different p values, different genome annotation Solution: containers! ### Data lives in databases * Figshare, Dryad, NCBI, zenodo, ENA, SRA * secure data integration, using local SRA caches and enabling fast downloads via aspera for cases where the * flow: prefetch, validate and fastq-dumpe * Prefetching with special docker container containing aspera client / directly adjustable to use e.g. a private user to access nonpublic data at the SRA ncbi [github org](https://github.com/ncbi) nextflow implementation of the [tuxedo pipeline](http://www.nature.com/nprot/journal/v11/n9/full/nprot.2016.095.html): [link](https://github.com/skptic/tuxedo-nf) including pulling of original data from SRA ### Software registries * https://bio.tools * https://omictools.com/ * http://biocontainers.pro * Galaxy toolshed ### nextflow modules (experimental) A module "mapping" would allow you to select which mapper you want (a "component") and to "swap" one tool for another * [module demo](https://github.com/skptic/nf-module-demo) ### Sevenbridges Idea: Converting workflows published as Public Apps into Nextflow lite version ## Tim Dudgeon: Nextflow for chemistry ### OpenRiskNet horizon 2020 funded, aims at standardise ways to access chemical data and workflows ### Squonk computational notebook, browser based [link](https://squonk.it) focused on cheminformatics at the moment InformaticsMatter [pipelines](https://github.com/InformaticsMatters/pipelines) ## Luca Cozzuto: From Zero to Nextflow > _"In Bioinformatics nothing is standardised"_ custom scripts, magic one-liners, ... as a core facility, not easy to optimize time spent by project nextflow allowed them to: * automate and parallelize * adding steps in their pipelines in a painless manner * keep being a multi-programming language core facility ## [Allessia Visconti](https://github.com/alesssia): Simplifying shotgun metagenomic analysis with Nextflow 1300 samples 22M reads per sample Workflow? at first (lots of) batch files, was a "disaster" Then dedicated informatics resources for their workflow: https://github.com/alesssia/MAP Then switched to nextflow :tada: [pipeline link](https://github.com/alesssia/YAMP) ## [Matthieu Foll](https://twitter.com/m_foll) - Computational workflows for cancer analysis at the IARC / France > Slides online >[here](https://www.slideshare.net/MatthieuFoll/computational-workflows-for-omics-analyses-at-the-iarc)<. * mostly high throughput sequencing and array dat (genetics, transcriptomics, epigenetics) * starts with description what workflows should look like ### Our philosophy * Do it once, do it right and use it everywhere * keep it simple, stupid (KISS principle) * most systems work best if they are kept simple * simplicity should be a key goal in design * code easier to maintain and to understand ### Our design * Too much automation is not for us * Hard to read, to maintain and to keep modular, we prefer to have one alignment pipeline, one variant claling pipeline,one annotation pipeline, one qc pipeline * One Pipeline = One github repo * Docker + Singularity containers * CircleCI for tests and deployment * Standardised readme, params, help etc * Ise GitHub issues and releases * Master branch <- beta branch <- dev branch * [One central repo](https://github.com/IARCbioinfo/IARC-nf) references all nextflow pipelines IARC-nf * List pipelines with a short description * Have a hello-world template for new pipelines ready there * One pipeline = one repo, ends always with "-nf" * Common instructions to use the pipelines (install nextflow, configuration, basic usage, docker) * Dagre created graph of pipeline, showing how the pipeline looks like (automatically produced by CircleCI) ### Challenges * Unix pipes * CWL / Wdl - do we need this? ### What we love * Integration with GithUb * Running any pipeline on any machine in <5 Minutes * Cluster compatibility is great * Separate th epipeline definition from the execution aspects * History, log, trace, timeline * Resume a pipeline * Docker and Singularity * The Gitter Chat for help (!) ### What we hate * The learning curve * When we think we have to guess the syntax * Debugging * Syncing channels for multiple inputs * Creating sets/lists/channels to have multiple inputs in a process * Dealing with optional steps in a pipeline * Large "work" directories * Ending up with several logs and trace files in a directory * Copy/Pasting processes in different pipelines ### What we would love * Deleting large intermediate files as soon as they are no longer needed * Importing processes * Automatically generating usage from params * Splitting bed files with a splitBed operator * A nice html report, an email, WebUI fo rmonitoring * nextflow available in the clouds we want to use ## [Hugues Fontenelle](https://twitter.com/hugues_f?lang=en): Medical Genetics at Oslo University Hospital * Application of NF pipelines in clinical medicine (Does this patient has X disease?) * Web UI (Flask - python) for the log and the execution (not suitable for a wide general implementation) * Importance of security in the data transfer and not possible to work with docker %missed this part unfortunately ## [Frédéric Lemoine](https://github.com/fredericlemoine): Institut Pasteur * Bootsrap in phylogenetics. Transfer Bootstrap Expectation (TBE) - stability measure [0,1] per branch ### Workflows * Automatically reporting from the pipeline (using plots) * Choice implementation in nextflow useful when depending on the size of the data you need one or another path. * For the simulated data the pipeline is the same just with a changed first step to simulate the data (? need for modules) * Available in github [NF pipelines](https://github.com/evolbioinfo/booster-workflows) ## Johnny Wu: Workflow efforts within Roche sequencing * Collaborative development and optimization of components within workflow across sites * Support product development/optimization * Usability for assay team ### Integration into nextflow * Framework needs to be updated to enable running in two different modes: * Local node * SGE cluster * Research site * Transfer of components, dependencies and workflow acros sites ## Mike Smoot - [Synthetic genomics](https://www.syntheticgenomics.com) * Science (non) fiction! Algaea biofuel Pig to human transplant ... * Basic Cluster architecture: Celery queue, Cluster master node: celery worker, NextFlow Internal DAG, Slurm * NextFlow submission microservice: an HTTP POST endpoint for submitting NF jobs, poster json for params * Validation of the params file prior to running the pipeline * Multi queues * Pipeline cost etimation (trace.tsv file), dynamic query of AWS * SLURM + AWS autoscaling logic * Ansible scripts used everywhere * NF wishlist: Modules Automatic batching of processes ## Angel Pizarro - AWS Scientific Computing * Why is cloud computing good for research: Elastic, Scalable, Time for Science, Globally accessible ... * Introducing AWS Batch

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully