Skip to content
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b008ea1
Added process CheckContamination. Based on best-practices WDL from Br…
ellendejong Feb 17, 2021
5085b10
typo
ellendejong Feb 17, 2021
f45a164
Trying out to capture stdout and provide it as part of output tuple.
ellendejong Feb 17, 2021
ae3bf5c
stdout without brackets.
ellendejong Feb 17, 2021
4986dfa
Without python code to test if verifyBamID can succeed.
ellendejong Feb 17, 2021
c70aca1
adding emit.
ellendejong Feb 17, 2021
fc4c355
define script variable.
ellendejong Feb 17, 2021
84c98a4
typo
ellendejong Feb 17, 2021
d2c3a0e
verifybamid2 with lowercase.
ellendejong Feb 17, 2021
49bef7e
Added contamination_path_prefix
ellendejong Feb 17, 2021
6191d75
typo
ellendejong Feb 17, 2021
1bf334b
parameter should not be local to script scope (removed 'def')
ellendejong Feb 18, 2021
9b12e30
calculating inpython) contamination float
ellendejong Feb 19, 2021
111672d
format python code and added activation venv
ellendejong Feb 22, 2021
11eab39
typo + split lines
ellendejong Feb 22, 2021
876728a
missed 'params'
ellendejong Feb 22, 2021
decb51b
Merge branch 'develop' into feature/check_contamination
ellendejong Feb 22, 2021
8f00ba4
Merge remote-tracking branch 'origin/develop' into feature/check_cont…
ellendejong Feb 22, 2021
104c4e1
removed -u, to avoid unbound variable errors.
ellendejong Feb 22, 2021
7c1c9af
Pull-request review required changes
ellendejong Feb 24, 2021
d313553
typo
ellendejong Feb 24, 2021
afbf1f9
removed duplicate value in tag
ellendejong Feb 24, 2021
48fd0c4
Removed ancestry from files.
ellendejong Mar 29, 2021
e307a1a
Switched container, includes exome resources.
ellendejong Mar 31, 2021
745af65
Merge remote-tracking branch 'origin/develop' into feature/check_cont…
ellendejong Apr 2, 2021
eeda3b7
Merge pull request #47 from UMCUGenetics/feature/check_contamination
sawibo Apr 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions VerifyBamID/2.0.1--h32f71e1_2/VerifyBamID2.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
process VerifyBamID2 {
tag {"VerifyBamID2 ${sample_id}"}
label 'VERIFYBAMID_2_0_1_h32f71e1_2'
label 'VERIFYBAMID_2_0_1_h32f71e1_2_VerifyBamID2'
container = 'quay.io/biocontainers/verifybamid2:2.0.1--h32f71e1_2'
shell = ['/bin/bash', '-eo', 'pipefail']

input:
tuple (sample_id, path(bam), path(bai))

output:
tuple (sample_id, path("${output_prefix}.selfSM"))

script:
output_prefix = "${sample_id}.contamination"

"""
# creates a ${output_prefix}.selfSM file, a TSV file with 2 rows, 19 columns.
# First row are the keys (e.g., SEQ_SM, RG, FREEMIX), second row are the associated values
verifybamid2 \
--Reference ${params.genome} \
--BamFile ${bam} \
--SVDPrefix ${params.contamination_path_prefix} \
--UDPath ${params.contamination_sites_ud} \
--MeanPath ${params.contamination_sites_mu} \
--BedPath ${params.contamination_sites_bed} \
--Verbose \
--NumPC 4 \
--NumThread ${task.cpus} \
--Output ${output_prefix}
"""
}