-
Notifications
You must be signed in to change notification settings - Fork 0
/
myco_target.nf
executable file
·45 lines (36 loc) · 1.24 KB
/
myco_target.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
#!/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 { fastqc } from './modules/fastqc.nf'
include { trimmomatic } from './modules/trimmomatic.nf'
include { bbduk } from './modules/bbduk.nf'
include { fastqc_clean } from './modules/fastqc_clean.nf'
include { multiqc } from './modules/multiqc.nf'
include { frag_bwa } from './modules/frag_bwa.nf'
include { frag_samtools } from './modules/frag_samtools.nf'
include { bcftools } from './modules/bcftools.nf'
include { amplicon_stat } from './modules/amplicon_stat.nf'
include { bedtools } from './modules/bedtools.nf'
include { pystats } from './modules/pystats.nf'
workflow {
fastqc(A)| trimmomatic | bbduk | fastqc_clean | multiqc | frag_bwa | frag_samtools | bcftools | amplicon_stat | bedtools | pystats | view
}