Skip to content

Commit

Permalink
updating model output logic basecalling
Browse files Browse the repository at this point in the history
  • Loading branch information
fraser-combe committed Nov 14, 2024
1 parent 978a15e commit a833f97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/basecalling/task_dorado_basecall.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ task basecall {
set -euo pipefail

# Capture Dorado version
dorado --version | tee DORADO_VERSION
dorado --version > DORADO_VERSION

# Define a log file path to capture output
log_file="dorado_basecall.log"
Expand Down Expand Up @@ -47,7 +47,9 @@ task basecall {
mv "$generated_sam" "$sam_file"

# Extract the detailed model name from the log file
model_name=$(grep -oP '(?<=downloading )[^ ]+' "$log_file" | head -n 1)
model_name=$(grep -oP '(?<=downloading )[^ ]+' "$log_file" | head -n 1 || echo "unknown_model")

# Write the model name to DORADO_MODEL, or default to "unknown_model"
echo "Extracted Dorado model name: $model_name"
echo "$model_name" > "DORADO_MODEL"

Expand Down

0 comments on commit a833f97

Please sign in to comment.