Skip to content

Commit

Permalink
Add backwards compatibility to diamond_blastx
Browse files Browse the repository at this point in the history
  • Loading branch information
lvreynoso committed May 7, 2024
1 parent 1d47826 commit 6122cfd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/idseq_utils/idseq_utils/diamond_scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ def diamond_blastx(
out,
]

# backwards compatibility for function calls that expect this function
# to automatically append "--" to diamond_args
if diamond_args == "long-reads" or diamond_args == "mid-sensitive":
diamond_args = "--" + diamond_args

cmd.extend(shlex.split(diamond_args))

for query in queries:
Expand Down

0 comments on commit 6122cfd

Please sign in to comment.