Skip to content
Snippets Groups Projects
Commit 9a15b0e8 authored by Cats's avatar Cats
Browse files

cleanup bwa.wdl

parent 8057d079
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,8 @@ that users understand how the changes affect the new version.
version 1.0.0-dev
---------------------------
+ Removed BWA index task
+ Removed unused "picardJar" input from bwa.wdl
+ All inputs to bedtools Sort are now reflected in the generated command
+ Add WDL task for TALON
+ Add WDL task for TranscriptClean
......
......@@ -8,8 +8,6 @@ task Mem {
String outputPath
String? readgroup
String? picardJar
Int threads = 2
Int memory = 8
Int picardMemory = 4
......@@ -39,59 +37,13 @@ task Mem {
File outputBamIndex = sub(outputPath, "\.bam$", ".bai")
}
runtime{
runtime {
cpu: threads
memory: memory + picardMemory + picardMemory
docker: dockerImage
}
}
task Index {
# Since this task uses `ln` this is not stable or usable with containers
input {
File fasta
String? preCommand
String? constructionAlgorithm
Int? blockSize
String? outputDir
}
String fastaFilename = basename(fasta)
String outputFile = if (defined(outputDir)) then outputDir + "/" + fastaFilename else fasta
command {
set -e -o pipefail
~{"mkdir -p " + outputDir}
~{preCommand}
if [[ ! '~{outputDir}' = '' ]]
then
ln -sf ~{fasta} ~{outputDir + "/"}~{fastaFilename}
fi
bwa index \
~{"-a " + constructionAlgorithm} \
~{"-b" + blockSize} \
~{outputFile}
}
output {
BwaIndex outputIndex = object {
fastaFile: outputFile,
indexFiles: [outputFile + ".bwt",
outputFile + ".pac",
outputFile + ".sa",
outputFile + ".amb",
outputFile + ".ann"]
}
}
parameter_meta {
fasta: "Fasta file to be indexed"
constructionAlgorithm: "-a STR BWT construction algorithm: bwtsw, is or rb2 [auto]"
blockSize: "-b INT block size for the bwtsw algorithm (effective with -a bwtsw) [10000000]"
outputDir: "index will be created in this output directory"
}
}
struct BwaIndex {
File fastaFile
Array[File] indexFiles
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment