-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
138 lines (113 loc) · 3.15 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
* -------------------------------------------------
* pgscalculator Nextflow config file
* -------------------------------------------------
* Default config options for all environments.
*/
// Set todays date, used to create dated files/folders
today = new Date().format("yyyy-MM-dd-HHmm")
if(params.dev){
cleanup = false
}else{
cleanup = true
}
workDir = "/pgscalculator/work"
tmpDir = "/tmp"
// Global default params, used in configs
params {
// dev options
dev = false
// snplist default is false
snplist = false
// pipeline root
libdir = '/pgscalculator'
// input
method="sbayesr"
gbuild="37"
// Preprocessing options
whichN="totalN" // the other option is effectiveN
// Output
// set to =false if you want to suppress the output (not for intermediates)
// intermediates won't be created unless the --dev flag is activated
intermediates="${params.outdir}/intermediates"
details="${params.outdir}/details"
tracedir="${params.outdir}/pipeline_info"
// Activate or deactivate features
concat_genotypes=false
remap_rsids=false
// Reference folders
mapfile = "${params.libdir}/assets/sumstats_column_names_map.tsv"
rsid_ref_37 = "${params.libdir}/references/cleansumstat_rsid_map/sbayesr_band_ukb_10k_hm3/b37"
rsid_ref_38 = "${params.libdir}/references/cleansumstat_rsid_map/sbayesr_band_ukb_10k_hm3/b38"
// sbayesr specific
calc_posteriors_sbayesr = [
score_columns: "2 5 8",
options: [
// Parameters with values
gamma: "0.0,0.01,0.1,1",
pi: "0.95,0.02,0.02,0.01",
burn_in: "2000",
chain_length: "10000",
out_freq: "10",
p_value: "0.99",
rsq: "0.95",
thread: "6",
seed: "80851",
thin: "10"
],
flags: [
// Boolean flags
unscale_genotype: true,
exclude_mhc: true,
no_mcmc_bin: false,
impute_n: false
]
]
// prscs specific
calc_posteriors_prscs {
score_columns="2 4 6"
}
memory = [
plink: [
calc_score: 1000,
extract_maf_from_genotypes: 1000,
add_rsid_to_genotypes: 1000,
concat_genotypes: 1000,
indep_pairwise_for_benchmark: 1000
],
sort: [
make_snplist_from_bim: "2 GB"
]
]
}
process {
// Default settings for processes without specific labels
//memory = 10.GB
}
// Load base.config by default for all pipelines (now we force to specify this file)
//includeConfig 'conf/sbayesr.config'
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
timeline {
enabled = true
file = "${params.tracedir}/execution_timeline.html"
}
report {
enabled = true
file = "${params.tracedir}/execution_report.html"
}
trace {
enabled = true
file = "${params.tracedir}/execution_trace.txt"
}
dag {
enabled = true
file = "${params.tracedir}/pipeline_dag.svg"
}
manifest {
name = 'pgscalculator'
author = 'Jesper R. Gådin'
homePage = 'https://github.com/BioPsyk/pgscalculator'
description = 'calcualting pgs using different standard tools for pgs'
mainScript = 'main.nf'
}