-
Notifications
You must be signed in to change notification settings - Fork 7
/
nextflow.config
70 lines (65 loc) · 2.16 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
// Configurable variables
params {
outdir = './results'
// used as QC and critical to seeing sex-based differences in covviz
sexchroms = 'chrX,chrY'
// exclude these chromosome patterns from coverage analysis
exclude = '^GL|^hs|EBV\$|M\$|MT\$|^NC|_random\$|Un_|^HLA\\-|_alt\$|hap\\d+\$'
// 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
// output of indexcov is written as <project>-indexcov.*
project = false
// custom ped file, used to supplement ped of indexcov
ped = false
// column of sample IDs in your custom ped file
samplecol = 'sample_id'
gffattr = false
}
process {
errorStrategy = { task.exitStatus in [1,143,137,104,134,139] ? 'retry' : 'terminate' }
maxRetries = 3
maxErrors = '-1'
container = 'brwnj/covviz:v1.3.3'
withLabel: 'indexcov' {
memory = { 8.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/covviz'
author = 'Joe Brown'
description = "find large, coverage-based variations on chromosomes"
version = '1.3.3'
nextflowVersion = '>=0.32.0'
homePage = 'https://github.com/brwnj/covviz'
mainScript = 'main.nf'
}