Closed harper357 closed 3 years ago
Thanks for the well written bug report. Only, I wasn't able to reproduce:
❯ bin/kingfisher annotate -r ERR1739691 --debug
08/11/2021 01:54:07 AM INFO: Kingfisher v0.0.1-dev
08/11/2021 01:54:07 AM INFO: Querying NCBI esearch for 1 distinct accessions e.g. ERR1739691
08/11/2021 01:54:07 AM DEBUG: Starting new HTTPS connection (1): eutils.ncbi.nlm.nih.gov:443
08/11/2021 01:54:09 AM DEBUG: https://eutils.ncbi.nlm.nih.gov:443 "GET /entrez/eutils/esearch.fcgi?db=sra&term=ERR1739691%5Baccn%5D&tool=kingfisher&email=kingfisher%40github.com&retmax=1000 HTTP/1.1" 200 None
08/11/2021 01:54:09 AM INFO: Querying NCBI efetch for 1 distinct IDs e.g. 4165047
08/11/2021 01:54:09 AM DEBUG: Running efetch for IDs with request term: 4165047
08/11/2021 01:54:09 AM DEBUG: Starting new HTTPS connection (1): eutils.ncbi.nlm.nih.gov:443
08/11/2021 01:54:10 AM DEBUG: https://eutils.ncbi.nlm.nih.gov:443 "GET /entrez/eutils/efetch.fcgi?db=sra&id=4165047&tool=kingfisher&email=kingfisher%40github.com&rettype=runinfo&retmode=text HTTP/1.1" 200 None
Run | SRAStudy | Gbp | LibraryStrategy | LibrarySelection | Model | SampleName | ScientificName
---------- | --------- | ----- | --------------- | ---------------- | ------------------- | ------------ | --------------
ERR1739691 | ERP017539 | 2.382 | WGS | RANDOM | Illumina HiSeq 2500 | SAMEA4497179 | metagenome
08/11/2021 01:54:10 AM INFO: Kingfisher done.
Can I ask what git version you are on, (and whether updating to main's HEAD fixes it)? Thanks.
Oh I'm sorry, I retested on python3.9 and got your error (it worked fine with 3.6). I'm on it.
No worries. Thanks!
Better, I hope?
In python3.9,
getchildren()
was removed. This causes the following error when trying the annotate functionsee: https://docs.python.org/3.8/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.getchildren