-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmuse-processes.nf
71 lines (62 loc) · 1.69 KB
/
muse-processes.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
log.info """\
=====================================
M U S E
=====================================
Docker Images:
- docker_image_MuSE: ${params.docker_image_MuSE}
- docker_image_BCFtools: ${params.docker_image_BCFtools}
MuSE Options:
- exome: ${params.exome}
- dbSNP: ${params.dbSNP}
"""
process call_sSNV_MuSE {
container params.docker_image_MuSE
publishDir path: "${params.workflow_output_dir}/intermediate/${task.process.split(':')[-1]}",
mode: "copy",
pattern: "*.txt",
enabled: params.save_intermediate_files
ext log_dir: { "MuSE-${params.MuSE_version}/${task.process.split(':')[-1]}" }
input:
path tumor
path tumor_index
path normal
path normal_index
path reference
path reference_index
output:
path("*.txt"), emit: txt
script:
"""
MuSE call \
-f $reference \
-O ${params.output_filename} \
-n ${task.cpus} \
$tumor \
$normal
"""
}
process run_sump_MuSE {
container params.docker_image_MuSE
publishDir path: "${params.workflow_output_dir}/intermediate/${task.process.split(':')[-1]}",
mode: "copy",
pattern: "*.vcf",
enabled: params.save_intermediate_files
ext log_dir: { "MuSE-${params.MuSE_version}/${task.process.split(':')[-1]}" }
input:
path MuSE_txt
path dbSNP
path dbSNP_index
output:
path("*.vcf"), emit: vcf
script:
arg_seq_type = params.exome ? "-E" : "-G"
"""
set -euo pipefail
MuSE sump \
-I $MuSE_txt \
$arg_seq_type \
-O ${params.output_filename}-raw.vcf \
-n ${task.cpus} \
-D $dbSNP
"""
}