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

modify index input for hisat2

parent b7e9ca35
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@ version 1.0
task Hisat2 {
input {
File indexDirectory
String indexBasename
File inputR1
File? inputR2
......@@ -19,12 +18,15 @@ task Hisat2 {
String dockerTag = "2388ff67fc407dad75774291ca5038f40cac4be0-0"
}
Array[File] indexFiles = glob(indexBasename + "*")
String indexPath = sub(indexFiles[0], "\.[0-9]\.ht2", "")
command {
set -e -o pipefail
mkdir -p $(dirname ~{outputBam})
hisat2 \
-p ~{threads} \
-x ~{indexDirectory}/~{indexBasename} \
-x ~{indexPath} \
~{true="-1" false="-U" defined(inputR2)} ~{inputR1} \
~{"-2" + inputR2} \
--rg-id ~{readgroup} \
......
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