aertslab / arboreto

A scalable python-based framework for gene regulatory network inference using tree-based ensemble regressors.
BSD 3-Clause "New" or "Revised" License
54 stars 25 forks source link

Exception: too many values to unpack (expected 1) #28

Open xiatianjihao opened 3 years ago

xiatianjihao commented 3 years ago

Hi,

I am running GRNBoost2 as part of pySCENIC and encountered an error that I have not seen posts about previously. Here is what the console returns when I run it:

Traceback (most recent call last): File "", line 1, in File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/arboreto/algo.py", line 41, in grnboost2 early_stop_window_length=early_stop_window_length, limit=limit, seed=seed, verbose=verbose) File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/arboreto/algo.py", line 128, in diy seed=seed) File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/arboreto/core.py", line 419, in create_graph future_tf_matrix = client.scatter(tf_matrix, broadcast=True) File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/client.py", line 2186, in scatter hash=hash, File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/client.py", line 845, in sync self.loop, func, *args, callback_timeout=callback_timeout, kwargs File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/utils.py", line 353, in sync raise exc.with_traceback(tb) File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/utils.py", line 336, in f result[0] = yield future File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/tornado/gen.py", line 762, in run value = future.result() File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/client.py", line 2073, in _scatter timeout=timeout, File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/core.py", line 862, in send_recv_from_rpc result = await send_recv(comm=comm, op=key, kwargs) File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/core.py", line 661, in send_recv raise exc.with_traceback(tb) File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/core.py", line 501, in handle_comm result = await result File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/scheduler.py", line 5038, in scatter nthreads, data, rpc=self.rpc, report=False File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/utils_comm.py", line 149, in scatter_to_workers for address, v in d.items() File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/utils.py", line 237, in All result = await tasks.next() File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/core.py", line 862, in send_recv_from_rpc result = await send_recv(comm=comm, op=key, **kwargs) File "/home/ranxiaojuan/miniconda3/lib/python3.7/site-packages/distributed/core.py", line 663, in send_recv raise Exception(response["text"]) Exception: too many values to unpack (expected 1)

And I have more than 50000 cells with 10000 genes, could it may be too large of the datasets?