forked from babelomics/SpPGS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
executable file
·114 lines (98 loc) · 3.08 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
================================================================
Set default parameters
================================================================
Any parameters provided by the user with a -params-file or
with -- command-line arguments will override the values
defined below.
*/
params {
help = false
input_folder = false
output_folder = "${launchDir}/results/"
chrom_mapping_file = "http://gitlab.cbra.com/dlopez/csvs_prs/raw/master/resources/rename-chrs.txt"
capture_bed = "http://gitlab.cbra.com/dlopez/csvs_prs/raw/master/resources/intersect_common.bed"
exome = false
shapeit4_map_files = false
minimac4_ref_files = false
reference_genome = false
// Set the containers to use for each component
container__bcftools = "quay.io/biocontainers/bcftools:1.16--hfe4b78e_1"
container__plink = "quay.io/biocontainers/plink:1.90b6.21--h779adbc_1"
container__shapeit4 = "quay.io/biocontainers/shapeit4:4.2.2--h24bf969_1"
container__minimac4 = "rtibiocloud/minimac4:1.0.1"
}
/*
================================================================
set profiles
================================================================
Set cpus/memory or create your own profile according
to your HPC
*/
profiles {
singularity {
singularity.autoMounts = true
singularity.enabled = true
}
docker {
docker.enabled = true
docker.fixOwnership = true
}
slurm {
process {
executor = 'slurm'
cpus = 1
memory = '4 GB'
time = '12h'
beforeScript = 'ml singularity'
withLabel: 'parallel' {
cpus = 8
memory = 32.GB
}
}
}
debug {
process.beforeScript = 'echo $HOSTNAME'
}
test {
params {
input_folder = "${projectDir}/test/"
chrom_mapping_file = "http://gitlab.cbra.com/dlopez/csvs_prs/raw/master/resources/rename-chrs.txt"
capture_bed = "http://gitlab.cbra.com/dlopez/csvs_prs/raw/master/resources/intersect_common.bed"
reference_genome = "${projectDir}/resources/ref/hs37d5.fa"
exome = true
shapeit4_map_files = "${projectDir}/resources/shapeit4/chr*.b37.gmap.gz"
minimac4_ref_files = "${projectDir}/resources/minimac4/*.1000g.Phase3.v5.With.Parameter.Estimates.m3vcf.gz"
}
}
}
manifest {
name = 'PRS_pipeline'
author = 'Daniel López López'
homePage = 'http://gitlab.cbra.com/dlopez/csvs_prs.git'
mainScript = 'main.nf'
nextflowVersion = '>=22.10.6'
version = '1.0.0'
}
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
dag {
enabled = true
file = "${params.output_folder}/report/pipeline_dag.svg"
overwrite = true
}
report {
enabled = true
file = "${params.output_folder}/report/execution_report.html"
overwrite = true
}
timeline {
enabled = true
file = "${params.output_folder}/report/execution_timeline.html"
overwrite = true
}
trace {
enabled = true
file = "${params.output_folder}/report/execution_trace.txt"
overwrite = true
}