-
Notifications
You must be signed in to change notification settings - Fork 13
Fix: Handle invalid GenBank accessions or missing RefSeq accessions in _resolve_genbank_accession() #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…nt httpx related errors
|
Mypy complains about redefining a variable, but this issue existed before my changes. Fixing it would also result in multiple return statements, which I tried to avoid. How would you like to proceed? |
Just remove the type hint on line 295, and it should be fixed @liannette |
Co-authored-by: Giulia Crocioni <55382553+gcroci2@users.noreply.github.com>
|
Now the static typing passes :) but I think that this tests error: |
|
I looked into the test failure, and it doesn’t seem to be related to my changes. My updates only affect the functionality for converting GenBank to RefSeq accessions. From what I can tell, the error happens earlier in the test—during the conversion of a JGI_Genome_ID to a GenBank accession in the _resolve_jgi_accession function. The logs show that the request to https://img.jgi.doe.gov/cgi-bin/m/main.cgi?section=TaxonDetail&page=taxonDetail&taxon_oid=640427140 timed out: It looks like an httpx.ReadTimeout issue while waiting for a response from their website. I have the impression the site has been having issues for a few days now, but retrying the test later should hopefully resolve it. |
Sorry for the delay. I've verified that the failing test should not be related to the edits in this PR. |
|
Great! Could you also merge it? 🙏 |
Fixes issue #307 + additional issue
This PR addresses two different bugs in the
_resolve_genbank_accession()function when resolving GenBank accession numbers to RefSeq accessions:Changes & Improvements:
"") when no RefSeq accession is available.