forked from nextflow-io/nf-hack17-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
73 lines (62 loc) · 2.27 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
// path to the current directory
def currentDir = new File(System.getProperty("user.dir")).getCanonicalPath()
// default conda installation in local directory
String condaDir = "${currentDir}/conda"
params.condaDir = condaDir
def condaActivate = "${condaDir}/bin/activate"
def singularityFile = "singularity-vm/image/nf-bio-basic.simg"
params.singularityFile = null
if(params.singularityFile != null){
singularityFile = "${params.singularityFile}"
}
params.container = "nextflow/rnaseq-nf"
params.queue = "cpu_short" // queue on NYU Big Purple cluster
executor.queueSize = 1
profiles {
standard {
docker.enabled = true
process.container = "${params.container}"
}
conda {
// assuming 'conda' not globally available on system, use the one installed in current dir
process.beforeScript = "unset PYTHONHOME; unset PYTHONPATH; export PATH=${params.condaDir}:\$PATH"
process.conda = "env.yml"
}
singularity {
singularity.enabled = true
process.module = "singularity/2.5.2" // needed for NYU Big Purple HPC
process.container = "${singularityFile}"
singularity.autoMounts = true
}
slurm {
executor.queueSize = 5
process.executor = "slurm"
process.queue = params.queue
process.clusterOptions = "--export=NONE"
}
slurmConda {
// conda needs to be in PATH for parent Nextflow process !!
process.conda = "env.yml"
executor.queueSize = 5
process.executor = "slurm"
process.queue = params.queue
// only export the parent process's PATH, no other variables
process.clusterOptions = "--export=NONE --export=PATH"
}
sge {
executor.queueSize = 5
process.executor = "sge"
}
sgeConda {
process.conda = "env.yml"
process.beforeScript = "unset PYTHONHOME; unset PYTHONPATH; source ${condaActivate}"
executor.queueSize = 5
process.executor = "sge"
}
}
trace {
enabled = true
fields = "task_id,hash,native_id,process,tag,name,status,exit,module,container,cpus,time,disk,memory,attempt,submit,start,complete,duration,realtime,queue,%cpu,%mem,rss,vmem,peak_rss,peak_vmem,rchar,wchar,syscr,syscw,read_bytes,write_bytes"
file = "trace.txt"
raw = true
}