-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
117 lines (102 loc) · 3.72 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
// nextflow.config
/*
=====================================================================
OXFORD BMRC CLUSTER CONFIGURATION
=====================================================================
*/
process {
resourceLimits = [ // max
cpus: 48,
memory: 192.GB,
time: 24.h
]
}
process {
// Define the error strategy
errorStrategy = 'retry'
maxRetries = 2
maxErrors = '-1'
// General resource requirements
queue = 'short'
cpus = { 1 * task.attempt }
memory = { 8.GB * task.attempt }
time = { 4.h * task.attempt }
// Process-specific resource requirements
withLabel: process_single {
queue = 'short'
cpus = 1
memory = { 8.GB * task.attempt }
time = { 4.h * task.attempt }
}
withLabel: process_low {
queue = 'short'
cpus = { 2 * task.attempt }
memory = { 16.GB * task.attempt }
time = { 4.h * task.attempt }
}
withLabel: process_medium {
queue = 'short'
cpus = { 8 * task.attempt }
memory = { 32.GB * task.attempt }
time = { 8.h * task.attempt }
}
withLabel: process_high {
queue = 'short'
cpus = { 16 * task.attempt }
memory = { 48.GB * task.attempt }
time = { 8.h * task.attempt }
}
}
executor {
account = 'band.prj'
name = 'slurm'
queueStatInterval = '100 sec'
pollInterval = '10 sec'
}
/*
=====================================================================
USER-SPECIFIED PARAMETERS
=====================================================================
*/
params {
// Pipeline/process options
samplesheet = "path/to/samplesheet.csv"
outdir = "./"
target_depth = null // Target coverage to downsample the the fastq files and create the breadth of coverage plots. Integer.
use_region = false // Whether the coverage statistics should be calculated for specific regions. If true you must specify the paths to the files in the samplesheet.
hifiasm_n_hap = null // Use 1 for haploid genomes
hifiasm_purge_dup_lvl = 3 // default = 3. Use 0 for haploid genomes
hifiasm_d = 5.0 // default = 5.0. Increase to improve contiguity at the expense of longer runtimes
hifiasm_n = 100 // default = 100. Increase to improve contiguity at the expesne of longer runtimes
minimap_asm = "asm10" // default = "asm10". asm10 is suitable for divergence of a couple %. See the minimap cookbook for more details.
}
/*
=====================================================================
CONTAINERISATION
=====================================================================
*/
singularity {
enabled = true
autoMounts = true
cacheDir = "$HOME/singularity-cache" // Permanent location so successive pipeline executions do not have to redownload the same images
ociAutoPull = true // container pull and conversion happen on compute nodes, not head node. When true we encounter a weird error with Docker containers...
}
/*
=====================================================================
PROCESS-SPECIFIC REQUIREMENTS
=====================================================================
*/
process {
withName: 'ALIGN_FA_TO_REF_UNORIENTED' {
publishDir = [
path: { "${params.outdir}/results/01_ASSEMBLIES/fa_aligned_to_ref_unoriented/${meta.sample_id}" },
mode: "copy"
]
}
withName: 'ALIGN_FA_TO_REF_ORIENTED' {
publishDir = [
path: { "${params.outdir}/results/01_ASSEMBLIES/fa_aligned_to_ref_oriented/${meta.sample_id}" },
mode: "copy"
]
}
}