-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnextflow.config
More file actions
103 lines (95 loc) · 2.76 KB
/
nextflow.config
File metadata and controls
103 lines (95 loc) · 2.76 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
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 = "23.10.1"
}
// short name of the project, used also for prefixing the results and cache
manifest.name = "heart_rate_tmp_pairwise_gxg"
workDir = "/hps/nobackup/birney/users/saul/nextflow/${manifest.name}"
// 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: "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: "fit_lm_perm" {
publishDir = [
path: { "${params.outdir}/lm_perm/${meta.seed}" },
mode: 'copy',
]
}
withName: "get_result_table" {
publishDir = [
path: { "${params.outdir}/results" },
mode: 'copy',
]
}
withName: "get_result_table_perm" {
publishDir = [
path: { "${params.outdir}/results" },
mode: 'copy',
]
}
cpus = { 1 * task.attempt }
memory = { 6.GB * task.attempt }
time = { 4.h * task.attempt }
}
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
n_chr = null
n_perm = null
}