-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnextflow.config
More file actions
114 lines (108 loc) · 3.05 KB
/
nextflow.config
File metadata and controls
114 lines (108 loc) · 3.05 KB
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
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nextflow config file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Default config options
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Author: Saul Pierotti
Mail: saul@ebi.ac.uk
----------------------------------------------------------------------------------------
*/
manifest {
author = "Saul Pierotti"
// raise a warning if using a different nextflow version than the one used in the
// development of the pipeline
nextflowVersion = "24.10.5"
}
// short name of the project, used also for prefixing the results and cache
manifest.name = "heart_rate_tmp_simulation_gxg"
// Configuration via labels
process {
withLabel: "r_tidyverse_datatable" {
// add pgenlibr manually to env since not on conda
conda = "r-base=4.2.3 r-tidyverse=2.0.0 r-data.table=1.14.8 r-r.utils=2.12.3"
}
withLabel: "r_gaston" {
conda = "r-gaston=1.6"
}
withLabel: "plink2" {
conda = "bioconda::plink2=2.00a5"
}
withName: "get_formulas" {
publishDir = [
path: { "${params.outdir}/" },
mode: 'copy',
]
}
withName: "read_pheno_covar" {
publishDir = [
path: { "${params.outdir}/" },
mode: 'copy',
]
}
withName: "make_pgen" {
memory = "10 GB"
publishDir = [
path: { "${params.outdir}/pgen" },
mode: 'copy',
]
}
withName: "get_qtl_matrices" {
publishDir = [
path: { "${params.outdir}/matrices" },
mode: 'copy',
]
}
withName: "fit_mixed_model" {
publishDir = [
path: { "${params.outdir}/mixed_model" },
mode: 'copy',
]
}
withName: "fit_lm" {
publishDir = [
path: { "${params.outdir}/lm" },
mode: 'copy',
]
}
withName: "simulate" {
publishDir = [
path: { "${params.outdir}/simulation/${meta.locus_id}/" },
mode: 'copy',
pattern: "*.simulated_data.rds"
]
time = { 36.hour * task.attempt }
memory = { 50.GB * task.attempt }
maxForks = 200
}
withName: "aggregate_results" {
publishDir = [
path: { "${params.outdir}/results" },
mode: 'copy',
]
}
cpus = { 1 * task.attempt }
memory = { 6.GB * task.attempt }
time = { 4.h * task.attempt }
errorStrategy = "retry"
maxRetries = 3
}
params {
outdir = "/nfs/research/birney/users/saul/nextflow/${manifest.name}"
storedir = "/hps/nobackup/birney/users/saul/nextflow_storedir/${manifest.name}"
pheno = null
covar = null
qtls = null
freq = null
vcf = null
temperature_file = null
n_chr = null
n_rep = null
n_samples = null
allele_freq = null
random_seed = 1
noise_levels = null
r2 = null
temperature_trans = "x"
heart_rate_trans = "x"
}