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

make outputs write to files and prefix is a must

parent 1c1a9554
No related branches found
No related tags found
1 merge request!4Add quantification tools
...@@ -85,7 +85,7 @@ task BaseCounter { ...@@ -85,7 +85,7 @@ task BaseCounter {
File bam File bam
File refFlat File refFlat
String outputDir String outputDir
String? prefix String prefix
command { command {
set -e -o pipefail set -e -o pipefail
...@@ -95,7 +95,7 @@ task BaseCounter { ...@@ -95,7 +95,7 @@ task BaseCounter {
-b ${bam} \ -b ${bam} \
-r ${refFlat} \ -r ${refFlat} \
-o ${outputDir} \ -o ${outputDir} \
${"-p" + prefix} -p ${prefix}
} }
output { output {
......
task HTSeqCount { task HTSeqCount {
String? preCommand
Array[File] alignmentFiles Array[File] alignmentFiles
File gffFile File gffFile
String outputTable
String? format String? format
String? order String? order
String? stranded String? stranded
String? preCommand
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
...@@ -16,10 +15,11 @@ task HTSeqCount { ...@@ -16,10 +15,11 @@ task HTSeqCount {
-r ${default="pos" order} \ -r ${default="pos" order} \
-s ${default="no" stranded} \ -s ${default="no" stranded} \
${sep=" " alignmentFiles} \ ${sep=" " alignmentFiles} \
${gffFile} ${gffFile} \
> ${outputTable}
} }
output { output {
File counts = stdout() File counts = outputTable
} }
} }
\ No newline at end of file
...@@ -3,6 +3,7 @@ task Stringtie { ...@@ -3,6 +3,7 @@ task Stringtie {
File alignedReads File alignedReads
File? referenceGFF File? referenceGFF
Int? threads Int? threads
String assembledTranscripts
command { command {
set -e -o pipefail set -e -o pipefail
...@@ -10,11 +11,12 @@ task Stringtie { ...@@ -10,11 +11,12 @@ task Stringtie {
stringtie \ stringtie \
${"-p " + threads} \ ${"-p " + threads} \
${"-G " + referenceGFF} \ ${"-G " + referenceGFF} \
${alignedReads} ${alignedReads} \
> ${assembledTranscripts}
} }
output { output {
File assembledTranscripts = stdout() File assembledTranscripts = assembledTranscripts
} }
runtime { runtime {
......
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