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