-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnextflow.config
More file actions
134 lines (109 loc) · 2.93 KB
/
nextflow.config
File metadata and controls
134 lines (109 loc) · 2.93 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
/****************************
Default parameter values
nextflow run script.nf --genome "./test-data/ref/*.fasta"
****************************/
params {
help = false
// Output directory
outdir = './GATK_Results'
// Reference genome to map against when looking for SNPs
genome = false
// Either input reads as a glob pattern or as a tab delimited file
reads = false
reads_file = false
// invariant
invariant = false // Keep invariant sites in vcf
// link executables (optional)
singularity_img = 'shub://aseetharam/gatk:latest'
docker_img = 'j23414/gatk4'
gatk_app = 'gatk'
bwamem2_app = 'bwa-mem2'
samtools_app = 'samtools'
bedtools_app = 'bedtools'
datamash_app = 'datamash'
vcftools_app = 'vcftools'
// other runtime options
java_options = false // example "-Xmx60g -XX:+UseParallelGC"
window = 100000
queueSize = 20
account = false // HPC account name
threads = false
}
env {
// == link executables
bwamem2_app = "$params.bwamem2_app"
samtools_app = "$params.samtools_app"
bedtools_app = "$params.bedtools_app"
gatk_app = "$params.gatk_app"
datamash_app = "$params.datamash_app"
vcftools_app = "$params.vcftools_app"
// == slurm or other options
account_flag = params.account ? " --account $params.account " : ' '
java_options = params.java_options ? "$params.java_options" : "-Xmx80g -XX:+UseParallelGC -Djava.io.tmpdir=\$TMPDIR"
threads = params.threads ? $params.threads : 4
}
/****************************
Default process settings
****************************/
process {
publishDir = "$params.outdir"
}
/****************************
Settings for different computiong hardware
****************************/
executor {
queueSize = "$params.queueSize"
submitRateLimit = '10 sec'
}
profiles {
local {
cpus = 4
}
slurm {
includeConfig 'configs/slurm.config'
}
condo {
includeConfig 'configs/slurm.config'
}
atlas {
includeConfig 'configs/slurm.config'
}
ceres {
includeConfig 'configs/slurm.config'
}
docker {
process.container = params.docker_img
docker.enabled = true
}
singularity {
process.container = params.singularity_img
singularity.enabled = true
}
// miniconda { process.conda = 'environment.yml' }
// awsbatch, conda, test can be added later
}
singularity.autoMounts = true
docker.runOptions = '-u \$(id -u):\$(id -g)'
/*****************************
Generate html runtime reports
-with-timeline timeline.html
-with-report report.html
*****************************/
timeline {
enabled = true
file = "$params.outdir/timeline.html"
}
report {
enabled = true
file = "$params.outdir/report.html"
}
/**********************************
Author and software info here
**********************************/
manifest {
name = 'HuffordLab/Maize_WGS_Build'
homePage = 'https://www.maizegdb.org'
description = 'Yearly Maize WGS Build for MaizeGDB'
mainScript = 'main.nf'
version = '1.0.0'
}