-
Notifications
You must be signed in to change notification settings - Fork 47
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
Unable to download progeny mouse model #218
Comments
Yes, I also encounter this error when I run the mouse model, it seems to be the error of converting mouse gene to human gene. |
hello, I also encounter the same error。 >>> import pycurl
>>> import decoupler as dc
>>>
>>>
>>> dc.get_progeny(organism = 'Mus musculus',top =100)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/public/home/niuxy/Software/miniconda3/envs/py39/lib/python3.9/site-packages/decoupler/omnip.py", line 139, in get_progeny
p = translate_net(
File "/public/home/niuxy/Software/miniconda3/envs/py39/lib/python3.9/site-packages/decoupler/omnip.py", line 432, in translate_net
_target_organism = taxonomy.ensure_ncbi_tax_id(target_organism)
File "/public/home/niuxy/Software/miniconda3/envs/py39/lib/python3.9/site-packages/pypath/utils/taxonomy.py", line 367, in ensure_ncbi_tax_id
taxid_from_common_name(taxon_id) or
File "/public/home/niuxy/Software/miniconda3/envs/py39/lib/python3.9/site-packages/pypath/utils/taxonomy.py", line 283, in taxid_from_common_name
common_to_ncbi = get_db('common')
File "/public/home/niuxy/Software/miniconda3/envs/py39/lib/python3.9/site-packages/pypath/utils/taxonomy.py", line 435, in get_db
init_db(key)
File "/public/home/niuxy/Software/miniconda3/envs/py39/lib/python3.9/site-packages/pypath/utils/taxonomy.py", line 450, in init_db
ncbi_data = uniprot_input.uniprot_ncbi_taxids_2()
File "/public/home/niuxy/Software/miniconda3/envs/py39/lib/python3.9/site-packages/pypath/inputs/uniprot.py", line 1301, in uniprot_ncbi_taxids_2
for line in c.result:
TypeError: 'NoneType' object is not iterable |
I now have an alternative solution to this problem.
##select top n gene
Or you can do progeny analysis directly in R:
|
@xiangrong7, yours is not the same error, it happens on a completely different line. The error that you encountered is likely due to a random network failure, your computer failed to download a file. You can get rid of the error by trying again on a good quality network:
|
Hello @jpfeil, Apologies about the slow answer. I have to correct my previous comment, actually your issue is very similar to @xiangrong7's, it is a transient networking error. The traceback is long, but the most downstream element that we can identify is the call at
The solution is similar to the one suggested above: try again this particular download with the cache turned off:
I hope this helps, please let me know if you're still experiencing any issue. Best, Denes |
I used the method you mentioned above.I don't know if other people's problems have been solved, but my problems still exist. <class 'TypeError'>, 'NoneType' object is not iterable, <traceback object at 0x2b65030c4040> |
Hi @nierq, I'm sorry to hear this error is still with you. I've just run the above function successfully, suggesting that this is a download issue similar to the others above. These kind of errors are not uncommon, but having them so often suggests a really bad connection or some other issue. To know more we need curl debug logs:
If the download is not successful, the above log could give useful information. This file is not too large (2.3 MB), repeated failure of downloading it suggests some fundamental issue. Can you download it from the CLI?
Can you open the URL above in your browser? |
I also encountered a problem:
|
This latter is a download failure, which is either accidental, or is specific to your network, system or environment. |
Describe the bug
Tried downloading the progeny mouse model but I get a TypeError: Nonetype is not iterable. Human works fine.
To Reproduce
Expected behavior
Expected to download the mouse marker genes.
System
Additional context
The text was updated successfully, but these errors were encountered: