Skip to content

Commit b728073

Browse files
authored
Merge pull request #52 from UMCUGenetics/develop
v0.4.0 Feature add contamination score
2 parents 0a856cb + eeda3b7 commit b728073

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
process VerifyBamID2 {
2+
tag {"VerifyBamID2 ${sample_id}"}
3+
label 'VERIFYBAMID_2_0_1_h32f71e1_2'
4+
label 'VERIFYBAMID_2_0_1_h32f71e1_2_VerifyBamID2'
5+
container = 'quay.io/biocontainers/verifybamid2:2.0.1--h32f71e1_2'
6+
shell = ['/bin/bash', '-eo', 'pipefail']
7+
8+
input:
9+
tuple (sample_id, path(bam), path(bai))
10+
11+
output:
12+
tuple (sample_id, path("${output_prefix}.selfSM"))
13+
14+
script:
15+
output_prefix = "${sample_id}.contamination"
16+
17+
"""
18+
# creates a ${output_prefix}.selfSM file, a TSV file with 2 rows, 19 columns.
19+
# First row are the keys (e.g., SEQ_SM, RG, FREEMIX), second row are the associated values
20+
verifybamid2 \
21+
--Reference ${params.genome} \
22+
--BamFile ${bam} \
23+
--SVDPrefix ${params.contamination_path_prefix} \
24+
--UDPath ${params.contamination_sites_ud} \
25+
--MeanPath ${params.contamination_sites_mu} \
26+
--BedPath ${params.contamination_sites_bed} \
27+
--Verbose \
28+
--NumPC 4 \
29+
--NumThread ${task.cpus} \
30+
--Output ${output_prefix}
31+
"""
32+
}

0 commit comments

Comments
 (0)