Table of Contents

universal modules for QiuBio pipelines

The sample files are located at main.nf, and chipseq.nf.

How to

First, put the following code in the top of nextflow file you want to load remote modules.

def library = new GroovyScriptEngine('https://raw.githubusercontent.com/jianhong/universalModule/master/').with{
  loadScriptByName("lib/loadmodule.groovy")
}
this.metaClass.mixin library

Second, include the modules by download the modules. The first parameter of loadModule is the module folder name. The second parameter is the branch name.

include { CHECKSUM } from loadModule('checksum', 'master') addParams(options: [publish_dir: "md5"])

And call the process within workflow.

workflow {
  take: input_fastq
  main:
  CHECKSUM(input_fastq)
}

Available modules