-
Notifications
You must be signed in to change notification settings - Fork 1
/
patch_release_main.nf
41 lines (38 loc) · 1.86 KB
/
patch_release_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
36
37
38
39
40
41
#!/usr/bin/env nextflow
// Ensure DSL2
nextflow.enable.dsl = 2
// IMPORT MODULES
include { patch_release } from './modules/patch_release'
include { create_data_guide } from './modules/create_data_guide'
include { create_dashboard_html } from './modules/create_dashboard_html'
include { compare_releases } from './modules/compare_releases'
params.release_synid = "syn53170398" // 15.4-consortium
params.new_release_synid = "syn62069187" // 15.6-consortium (in staging)
params.retracted_sample_synid = "syn54082015" // 16.3-consortium samples_to_retract.csv
params.release = "15.6-consortium"
// project_id = "syn7208886"
params.project_id = "syn22033066" // staging project
if (params.project_id == "syn22033066") {
is_production = false
} else if (params.project_id == "syn3380222") {
is_production = true
} else {
exit 1, "project_id must be syn22033066 or syn3380222"
}
workflow {
ch_release_synid = Channel.value(params.release_synid)
ch_new_release_synid = Channel.value(params.new_release_synid)
ch_retracted_sample_synid = Channel.value(params.retracted_sample_synid)
ch_release = Channel.value(params.release)
ch_project_id = Channel.value(params.project_id)
patch_release(ch_release_synid, ch_new_release_synid, ch_retracted_sample_synid, is_production)
create_dashboard_html(patch_release.out, ch_release, is_production)
create_data_guide(patch_release.out, ch_release, ch_project_id)
// This syn55146141 is hard coded because the ch_release used will certainly
// definitely be different from ch_new_release_synid because that is the patch.
// TODO: we will want to implement a different comparison report to look at diffs
// This current comparison looks at similarities and it good for staging pipeline.
if (!is_production) {
compare_releases(create_data_guide.out, "syn55146141", ch_new_release_synid)
}
}