forked from FelixKrueger/nextflow_pipelines
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnf_download_Genomes
More file actions
36 lines (24 loc) · 738 Bytes
/
nf_download_Genomes
File metadata and controls
36 lines (24 loc) · 738 Bytes
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
#!/usr/bin/env nextflow
// Last modified 13 October 2020
// Enable modules
nextflow.enable.dsl=2
params.input = ''
params.outdir = './'
params.assembly = 'FALSE'
params.annotation = 'TRUE'
params.verbose = false
params.help = false
// Show help message and exit
if (params.help){
helpMessage()
exit 0
}
include { DOWNLOAD_GENOMES } from './nf_modules/genomes.mod.nf'
workflow {
main:
input_genomes = Channel
.fromPath( params.input )
.splitCsv()
.map{ row -> [ row[0], row[1] ]} // here the file can have many columns but we filter them
DOWNLOAD_GENOMES (input_genomes, params.outdir, params.assembly, params.annotation)
}