diff --git a/hisat2.wdl b/hisat2.wdl index bc6be2e84315d05a05f9d14da75cbe4c0507bbd4..aafa3331855338de57d4ac8d2d836ee7f064937d 100644 --- a/hisat2.wdl +++ b/hisat2.wdl @@ -31,6 +31,7 @@ task Hisat2 { String readgroup String platform = "illumina" Boolean downstreamTranscriptomeAssembly = true + String summaryFilePath = basename(outputBam, ".bam") + ".summary.txt" Int threads = 1 String memory = "48G" @@ -55,6 +56,7 @@ task Hisat2 { --rg 'LB:~{library}' \ --rg 'PL:~{platform}' \ ~{true="--dta" false="" downstreamTranscriptomeAssembly} \ + --summary-file ~{summaryFilePath} \ | samtools sort > ~{outputBam} samtools index ~{outputBam} ~{bamIndexPath} } @@ -62,6 +64,7 @@ task Hisat2 { output { File bamFile = outputBam File bamIndex = bamIndexPath + File summaryFile = summaryFilePath } runtime {