Skip to content
Snippets Groups Projects
Commit 5893adcc authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

add picard SamToFastq

parent 264627ed
No related branches found
No related tags found
1 merge request!11Changes needed for the iterative assembly pipeline
......@@ -147,6 +147,40 @@ task MergeVCFs {
File output_vcf_index = output_vcf_path + ".tbi"
}
runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5]))
}
}
task SamToFastq {
String? preCommand
File inputBam
String outputRead1
String? outputRead2
String? outputUnpaired
String picard_jar
Float? memory
Float? memoryMultiplier
Int mem = ceil(select_first([memory, 4.0]))
command {
set -e -o pipefail
${preCommand}
java \
-Xmx${mem}G \
-jar ${picard_jar} \
I=${inputBam} \
${"FASTQ=" + outputRead1} \
${"SECOND_END_FASTQ=" + outputRead2} \
${"UNPAIRED_FASTQ=" + outputUnpaired}
}
output {
File read1 = outputRead1
File? read2 = outputRead2
File? unpairedRead = outputUnpaired
}
runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5]))
}
......
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