-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
34 lines (26 loc) · 858 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
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { SELECT_SAMPLES } from './modules/local/select_samples.nf'
params.samples_tsv = "input/input_data.tsv"
Channel
.fromPath( params.samples_tsv )
.splitCsv( header: true, sep: '\t' )
.set { input_data_ch }
Channel
.empty()
.mix( input_data_ch
.filter { it.dataset_name == "consensus_element_counts" }
.map { it -> file( it.dataset_path ) } )
.set { consensus_element_counts_ch }
Channel
.of(['WT_D7_p1', 'WT_D11_p1'],
['WT_D7_p2', 'WT_D11_p2'],
['WT_D7_pM', 'WT_D11_pM'],
['WT_D11_p1', 'MUT_D11_p1'],
['WT_D11_p2', 'MUT_D11_p2'],
['WT_D11_pM', 'MUT_D11_pM'])
.set { conditions_to_compare }
workflow {
SELECT_SAMPLES( consensus_element_counts_ch,
conditions_to_compare )
}