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 {
String? preCommand
File inputR1
File? inputR2
File referenceFasta
Array[File] indexFiles # These indexFiles need to be added, otherwise cromwell will not find them.
BwaIndex bwaIndex
String outputPath
String? readgroup
......@@ -20,7 +19,7 @@ task Mem {
~{preCommand}
bwa mem ~{"-t " + threads} \
~{"-R '" + readgroup + "'"} \
~{referenceFasta} \
~{bwaIndex.fastaFile} \
~{inputR1} \
~{inputR2} \
| samtools sort --output-fmt BAM - > ~{outputPath}
......@@ -75,3 +74,7 @@ task Index {
}
}
struct BwaIndex {
File fastaFile
Array[File] indexFiles
}
......@@ -134,3 +134,9 @@ task StringArrayMd5 {
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