forked from brwnj/freebayes-nf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
71 lines (66 loc) · 1.96 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
// Configurable variables
params {
// optional intervals to be further split by width
// ideally, something like ftp://gsapubftp-anonymous@ftp.broadinstitute.org/bundle/hg38/wgs_calling_regions.hg38.interval_list
// if this is not provided, intervals will be created from the FASTA index (.fai)
intervals = false
// the genomic window size per variant calling job
width = 5000000
// where to organize the results
outdir = './results'
// how to name some of the output files
project = 'variants'
// options to send to freebayes
options = '--pooled-continuous --pooled-discrete --genotype-qualities --report-genotype-likelihood-max --allele-balance-priors-off --min-alternate-fraction 0.03 --min-repeat-entropy 1 --min-alternate-count 2'
exclude = 'decoy,random,Un,alt,EBV,M,HLA,phi'
// bcftools (de)compression threads when merging
cpus = 8
}
process {
time = 48.h
memory = 8.GB
cpus = 1
container = 'brwnj/freebayes:v0.0.3'
cache = 'lenient'
errorStrategy = { task.attempt < 3 ? 'retry' : 'finish' }
withName: run_freebayes {
memory = { 16.GB * task.attempt }
time = 96.h
}
withName: merge_vcfs {
memory = { 24.GB * task.attempt }
cache = 'deep'
}
}
profiles {
docker {
docker.enabled = true
}
singularity {
singularity.runOptions = '--bind /scratch'
singularity.enabled = true
}
none {}
}
process.shell = ['/bin/bash', '-euo', 'pipefail']
timeline {
enabled = true
file = "${params.outdir}/logs/timeline.html"
}
report {
enabled = true
file = "${params.outdir}/logs/report.html"
}
trace {
enabled = true
file = "${params.outdir}/logs/trace.txt"
}
manifest {
name = 'brwnj/freebayes-nf'
author = 'Joe Brown'
description = "a better freebayes-parallel"
version = '0.0.0'
nextflowVersion = '>=0.32.0'
homePage = 'https://github.com/brwnj/freebayes-nf'
mainScript = 'main.nf'
}