-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
37 lines (32 loc) · 1.11 KB
/
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
include { SOPRANO_ANNOTATE } from "./modules/local/soprano_annotate.nf"
def create_sample_channel(LinkedHashMap row) {
def meta = [
id: row.id
]
return [meta, file(row.vcf)]
}
workflow {
/////////////////////////////////////////////////
// PIPELINE INFO
/////////////////////////////////////////////////
log.info """\
===================================
SOPRANO PIPELINE
===================================
stubRun : ${workflow.stubRun}
genome assembly : ${params.genome_assembly}
soprano_src_dir : ${params.soprano_src_dir}
translator_dir : ${params.translator_dir}
soprano_R_dir : ${params.soprano_R_dir}
===================================
"""
.stripIndent()
// input is a samplesheet.csv (see example)with
// Sample amd vcf file for now
sample_ch = Channel.fromPath(params.input)
.splitCsv(header:true, sep:',')
.map{ create_sample_channel(it) }
.dump(tag: 'samples')
SOPRANO_ANNOTATE(sample_ch)
SOPRANO_ANNOTATE.out.annotated.view()
}