Skip to content

Commit

Permalink
vadr tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Jan 13, 2025
1 parent 6e51801 commit bc9949c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pipes/WDL/tasks/tasks_ncbi.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -1442,10 +1442,19 @@ task vadr {
set -e
# unpack custom VADR models or use default
if [ -n "~{vadr_model_tar}" ]; then
mkdir -p vadr_models
tar -C vadr_models -xzvf "~{vadr_model_tar}"
mkdir -p vadr-untar
tar -C vadr-untar -xzvf "~{vadr_model_tar}"
if [ -n "vadr-untar/vadr-models-hsv-1.0" ]; then
# this HSV tarball is structured weird, collapse its contents
mkdir -p vadr-models
ln -s vadr-untar/vadr-models-hsv-1.0/hsv?/* vadr-models
else
# this is a normal model tarball, just link the model subdirectory, not the outer wrapper
ln -s vadr-untar/*/ vadr-models
fi
else
ln -s /opt/vadr/vadr-models vadr_models
# use default (distributed with docker image) models
ln -s /opt/vadr/vadr-models vadr-models
fi
# remove terminal ambiguous nucleotides
Expand Down

0 comments on commit bc9949c

Please sign in to comment.