-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcluster.config
More file actions
78 lines (66 loc) · 2.11 KB
/
cluster.config
File metadata and controls
78 lines (66 loc) · 2.11 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
params {
// Reads and references
samplesheet = "$projectDir/samplesheet.csv"
classifier = "$projectDir/bin/silva-138.2-ssu-nr99-341f-806r-classifier.qza"
metadata = "$projectDir/metadata.tsv"
sampling_depth = 60000 //Set these accordingly
rarefaction_depth = 5000 //Set these accordingly
// Directories
outdir = "$projectDir/results/"
refdir = "$projectDir/refs/"
}
profiles {
conda {
conda.enabled = true
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
singularity.cacheDir = '/projectnb/bf528/students/jgsherry/singularity_cache'
}
cluster {
process {
executor = 'sge'
clusterOptions = '-P bf528'
penv = 'omp'
// Module setup for QIIME2 processes
withName: 'QIIME2_.*' {
beforeScript = '''
set +u
if [ -f /share/pkg.8/qiime2/2025.4.0/install-amplicon/etc/profile.d/conda.sh ]; then
source /share/pkg.8/qiime2/2025.4.0/install-amplicon/etc/profile.d/conda.sh
conda activate /share/pkg.8/qiime2/2025.4.0/install-amplicon
else
export PATH=/share/pkg.8/qiime2/2025.4.0/install-amplicon/bin:$PATH
export CONDA_PREFIX=/share/pkg.8/qiime2/2025.4.0/install-amplicon
export PYTHONPATH=/share/pkg.8/qiime2/2025.4.0/install-amplicon/lib/python3.10/site-packages:$PYTHONPATH
fi
'''.stripIndent()
}
withLabel: process_single {
cpus = 1
}
withLabel: process_low {
cpus = 4
}
withLabel: process_medium {
cpus = 8
}
withLabel: process_high {
cpus = 16
}
}
}
local {
process.executor = 'local'
}
}
executor {
$sge {
queueSize = 8
}
$local {
cpus = 1
}
}
resume = true