generated from CCBR/CCBR_NextflowTemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.nf
35 lines (30 loc) · 891 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
35
process MANORM_PAIRWISE {
"""
adapted from: https://github.com/CCBR/Pipeliner/blob/86c6ccaa3d58381a0ffd696bbf9c047e4f991f9e/Rules/ChIPseq.snakefile#L709-L785
"""
tag "${meta1.id}.${meta2.id}"
label 'process_single'
container 'nciccbr/ccbr_manorm:v1'
input:
tuple val(meta1), val(meta2), path(tagalign1), path(tagalign2), path(peak1), path(peak2)
output:
path("${meta1.id}_vs_${meta2.id}/*"), emit: dir
script:
"""
manorm \\
--p1 ${peak1} \\
--p2 ${peak2} \\
--r1 ${tagalign2} \\
--r2 ${tagalign2} \\
--s1 ${meta1.fraglen} \\
--s2 ${meta2.fraglen} \\
-o ${meta1.id}_vs_${meta2.id}/ \\
--name1 ${meta1.group} \\
--name2 ${meta2.group}
"""
stub:
"""
mkdir ${meta1.id}_vs_${meta2.id}/
touch ${meta1.id}_vs_${meta2.id}/blank.txt
"""
}