Giter Site home page Giter Site logo

fail to run plot about cellphonedb HOT 6 CLOSED

teichlab avatar teichlab commented on August 9, 2024
fail to run plot

from cellphonedb.

Comments (6)

mvento avatar mvento commented on August 9, 2024

Hi @YiqunCao,

Thanks for using CellPhoneDB.
Some questions:

  • What distro/version of Linux are you using?
  • What Python/R versions are you using?
  • What CellPhoneDB version are you using?
  • What command are you trying to use?

Using plots requires R and some R libraries. Some people experiments compatibility errors. To avoid these errors, we highly recommend using CellPhoneDB Docker image.

Best

from cellphonedb.

djh1991 avatar djh1991 commented on August 9, 2024

Hi,
I get the same error as follows:
"""
[root@localhost example_data]# cellphonedb plot dot_plot
[ ][APP][21/10/19-08:06:36][ERROR] Unexpected error
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/cellphonedb/src/api_endpoints/terminal_api/plot_terminal_api_endpoints/plot_terminal_commands.py", line 38, in dot_plot
columns=columns)
File "/usr/local/lib/python3.6/site-packages/cellphonedb/src/plotters/r_plotter.py", line 35, in wrapper
from rpy2.rinterface_lib.embedded import RRuntimeError
File "/usr/local/lib/python3.6/site-packages/rpy2/rinterface_lib/embedded.py", line 7, in
from . import openrlib
File "/usr/local/lib/python3.6/site-packages/rpy2/rinterface_lib/openrlib.py", line 41, in
_get_dataptr_fallback)
File "/usr/local/lib/python3.6/site-packages/rpy2/rinterface_lib/openrlib.py", line 26, in _get_symbol_or_fallback
res = getattr(rlib, symbol)
RuntimeError: found a situation in which we try to build a type recursively. This is known to occur e.g. in ``struct s { void(*callable)(struct s); }''. Please report if you get this error and really need support for your case.
"""
R 3.6.1
python 3.6
system : centos 8
It can find the R and R librarires Correctly, but can not get the function by getattr。 Does it was a bug when run rpy2 in centos8?

from cellphonedb.

babiddy avatar babiddy commented on August 9, 2024

I helped someone in our lab who was running into the same error. We followed the advice from here, and ran this command pip install cffi==1.12.3 in the virtual environment that cellphonedb is installed in. This fixed the issue for us.

from cellphonedb.

mvento avatar mvento commented on August 9, 2024

Hi @babiddy,

I very appreciate your help. We will add this library to Python requirements.

Best

from cellphonedb.

babiddy avatar babiddy commented on August 9, 2024

Hello @mvento!

I'm happy I could help. CellPhoneDB is a great tool and has been useful for us. Can't wait to see how it develops!

Best
Brent

from cellphonedb.

djh1991 avatar djh1991 commented on August 9, 2024

Hi @babiddy @mvento
Thank you for your advices。 I tried again and resolved this question.

from cellphonedb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.