-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
50 lines (45 loc) · 1.15 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'
description = 'Generate Simulated Long 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 = 50
mean_read_length = 15000
stdev_read_length = 13000
percent_junk_reads = 1
percent_random_reads = 1
percent_chimeras = 1
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: minimap2_align {
cpus = 4
}
}