-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.nf
More file actions
46 lines (37 loc) · 1018 Bytes
/
main.nf
File metadata and controls
46 lines (37 loc) · 1018 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
37
38
39
40
41
42
43
44
45
46
/**
Nextflow main MELT/SCRAMble
author: T Niemeijer
**/
nextflow.enable.dsl=2
include { Melt } from "./melt/melt"
include { IdentifyClusters; SCRAMble } from "./scramble/scramble"
workflow Melt_workflow {
Channel
.fromPath( params.samplesheet )
.splitCsv( header: true, sep: '\t' )
.map { row ->
def bai = file("${row.bamFile}.bai") // This will be data/sample.bam.bai
if (!bai.exists()) error "Missing BAI index for ${row.bamFile}"
tuple( row.sampleID, row.bamFile, bai)
}
| Melt
}
workflow SCRAMble_workflow {
/*
SCRAMble workflow
*/
Channel
.fromPath( params.samplesheet )
.splitCsv( header: true, sep: '\t' )
.map { row ->
def bai = file("${row.bamFile}.bai") // This will be data/sample.bam.bai
if (!bai.exists()) error "Missing BAI index for ${row.bamFile}"
tuple( row.sampleID, row.bamFile, bai)
}
| IdentifyClusters
| SCRAMble
}
workflow {
Melt_workflow()
SCRAMble_workflow()
}