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

Add a Bwa index task

parent c7754754
No related branches found
No related tags found
No related merge requests found
......@@ -114,3 +114,29 @@ struct BwaIndex {
File fastaFile
Array[File] indexFiles
}
task Index {
input {
File fasta
}
File indexedFile = "reference.fasta"
command {
set -e
cp ~{fasta} ~{indexedFile}
bwa index ~{indexedFile}
}
output {
BwaIndex index = {
"fastaFile": indexedFile,
"indexFiles": [
indexedFile + ".amb",
indexedFile + ".ann",
indexedFile + ".bwt",
indexedFile + ".pac",
indexedFile + ".sa"
]
}
}
}
\ No newline at end of file
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