-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
75 lines (61 loc) · 1.67 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
// nextflow flags
nextflow.enable.moduleBinaries = true
// workflow marapeters
params {
// process params
output_dir = "results"
publish_mode = 'copy'
fragments_filename = 'atac_fragments.tsv.gz'
barcode_metrics_filename = "per_barcode_metrics.csv"
pseudobulk_table_name = "pseudobulk_table.csv"
narrowPeaks_dir = 'narrowPeaks'
// input arguments
help = false
sample_table = null
celltypes = null
callPeaks = null
inferConsensus = null
// reference files
chromsizes = "${projectDir}/reference/hg38.chrom.sizes"
blacklist = "${projectDir}/reference/hg38-blacklist.v2.bed"
tss_bed = "${projectDir}/reference/hg38_pycistopic_tss.bed"
}
process {
queue = 'normal'
maxRetries = 5
errorStrategy = { task.exitStatus in 130 ? lowMemoryError(sample_id, task.process) : 'finish' }
container = '/nfs/cellgeni/singularity/images/scenicplus-fa55dae.sif'
}
// Load config for cisTopic component
includeConfig 'modules/pycistopic/module.config'
singularity {
enabled = true
autoMounts = true
runOptions = '-B /lustre,/nfs'
}
executor {
name = 'lsf'
perJobMemLimit = true
}
// Capturing Nextflow log files into a 'reports' directory
import java.time.*
Date now = new Date()
params {
tracedir = "reports"
timestamp = now.format("yyyyMMdd-HH-mm-ss")
}
timeline {
enabled = true
file = "${params.tracedir}/${params.timestamp}_timeline.html"
}
report {
enabled = true
file = "${params.tracedir}/${params.timestamp}_report.html"
}
trace {
enabled = true
file = "${params.tracedir}/${params.timestamp}_trace.tsv"
}
// Unscoped options
outputDir = params.output_dir
cleanup = false