-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
122 lines (113 loc) · 3.26 KB
/
nextflow.config
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
params {
take = 1 //can be overwritten at run-time e.g. --take 2 to just process first two accessions or --take all to process all
accessions = [
"ACBarrie",
"Alsen",
"Baxter",
"Chara",
"Drysdale",
"Excalibur",
"Gladius",
"H45",
"Kukri",
"Pastor",
"RAC875",
"Volcanii",
"Westonia",
"Wyalkatchem",
"Xiaoyan",
"Yitpi"
]
adapters = "https://raw.githubusercontent.com/timflutre/trimmomatic/master/adapters/TruSeq3-PE.fa"
ref {
base_url = "https://urgi.versailles.inra.fr/download/iwgsc/IWGSC_RefSeq_Assemblies/v1.0/iwgsc_refseqv1.0_"
chr = "chr4A"
start = "688055092"
end = "688113092"
}
bam {
base_url = "http://crobiad.agwine.adelaide.edu.au/dawn/jbrowse-prod/data/wheat_parts/minimap2_defaults/whole_genome/PE/BPA"
chr = "chr4A_part2"
start = "235500000"
end = "235558000"
}
outdir = "./results" //can be overwritten at run-time e.g. --outdir dirname
infodir = "./flowinfo" //can be overwritten at run-time e.g. --infodir dirname
}
process {
cache = 'lenient'
}
profiles {
//SOFTWARE
conda {
process {
conda = "$baseDir/conf/conda.yaml"
}
}
condamodule {
process.module = 'miniconda3/4.3.24'
}
docker {
process.container = 'rsuchecki/nextflow-embl-abr-webinar'
docker {
enabled = true
fixOwnership = true
}
}
singularity {
process {
container = 'shub://csiro-crop-informatics/nextflow-embl-abr-webinar' //Singularity hub
// container = 'rsuchecki/nextflow-embl-abr-webinar' //pulled from Docker hub - would suffice but Singularity container is re-built from docker image so not ideal for reproducibility
//scratch = true //This is a hack needed for singularity versions approx after 2.5 and before 3.1.1 as a workaround for https://github.com/sylabs/singularity/issues/1469#issuecomment-469129088
}
singularity {
enabled = true
autoMounts = true
cacheDir = "singularity-images" //when distibuting the pipeline probably should point under $workDir
}
}
singularitymodule {
process.module = 'singularity/3.2.1' //Specific to our cluster - update as required
}
//EXECUTORS
awsbatch {
aws.region = 'ap-southeast-2'
process {
executor = 'awsbatch'
queue = 'flowq'
process.container = 'rsuchecki/nextflow-embl-abr-webinar'
}
executor {
awscli = '/home/ec2-user/miniconda/bin/aws'
}
}
slurm {
process {
executor = 'slurm'
}
}
}
//PUBLIS RESULTS
params.publishmode = "copy"
includeConfig 'conf/publish.config'
//GENERATE REPORT https://www.nextflow.io/docs/latest/tracing.html//trace-report
report {
enabled = true
file = "${params.infodir}/report.html"
}
//GENERATE TIMELINE https://www.nextflow.io/docs/latest/tracing.html//timeline-report
timeline {
enabled = true
timeline.file = "${params.infodir}/timeline.html"
}
//GENERATE PIPELINE TRACE https://www.nextflow.io/docs/latest/tracing.html//trace-report
trace {
enabled = true
file = "${params.infodir}/trace.txt"
}
//GENERATE GRAPH REPRESENTATION OF THE PIPELINE FLOW
dag {
enabled = true
file = "${params.infodir}/flowchart.dot"
// file = "${params.infodir}/flowchart.png" //requires graphviz for rendering
}