-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
129 lines (85 loc) · 2.58 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
params {
// WORKFLOW PARAMETERS TO REVIEW AT EACH RUN
// ----------------------------------------
// where to look for inputs
input_dir = "$launchDir/input"
// Path for a manually constructed optimal cycle table
cycles = "$projectDir/input/optimal-cycles.csv"
// Path to a sample manifest spreadsheet with "Animal ID" and "Relationship" columns
manifest = "$projectDir/input/sample-manifest.xlsx"
// VCF file of SNPs used in the panel
vcf = "$projectDir/resources/baylor34_mcm_snp_assay_candidates.vcf.gz"
// Where to place results
results = "$launchDir/results"
// WORKFLOW PARAMETERS THAT SHOULD NOT BE CHANGED
// ----------------------------------------
// resources folder
resources = "$baseDir/resources"
// date for results tagging
date = new java.util.Date().format('yyyyMMdd')
// Find number of CPUs on system or node
available_cpus = Runtime.getRuntime().availableProcessors() - 1
// Find the maximum number of cpus to allocate for local execution that
// is not on an HPC cluster
max_shared_cpus = Math.floor( Runtime.getRuntime().availableProcessors() / 4 )
// in_dev parameter for developer purposes
in_dev = true
}
// WHETHER TO GENERATE A REPORT OF RUN STATISTICS
report {
enabled = true
file = "${params.results}/report.html"
}
// WHETHER TO GENERATE A VISUALIZATION OF THE WORKFLOW
dag {
enabled = true
overwrite = true
file = 'workflow-visualization.png'
}
// WHETHER TO REMOVE TEMPORARY FILES AFTER A SUCCESSFUL RUN
cleanup = false
// PROFILE OPTIONS
profiles {
standard {
docker.enabled = true
singularity.enabled = false
conda.enabled = false
process.container = "nrminor/snprelate:v1.2"
}
docker {
docker.enabled = true
singularity.enabled = false
conda.enabled = false
process.container = "nrminor/snprelate:v1.2"
}
singularity {
singularity.enabled = true
docker.enabled = false
conda.enabled = false
process.container = "nrminor/snprelate:v1.2"
}
local_path {
docker.enabled = false
singularity.enabled = false
conda.enabled = false
process.executor = 'local'
}
// conda {
// conda {
// enabled = true
// // cacheDir = "$baseDir/config/envs"
// // createOptions = "-y -c conda-forge -c bioconda -c r"
// useMamba = true
// }
// singularity.enabled = false
// docker.enabled = false
// }
}
// MANIFEST
manifest {
homePage = 'https://github.com/dholab/snpRelate'
mainScript = 'snpRelate.nf'
defaultBranch = 'main'
description = 'A Nextflow pipeline for collating SNP panel results and determining parentage'
author = 'Nicholas R. Minor'
}