Skip to content
Snippets Groups Projects
Unverified Commit 91ecca66 authored by Peter van 't Hof's avatar Peter van 't Hof Committed by GitHub
Browse files

Merge pull request #57 from biowdl/BIOWDL-88

Fixed defaults
parents b3d1cd6c 06944b60
No related branches found
No related tags found
No related merge requests found
...@@ -39,12 +39,14 @@ task Mem { ...@@ -39,12 +39,14 @@ task Mem {
String picardCommand = if (defined(bwaIndex.altIndex)) then sortSamCommand + " | " + setNmMdAndUqTagsCommand String picardCommand = if (defined(bwaIndex.altIndex)) then sortSamCommand + " | " + setNmMdAndUqTagsCommand
else sortSamCommand else sortSamCommand
String readgroupArg = if (defined(readgroup)) then "-R '" + readgroup + "'" else ""
command { command {
set -e -o pipefail set -e -o pipefail
mkdir -p $(dirname ~{outputPath}) mkdir -p $(dirname ~{outputPath})
~{preCommand} ~{preCommand}
bwa mem ~{"-t " + threads} \ bwa mem ~{"-t " + threads} \
~{"-R '" + readgroup + "'"} \ ~{readgroupArg} \
~{bwaIndex.fastaFile} \ ~{bwaIndex.fastaFile} \
~{inputR1} \ ~{inputR1} \
~{inputR2} \ ~{inputR2} \
...@@ -53,9 +55,9 @@ task Mem { ...@@ -53,9 +55,9 @@ task Mem {
} }
output { output {
IndexedBamFile bamFile = { IndexedBamFile bamFile = object {
"file": outputPath, file: outputPath,
"index": sub(outputPath, ".bam$", ".bai") index: sub(outputPath, ".bam$", ".bai")
} }
} }
...@@ -92,9 +94,9 @@ task Index { ...@@ -92,9 +94,9 @@ task Index {
} }
output { output {
BwaIndex outputIndex = { BwaIndex outputIndex = object {
"fastaFile": outputFile, fastaFile: outputFile,
"indexFiles": [outputFile + ".bwt",outputFile + ".pac",outputFile + ".sa",outputFile + ".amb",outputFile + ".ann"] indexFiles: [outputFile + ".bwt",outputFile + ".pac",outputFile + ".sa",outputFile + ".amb",outputFile + ".ann"]
} }
} }
......
...@@ -6,7 +6,7 @@ task Sample { ...@@ -6,7 +6,7 @@ task Sample {
String outFilePath = "subsampledReads.fq.gz" String outFilePath = "subsampledReads.fq.gz"
String? preCommand String? preCommand
Int? seed Int? seed
Boolean twoPassMode Boolean twoPassMode = false
Float? fraction Float? fraction
Int? number Int? number
Boolean zip = true Boolean zip = true
......
...@@ -32,7 +32,8 @@ task Spades { ...@@ -32,7 +32,8 @@ task Spades {
Int? phredOffset Int? phredOffset
} }
Int clusterMemory = ceil(memoryGb / threads) Int clusterMemory = ceil(memoryGb / threads * 1.2)
Int memoryArg = ceil(memoryGb)
command { command {
set -e -o pipefail set -e -o pipefail
...@@ -60,7 +61,7 @@ task Spades { ...@@ -60,7 +61,7 @@ task Spades {
~{true="--disable-rr" false="" disableRepeatResolution} \ ~{true="--disable-rr" false="" disableRepeatResolution} \
~{"--dataset " + dataset} \ ~{"--dataset " + dataset} \
~{"--threads " + threads} \ ~{"--threads " + threads} \
~{"--memory " + memoryGb} \ ~{"--memory " + memoryArg} \
~{"-k " + k} \ ~{"-k " + k} \
~{"--cov-cutoff " + covCutoff} \ ~{"--cov-cutoff " + covCutoff} \
~{"--phred-offset " + phredOffset} ~{"--phred-offset " + phredOffset}
......
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