Skip to content

Commit

Permalink
allow virus arg to be passed as int (e.g. taxid)
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraluebbert authored Oct 17, 2024
1 parent 6f82b94 commit b81030f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gget/gget_ncbi_virus.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,8 @@ def ncbi_virus(
raise TypeError(
"Argument 'proteins_complete' must be a boolean (True or False) or None."
)
if isinstance(virus, int):
virus = str(virus)

check_min_max(
min_seq_length,
Expand Down

0 comments on commit b81030f

Please sign in to comment.