美文网首页
Nextflow基本使用

Nextflow基本使用

作者: 可能性之兽 | 来源:发表于2022-03-03 17:50 被阅读0次

    Nextflow官方文档:Get started — Nextflow 21.10.0 documentation

    nextflow-io/nextflow: A DSL for data-driven computational pipelines (github.com)

    安装Nextflow

    conda安装nextflow就好了

    conda install -y nextflow
    

    第一次使用

    把下面代码放入tutorial.nf

    #!/usr/bin/env nextflow
    
    params.str = 'Hello world!'
    
    process splitLetters {
    
        output:
        file 'chunk_*' into letters
    
        """
        printf '${params.str}' | split -b 6 - chunk_
        """
    }
    
    
    process convertToUpper {
    
        input:
        file x from letters.flatten()
    
        output:
        stdout result
    
        """
        cat $x | tr '[a-z]' '[A-Z]'
        """
    }
    
    result.view { it.trim() }
    
    nextflow run tutorial.nf
    

    Process

    process sayHello {
    
        """
        echo 'Hello world!' > file
        """
    
    }
    

    使用nf-core

    Pipelines » nf-core

    nextflow run nf-core/rnaseq 
    

    相关文章

      网友评论

          本文标题:Nextflow基本使用

          本文链接:https://www.haomeiwen.com/subject/mfdfrrtx.html