Skip to content

Commit

Permalink
update model output
Browse files Browse the repository at this point in the history
  • Loading branch information
fraser-combe committed Nov 14, 2024
1 parent e3df8f6 commit b4dd0a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tasks/basecalling/task_dorado_demux.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ task dorado_demux {
Int memory = 16
Int disk_size = 100
String docker = "us-docker.pkg.dev/general-theiagen/staphb/dorado:0.8.0"
Array[String] dorado_model_used
String dorado_model_used
}

command <<<
set -euo pipefail

# Capture Dorado version
dorado --version | tee DORADO_VERSION
echo "Dorado version:" $(cat DORADO_VERSION)

#Dorado model used
array=(~{sep=''dorado_model_used})
echo "${array[0]}" > DORADO_MODEL_USED
# Output the Dorado model used
echo "~{dorado_model_used}" > DORADO_MODEL_USED

fastq_file_name="~{fastq_file_name}"
kit_name="~{kit_name}"
Expand Down Expand Up @@ -103,7 +103,7 @@ task dorado_demux {
String dorado_docker = docker
String dorado_version = read_string("DORADO_VERSION")
File dorado_demux_log = "dorado_demux.log"
String dorado_model_used = read_string("DORADO_MODEL_USED")
String dorado_model_name = read_string("DORADO_MODEL_USED")
}

runtime {
Expand Down
4 changes: 2 additions & 2 deletions workflows/utilities/wf_dorado_basecalling.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ workflow dorado_basecalling_workflow {
# Versions and model used
String dorado_version = dorado_demux.dorado_version
String samtools_version = samtools_convert.samtools_version
String dorado_model_used = dorado_demux.dorado_model_used
String dorado_model_used = dorado_demux.dorado_model_name
}
}
}

0 comments on commit b4dd0a7

Please sign in to comment.