-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
49 lines (45 loc) · 1.17 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
manifest {
author = 'Dan Fornika <[email protected]>'
description = 'Generate Simulated Reads from Ref Genomes'
mainScript = 'main.nf'
nextflowVersion = '>=20.01.0'
version = '0.1.0'
}
params {
flat = false
keep_bams = false
assembly_exts = ['*.fa', '*.fasta', '*.fna']
assembly_search_path = makeAssemblySearchPath( assembly_exts )
contaminants = 'NO_FILE'
depths_file = 'NO_FILE'
depth = 30
read_length = 150
mean_fragment_length = 400
stdev_fragment_length = 100
quality_shift_r1 = 0
quality_shift_r2 = 0
replicates = 1
collect_outputs = false
collected_outputs_prefix = 'collected'
}
def makeAssemblySearchPath ( assembly_exts ) {
def assembly_search_path = []
for (ext in assembly_exts) {
assembly_search_path.add(params.assembly_input.toString() + '/' + ext.toString())
assembly_search_path.add(params.assembly_input.toString() + '/*/' + ext.toString())
}
return assembly_search_path
}
profiles {
conda {
process.conda = "$baseDir/environments/environment.yml"
if (params.cache){
conda.cacheDir = params.cache
}
}
}
process {
withName: bwa_align {
cpus = 4
}
}