-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.nf
75 lines (60 loc) · 1.63 KB
/
test.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
72
73
74
75
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
workflow {
println "\n IDAT to VCF: TEST"
println ""
println "idat_dir = ${params.idat_dir}"
println "manifest_bpm = ${params.manifest_bpm}"
println "manifest_csv = ${params.manifest_csv}"
println "cluster_file = ${params.cluster_file}"
if(params.build_ver == 'hg19') {
println "fasta_ref = ${params.fasta_ref}"
}
else {
println "fasta_ref = ${params.fasta_ref}"
println "bam_alignment = ${params.bam_alignment}"
}
println "output_prefix = ${params.output_prefix}"
println "output_dir = ${params.output_dir}"
println "containers_dir = PATH WHERE CONTAINERS ARE STORED"
println "account = ${params.account} # CHANGE TO YOURS"
println "partition = ${params.partition} # CHANGE TO YOURS"
println ""
//call_genotypes()
plink()
}
workflow.onComplete {
println "Workflow completed at: ${workflow.complete}"
println " Execution status: ${ workflow.success ? 'OK' : 'failed'}"
}
workflow.onError{
println "workflow execution stopped with the following message: ${workflow.errorMessage}"
}
process call_genotypes() {
tag "processing ... ${params.idat_dir}"
label 'gencall'
publishDir path: "${params.output_dir}/test"
//debug true
echo true
script:
"""
iaap-cli \
gencall \
--help
"""
}
process plink() {
// directives
tag "processing ... ${params.idat_dir}"
label 'plink2'
label 'idat_to_gtc'
publishDir path: "${params.output_dir}/output"
//debug true
echo true
script:
"""
plink2 \
--help \
--file
"""
}