5 # Copyright (c) 2018 Leiden University Medical Center
7 # Permission is hereby granted, free of charge, to any person obtaining a copy
8 # of this software and associated documentation files (the "Software"), to deal
9 # in the Software without restriction, including without limitation the rights
10 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 # copies of the Software, and to permit persons to whom the Software is
12 # furnished to do so, subject to the following conditions:
14 # The above copyright notice and this permission notice shall be included in
15 # all copies or substantial portions of the Software.
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 File indexedFiteredBam
33 String outputPath = "./clever"
34 Int cleverMaxDelLength = 100000
41 String dockerImage = "quay.io/biocontainers/clever-toolkit:2.4--py36hcfe0e84_6"
46 mkdir -p "$(dirname ~{outputPath})"
47 echo ~{outputPath} ~{fiteredBam} ~{predictions} none > predictions.list
52 -M ~{cleverMaxDelLength} \
55 ~{bwaIndex.fastaFile} \
61 File matecleverVcf = outputPath + "/deletions.vcf"
67 time_minutes: timeMinutes
73 fiteredBam: {description: "The bam file where sequences less than 30bp were removed.", category: "required"}
74 indexedFiteredBam: {description: "The index of the filtered bam file.", category: "required"}
75 bwaIndex: {description: "The BWA index files.", category: "required"}
76 predictions: {description: "The predicted deletions (VCF) from clever.", category: "required"}
77 maxOffset: {description: "The maximum center distance between split-read and read-pair deletion to be considered identical.", category: "advanced"}
78 maxLengthDiff: {description: "The maximum length difference between split-read and read-pair deletion to be considered identical.", category: "advanced"}
79 cleverMaxDelLength: {description: "The maximum deletion length to look for in Clever predictions.", category: "advanced"}
80 outputPath: {description: "The location the output VCF file should be written.", category: "common"}
81 threads: {description: "The the number of threads required to run a program", category: "advanced"}
82 memory: {description: "The memory required to run the programs", category: "advanced"}
83 timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
84 dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.", category: "advanced"}
93 String outputPath = "./clever"
98 String dockerImage = "quay.io/biocontainers/clever-toolkit:2.4--py36hcfe0e84_6"
103 mkdir -p "$(dirname ~{outputPath})"
110 ~{bwaIndex.fastaFile} \
115 File predictions = outputPath + "/predictions.vcf"
121 time_minutes: timeMinutes
127 bamFile: {description: "The bam file to process.", category: "required"}
128 bamIndex: {description: "The index bam file.", category: "required"}
129 bwaIndex: {description: "The BWA index files.", category: "required"}
130 outputPath: {description: "The location the output VCF file should be written.", category: "common"}
131 threads: {description: "The the number of threads required to run a program", category: "advanced"}
132 memory: {description: "The memory required to run the programs", category: "advanced"}
133 timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
134 dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.", category: "advanced"}
137 predictions: {description: "The predicted deletions (VCF) from clever.", category: "advanced"}