-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.nf
51 lines (37 loc) · 1007 Bytes
/
utils.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
params.output_dir = "/users/rg/jwindsor/tests/tmerge/results"
params.julien_utils_path = "/users/rg/jlagarde/julien_utils/"
process runGFFCompare {
input:
path input
path reference
publishDir "$params.output_dir"
output:
path '*.gffcompare*'
shell:
'''
gffcompare --strict-match --no-merge -e 0 -d 0 --debug -o !{input.simpleName}.!{input.baseName.split("\\\\.")[2]}_vs_!{reference.baseName.split("\\\\.")[2]}.gffcompare !{input} -r !{reference}
'''
}
process processForSIRVs {
input:
path inputGFF
publishDir "$params.output_dir"
output:
path '*.gff'
shell:
'''
cat !{inputGFF} | awk -F"\t" '$1=="SIRVome_isoforms"' > !{inputGFF.baseName}.sirv.gff
'''
}
process gffToBED {
input:
path inputGFF
publishDir "$params.output_dir"
output:
path '*.bed'
shell:
'''
PATH="$PATH:!{params.julien_utils_path}"
cat !{inputGFF} | gff2bed_full.pl -| sortbed > !{inputGFF.baseName}.bed
'''
}