Skip to content

Commit

Permalink
Use shlex.split() on diamond_args; use --sensitive diamond option
Browse files Browse the repository at this point in the history
  • Loading branch information
lvreynoso committed May 3, 2024
1 parent dfb8475 commit ca8e5ae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion lib/idseq_utils/idseq_utils/diamond_scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import os
import shlex
import shutil
import sys
import errno
Expand Down Expand Up @@ -71,8 +72,10 @@ def diamond_blastx(
database,
"--out",
out,
f"--{diamond_args}",
]

cmd.extend(shlex.split(diamond_args))

for query in queries:
cmd += ["--query", query]
if chunk:
Expand Down
4 changes: 4 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ else
exit 1
fi

if [[ $WORKFLOW_NAME == long-read-mngs ]]; then
TAG="long-read-mngs-v0.7.6-branch-diamondsensitive"
fi

if [[ $( git branch --show-current) != "main" ]]; then
COMMIT=$(git rev-parse --short HEAD)
TAG=$TAG"-$COMMIT"
Expand Down
4 changes: 2 additions & 2 deletions workflows/long-read-mngs/run.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ task RunNRAlignment {
if [[ "~{run_locally}" == true ]]; then
diamond makedb --in "~{local_diamond_index}" -d reference
diamond blastx -d reference -q "~{assembled_reads_fa}" -o "diamond.m8" "--~{diamond_args}"
diamond blastx -d reference -q "~{assembled_reads_fa}" -o "diamond.m8" "~{diamond_args}"
else
python3 <<CODE
import os
Expand Down Expand Up @@ -1297,7 +1297,7 @@ workflow czid_long_read_mngs {
String minimap2_prefix = "gsnap"
String? diamond_db
String diamond_args = "long-reads"
String diamond_args = "--long-reads --sensitive"
Boolean use_deuterostome_filter = true
Boolean use_taxon_whitelist = false
Expand Down
2 changes: 1 addition & 1 deletion workflows/short-read-mngs/non_host_alignment.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ workflow czid_non_host_alignment {
String minimap2_db = "s3://czid-public-references/minimap2-test/2021-01-22/nt_k14_w8_20/"
String diamond_db = "s3://czid-public-references/diamond-test/2021-01-22/"
String minimap2_args = "-cx sr --secondary=yes"
String diamond_args = "mid-sensitive"
String diamond_args = "--mid-sensitive"
String minimap2_prefix = "gsnap"
String diamond_prefix = "rapsearch2"
Expand Down

0 comments on commit ca8e5ae

Please sign in to comment.