forked from brwnj/smoove-nf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
97 lines (89 loc) · 2.58 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// Configurable variables
params {
project = 'sites'
sexchroms = 'X,Y'
outdir = './results'
exclude = "~^HLA,~^hs,~:,~^GL,~M,~EBV,~^NC,~^phix,~decoy,~random\$,~Un,~hap,~_alt\$"
// preserves more variants from being filtered
sensitive = false
// covviz report
// the point at which we determine a sample is an outlier from the group at any given point
zthreshold = 3.5
// when calculating significance, the Z-score has to be above the threshold for consecutive points up to the total distance set by distance threshold
distancethreshold = 150000
// slop is the distance to add to traces when plotting -- without slop, it's not always clear what happens to the points immediately flanking the area of significant deviation
slop = 500000
// show all traces when analyzing this few samples; ignores z-threshold, distance-threshold, and slop
minsamples = 8
// somalier QC
// custom ped file, used to supplement ped of indexcov
ped = false
// column of sample IDs in your custom ped file
samplecol = 'sample_id'
}
process {
time = 72.h
memory = 16.GB
cpus = 1
container = 'brentp/smoove:v0.2.5'
cache = 'lenient'
errorStrategy = { task.attempt < 3 ? 'retry' : 'finish' }
withName: smoove_call {
memory = { 16.GB * task.attempt }
}
withName: smoove_merge {
memory = 24.GB
cache = 'deep'
}
withName: smoove_genotype {
memory = { 16.GB * task.attempt }
}
withName: smoove_square {
memory = 64.GB
cpus = 3
cache = 'deep'
}
withName: run_indexcov {
memory = { 16.GB * task.attempt }
cache = 'deep'
}
withLabel: 'somalier' {
container = 'brentp/somalier:v0.2.9'
memory = { 16.GB * task.attempt }
}
withLabel: 'covviz' {
container = 'brwnj/covviz:v1.3.0'
}
}
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/smoove-nf'
author = 'Joe Brown'
description = "run smoove smoover and with additional QC"
version = '1.1.3'
nextflowVersion = '>=0.32.0'
homePage = 'https://github.com/brwnj/smoove-nf'
mainScript = 'main.nf'
}