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

phonograph.cluster() function doesn't seem to work correctly on Windows Subsystem for Linux #13

Open
danli349 opened this issue Mar 12, 2021 · 12 comments

Comments

@danli349
Copy link

Hi
I run this PhenoGraph tutorial "tutorial_pbmc3k.ipynb"
But the “phonograph.cluster()” function can’t successfully calculate the communities, all the communities are zeros. But there is no error or warning.
Is there something wrong with this function?
IPython 7.20.0
jupyter_client 6.1.11
jupyter_core 4.7.1
jupyterlab 3.0.7
notebook 6.2.0
scanpy==1.6.1 anndata==0.7.5 umap==0.4.6 numpy==1.19.2 scipy==1.4.1 pandas==1.2.1 scikit-learn==0.24.1 statsmodels==0.12.1 python-igraph==0.8.3 louvain==0.7.0 leidenalg==0.8.1

Thanks
Dan

@hisplan
Copy link
Member

hisplan commented Oct 12, 2021

We have tried the tutorial notebook again and it's working fine. Are you still having this issue?

@danli349
Copy link
Author

I still can't run it through, the communities are all zeros:
image

@danli349
Copy link
Author

image

@hisplan
Copy link
Member

hisplan commented Oct 12, 2021

Strange. Are you using the dataset 3k PBMCs from a Healthy Donor (from 10x website)?

@danli349
Copy link
Author

@danli349
Copy link
Author

It seems this problem only happens on Ubuntu (Windows Subsystem for Linux), I run the same tutorial "tutorial_pbmc3k.ipynb" on Windows 10, it can run through successfully.

image
image

@hisplan
Copy link
Member

hisplan commented Oct 12, 2021

Sorry, we do not currently have a way to test this under Windows Subsystem for Linux. Did you check adata.X or adata.obsm["X_pca"] if these objects have non-zero values for example??

I'm also curious whether a much simpler example works on your environment or not:
https://github.com/dpeerlab/PhenoGraph/blob/master/examples/example-using-random-data-points.ipynb

@danli349
Copy link
Author

Yes, this tutorial
https://github.com/dpeerlab/PhenoGraph/blob/master/examples/example-using-random-data-points.ipynb
can run through successfully on both Windows 10 and Ubuntu (WSL).
Thanks

@hisplan
Copy link
Member

hisplan commented Oct 12, 2021

Okay. That's good to know. Just trying to isolate the problem here.

Do you think you can restart the kernel, rerun the notebook from scratch, save the adata right before the section 1.4 and send us both the notebook and adata file (.h5ad)?

@danli349
Copy link
Author

For tutorial "tutorial_pbmc3k.ipynb" on Ubuntu(WSL):
image

@hisplan
Copy link
Member

hisplan commented Oct 12, 2021

@danli349 so I loaded up your adata and just performed the clustering on different platforms:

  • macOS Mojave 10.14.6
  • Ubuntu 20.04
  • CentOS 7.6

Yet, I couldn't reproduce the issue you're having. I think this is very specific to WSL. Aforementioned, we do not have that environment so cannot do any more testing at the moment.

Is there any particular reason that you want to use WSL for your analysis?

@danli349
Copy link
Author

Great. Thanks a lot.

@hisplan hisplan changed the title “phonograph.cluster()” function can’t successfully calculate the communities, all the communities are zeros. phonograph.cluster() function doesn't seem to work correctly on Windows Subsystem for Linux Oct 12, 2021
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

2 participants