-
Notifications
You must be signed in to change notification settings - Fork 46
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
PETSC error at cr.tl.initial_states #588
Comments
Hi @mehrankr I believe this is the same issue as in #473 (not sure why, but in some cases, PETSc parallelization doens't play nicely with they way we parallelize [by default through processes]).
Hmm, this should not really happen, esp. for
Very strange, since
This is expected, since |
Hi @mehrankr, did these tips help you with your problem already? |
Unfortunately no, I'm still getting the same error:
|
mhm, @michalk8 , could you look into this please? |
Thanks for following up. Send me an email and we can arrange for passing you the loom file if needed: mkarimzadeh@vectorinstitute.ai |
Hi @mehrankr , just to be completely sure, does the code above #588 (comment) actually raise some Python exception (or crashes the ipykernel), or does it simply print out to the error to the console? If it crashes/raises an exception, I will ping you over the email for the data. Lastly, could you please print the output of the following command? python -c "import petsc4py; import slepc4py; print(petsc4py.__version__); print(slepc4py.__version__)" |
Hi @michalk8, It doesn't crash actually. It simply prints the message out. The output is:
|
Thanks for confirming this. I can see the same error in our CI, as well as in import cellrank as cr
adata = cr.datasets.pancreas_preprocessed()
cr.tl.terminal_states(adata)
cr.tl.lineages(adata, n_jobs=1, backend='threading') produces: As long as it doesn't throw an error/crashed the kernel as in #473, it should be fine. |
I'm closing, as I think you guys figures out that this is not critical. |
I installed cellrank in a new environment in python3.8 using
conda install -c conda-forge -c bioconda cellrank-krylov
I think the recipe needs to be updated to require the latest networkx otherwise paga compatibility breaks with matplotlib error
This installs cellrank 1.3.1 currently and in some of the scvelo and cellrank functions, particularly
cr.tl.initial_states(adata, cluster_key='Cluster', n_jobs=1)
I get the following error:
This used to happen for:
But after changing it to:
didn't happen any more.
Very surprisingly, the same issue rises some times (not always) when running:
scv.tl.recover_dynamics(adata, n_jobs=1, n_top_genes=1000)
and
scv.tl.velocity(adata, mode='dynamical')
Versions:
cellrank==1.3.1 scanpy==1.7.2 anndata==0.7.6 numpy==1.20.2 numba==0.53.1 scipy==1.6.3 pandas==1.2.4 pygpcca==1.0.2 scikit-learn==0.24.2 statsmodels==0.12.2 python-igraph==0.9.1 scvelo==0.2.3 pygam==0.8.0 matplotlib==3.4.2 seaborn==0.11.1
The text was updated successfully, but these errors were encountered: