Pandora-IsoMemo / drat

R packages developed in the Pandora IsoMemo project
0 stars 0 forks source link

Check integration of python package BayesPowerlaw into R #43

Closed arunge closed 1 month ago

arunge commented 2 months ago

... feedback on some of the apps from external collaborators is quite slow. I was thinking of replacing some of the apps for now. To start with, can we replace ABM by this Python app: https://github.com/AtwalLab/BayesPowerlaw

Originally posted by @isomemo in https://github.com/Pandora-IsoMemo/drat/issues/38#issuecomment-2325990638

arunge commented 2 months ago
arunge commented 2 months ago

@isomemo If I remember correctly, you mentioned that the plan is to

Correct? Let me know, if you would like another of the new apps to be postponed.

f-lukas commented 2 months ago

I have installed the package BayesPowerlaw with pip as mentioned in the package documentation. I then tried to import the package with python which already failed. I also tried importing the package in R with reticulate which also failed with the same error message.

Bildschirmfoto vom 2024-09-27 14-07-15

 >>> import BayesPowerlaw as bp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "./BayesPowerlaw/__init__.py", line 1, in <module>
    from BayesPowerlaw.src.BayesPowerlaw import bayes
ModuleNotFoundError: No module named 'BayesPowerlaw.src'

Bildschirmfoto vom 2024-09-27 14-11-49

The package does not seem to have a correct package structure. The last update of the package was 5 years ago so the structure might be outdated. We should discuss in the next meeting if and how we should continue here.

arunge commented 1 month ago

We decided to stop here because of errors already during the import of the package.