Skip to content
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

PhenoGraph multi-processing error #46

Closed
team-tomato-salad opened this issue Sep 4, 2020 · 3 comments
Closed

PhenoGraph multi-processing error #46

team-tomato-salad opened this issue Sep 4, 2020 · 3 comments

Comments

@team-tomato-salad
Copy link

Hi,

I was trying to use Palantir.presults.cluster_gene_trends funtion and run into a Type Error showing- "expected list, got np.ndarray". The function worked perfectly before the scanpy update, and I also updated Palantir package. I also followed the latest Palantir tutorial notebook.

/usr/lib/python3.8/site-packages/scipy/sparse/lil.py in tocsr(self, copy)
475 indices = np.empty(nnz, dtype=idx_dtype)
476 data = np.empty(nnz, dtype=self.dtype)
--> 477 _csparsetools.lil_flatten_to_array(self.rows, indices)
478 _csparsetools.lil_flatten_to_array(self.data, data)

_csparsetools.pyx in scipy.sparse._csparsetools.lil_flatten_to_array()

_csparsetools.pyx in scipy.sparse._csparsetools._lil_flatten_to_array_int32()

TypeError: Expected list, got numpy.ndarray

The issue was fixed by setting n_job parameter to 1. I am not sure why n_job -1 would cause the issue and would like to know if this issue happens on other systems.

Thank you for your time!

@ManuSetty
Copy link
Member

Thanks for bringing this to our attention. This looks like an issues with scipy and more details are here: dpeerlab/PhenoGraph#4.

@hisplan
Copy link
Member

hisplan commented Oct 7, 2020

@team-tomato-salad we have just released PhenoGraph v1.5.7. Please try again with this version.

@hisplan
Copy link
Member

hisplan commented Oct 20, 2020

Please reopen if you have any issue.

@hisplan hisplan closed this as completed Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants