Skip to content

Commit

Permalink
Quick fix egquery down (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihailefter committed Apr 9, 2024
1 parent d9bbe31 commit caf96f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mutalyzer_retriever/sources/ncbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,13 @@ def fetch(reference_id, reference_type, size_on=True, timeout=1):
:returns tuple: raw annotations, type ("gff3" or "genbank")
"""
db = _get_database(reference_id)
db = "nuccore"
if (
reference_id.startswith("NP")
or reference_id.startswith("XP")
or reference_id.startswith("WP")
):
db = "protein"
if reference_type in [None, "gff3"]:
return fetch_gff3(reference_id, db, timeout), "gff3"
elif reference_type == "fasta":
Expand Down

0 comments on commit caf96f2

Please sign in to comment.