Skip to content
Snippets Groups Projects
Unverified Commit 31384d64 authored by Ruben Vorderman's avatar Ruben Vorderman Committed by GitHub
Browse files

Merge pull request #50 from biowdl/BIOWDL-6

Added sctruct for index files
parents 2f0b9b60 7d977a32
No related branches found
No related tags found
No related merge requests found
...@@ -5,8 +5,7 @@ task Mem { ...@@ -5,8 +5,7 @@ task Mem {
String? preCommand String? preCommand
File inputR1 File inputR1
File? inputR2 File? inputR2
File referenceFasta BwaIndex bwaIndex
Array[File] indexFiles # These indexFiles need to be added, otherwise cromwell will not find them.
String outputPath String outputPath
String? readgroup String? readgroup
...@@ -20,7 +19,7 @@ task Mem { ...@@ -20,7 +19,7 @@ task Mem {
~{preCommand} ~{preCommand}
bwa mem ~{"-t " + threads} \ bwa mem ~{"-t " + threads} \
~{"-R '" + readgroup + "'"} \ ~{"-R '" + readgroup + "'"} \
~{referenceFasta} \ ~{bwaIndex.fastaFile} \
~{inputR1} \ ~{inputR1} \
~{inputR2} \ ~{inputR2} \
| samtools sort --output-fmt BAM - > ~{outputPath} | samtools sort --output-fmt BAM - > ~{outputPath}
...@@ -75,3 +74,7 @@ task Index { ...@@ -75,3 +74,7 @@ task Index {
} }
} }
struct BwaIndex {
File fastaFile
Array[File] indexFiles
}
...@@ -134,3 +134,9 @@ task StringArrayMd5 { ...@@ -134,3 +134,9 @@ task StringArrayMd5 {
memory: 1 memory: 1
} }
} }
struct Reference {
File fasta
File fai
File dict
}
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