-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.nf
35 lines (27 loc) · 873 Bytes
/
main.nf
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
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
include {
default_params;
input_dir_param;
output_dir_param;
scratch_dir_param;
temp_tracking_dir_param;
} from './lib/param_utils'
main_params = default_params() + params
process_params = main_params +
[
input_dir: input_dir_param(main_params),
output_dir: output_dir_param(main_params),
temp_tracking_dir: temp_tracking_dir_param(main_params),
scratch_dir: scratch_dir_param(main_params),
]
include {
apt_pipeline;
} from './workflows/apt_pipeline' addParams(process_params)
input_dir = Channel.of(process_params.input_dir) // flies parent dir
output_dir = Channel.of(process_params.output_dir)
temp_tracking_dir = Channel.of(process_params.temp_tracking_dir)
workflow {
res = apt_pipeline(input_dir, output_dir, temp_tracking_dir)
res | view
}