arboreto
arboreto copied to clipboard
grnboost error
Hello, When I run "network = grnboost2(expression_data=ex_matrix,tf_names=tf_names)" according to the tutorial, the following error occured: here is a snippet of the errors:
distributed.core - ERROR - Timed out trying to connect to 'tcp://127.0.0.1:33261' after 10 s: connect() didn't finish in time tornado.util.TimeoutError: Timeout OSError: Timed out trying to connect to 'tcp://127.0.0.1:33261' after 10 s: connect() didn't finish in time tornado.application - ERROR - Exception in Future <Future cancelled> after timeout distributed.comm.tcp - WARNING - Closing dangling stream in <TCP local=tcp://127.0.0.1:56994 remote=tcp://127.0.0.1:56550> distributed.comm.tcp - WARNING - Closing dangling stream in <TCP local=tcp://127.0.0.1:56995 remote=tcp://127.0.0.1:56550> distributed.comm.tcp - WARNING - Closing dangling stream in <TCP local=tcp://127.0.0.1:56997 remote=tcp://127.0.0.1:56550>
Based on your pySCENIC issue, I think the Tornado error is not the root cause. Tornado probably times out because of a problem with the configuration of the numerical libraries on your system, OpenBLAS in this case.
Perhaps following StackOverflow question can help you resolve the matter: https://stackoverflow.com/questions/51256738/multiple-instances-of-python-running-simultaneously-limited-to-35
PS: it really helps posting issues with more contextual information, like the other issue you filed, longer snippet from the error log, information on what kind of system you are running (operating system, specs etc.), and what Python environment you are using.
I still cannot run grnboost although I change OpenBLAS settings according to your indication, here are the detailed error message:
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
tornado.application - ERROR - Multiple exceptions in yield list
Traceback (most recent call last):
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 883, in callback
result_list.append(f.result())
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/tornado/gen.py", line 1147, in run
yielded = self.gen.send(value)
File "/home/wangjw/miniconda3/envs/python36/lib/python3.6/site-packages/distributed/deploy/local.py", line 217, in _start_worker
raise gen.TimeoutError("Worker failed to start")
tornado.util.TimeoutError: Worker failed to start
Traceback (most recent call last):
File "pipeline", line 18, in
@wangjiawen2013 I have the same problem, Have you solve this problem? Thank you.
@vagabond12 solve it like this:
arboreto_with_multiprocessing.py
expr_mat.loom
allTFs_hg38.txt
--method grnboost2
--output adj.tsv
--num_workers 20
--seed 777
https://pyscenic.readthedocs.io/en/latest/faq.html
the latest pyscenic added a helper script arboreto_with_multiprocessing.py that runs the Arboreto GRN algorithms (GRNBoost2, GENIE3) without Dask for compatibility. Then you can import the results into jupyter notebook.

Thank you, I know this helper script. But I do not think this helper script runs the Arboreto GRN algorithms (GRNBoost2, GENIE3) without Dask for compatibility, Because it has the same warning of dask as pyscenic grn. If they all use dask, Why pyscenic grn always does not work? That is a question.
I think the warnings are irrevelant to dask. It's just on the configuration parameters (in .yaml format) or other things.