-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
63 lines (54 loc) · 1.76 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
// 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"
// inputs
help = false
sample_table = "/lustre/scratch127/cellgen/cellgeni/aljes/atac-pipeline/data/sample_table_filt.csv"
celltype_annotation = "/lustre/scratch127/cellgen/cellgeni/aljes/atac-pipeline/data/celltype_annotation.csv"
chromsizes = "/lustre/scratch127/cellgen/cellgeni/aljes/atac-pipeline/data/hg38.chrom.sizes"
blacklist = "/lustre/scratch127/cellgen/cellgeni/aljes/atac-pipeline/data/hg38-blacklist.v2.bed"
tss_bed = "/lustre/scratch127/cellgen/cellgeni/aljes/atac-pipeline/data/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'
publishDir = [
mode: params.publish_mode,
path: { "${params.output_dir}/${sample_id}" },
overwrite: true
]
}
// 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"
}