-
Notifications
You must be signed in to change notification settings - Fork 0
/
flaq_amr_plus2.nf
55 lines (45 loc) · 1.67 KB
/
flaq_amr_plus2.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env nextflow
/*
Note:
Before running the script, please set the parameters in the config file params.yaml
*/
//Step1:input data files
nextflow.enable.dsl=2
def L001R1Lst = []
def sampleNames = []
myDir = file("$params.input")
myDir.eachFileMatch ~/.*_1.fastq.gz/, {L001R1Lst << it.name}
L001R1Lst.sort()
L001R1Lst.each{
def x = it.minus("_1.fastq.gz")
//println x
sampleNames.add(x)
}
//println L001R1Lst
//println sampleNames
//Step2: process the inputed data
A = Channel.fromList(sampleNames)
//A.view()
//include { assemble } from './modules/assemble.nf'
include { fastqc } from './modules/fastqc.nf'
include { trimmomatic } from './modules/trimmomatic.nf'
include { bbtools } from './modules/bbtools.nf'
include { fastqc2 } from './modules/fastqc2.nf'
include { multiqc } from './modules/multiqc.nf'
include { mash } from './modules/mash.nf'
include { unicycler } from './modules/unicycler.nf'
//include { pmga } from './modules/pmga.nf'
include { quast } from './modules/quast.nf'
include { pyTask1 } from './modules/pyTask1.nf'
include { readssum } from './modules/readssum.nf'
include { pyTask2 } from './modules/pyTask2.nf'
include { prokka } from './modules/prokka.nf'
include { amrfinder } from './modules/amrfinder.nf'
include { mlst } from './modules/mlst.nf'
include { kraken } from './modules/kraken.nf'
include { pyTask3 } from './modules/pyTask3.nf'
include { pyTask4 } from './modules/pyTask4.nf'
include { plusAnalyses } from './modules/plusAnalyses.nf'
workflow {
fastqc(A) | trimmomatic | bbtools| fastqc2 | multiqc | mash | unicycler | quast | pyTask1 | readssum | pyTask2 | prokka | amrfinder | mlst | kraken | pyTask3 | pyTask4 | plusAnalyses | view
}