-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.nf
More file actions
37 lines (28 loc) · 1004 Bytes
/
main.nf
File metadata and controls
37 lines (28 loc) · 1004 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
include { FIND_TELOMERE_WINDOWS } from '../../../modules/local/find/telomere_windows/main'
include { EXTRACT_TELOMERE } from '../../../modules/local/extract/telomere/main'
workflow TELO_EXTRACTION {
take:
telomere_file //tuple(meta, file)
main:
ch_versions = channel.empty()
//
// MODULE: GENERATES A WINDOWS FILE FROM THE ABOVE
//
FIND_TELOMERE_WINDOWS (
telomere_file
)
ch_versions = ch_versions.mix( FIND_TELOMERE_WINDOWS.out.versions )
def windows_file = FIND_TELOMERE_WINDOWS.out.windows
def safe_windows = windows_file.ifEmpty { channel.empty() }
//
// MODULE: Extract the telomere data from the FIND_TELOMERE
// file and reformat into bed
//
EXTRACT_TELOMERE(
safe_windows
)
ch_versions = ch_versions.mix( EXTRACT_TELOMERE.out.versions )
emit:
bedgraph_file = EXTRACT_TELOMERE.out.bedgraph
versions = ch_versions
}