Giter VIP home page Giter VIP logo

Comments (7)

ys-zong avatar ys-zong commented on June 23, 2024

I haven't met this error before. My leidenalg version is 0.8.7.

It seems to me that the error might be from the input data as it says Weight vector not the same size as the number of edges. I wonder what data are you using and can you double-check if the input adata is correct?

from const.

nikhilmehta16 avatar nikhilmehta16 commented on June 23, 2024

First I tried to run your code as it was without making any changes and received this error,
next I retrained the model on slice 151507 from the spatialLIBD data set as provided in the Google Drive Link in Readme.md.
But still facing with the same error.

from const.

ys-zong avatar ys-zong commented on June 23, 2024

can you post a link to your adata so that I can check what's going wrong?

from const.

nikhilmehta16 avatar nikhilmehta16 commented on June 23, 2024

@ys-zong
I checked the weights of data and found to be equal.
When I dig deeper, this issue seems to be related to compatibility of leidenalg and python i-graph,
As mentioned scverse/scanpy#2339 on scanpy issues.
I tried all the solutions in the comments but was of no success.
Could you please provide which exact versions of python-igraph / igraph you were using.
Thanks

from const.

ys-zong avatar ys-zong commented on June 23, 2024

I'm using pythton-igraph 0.9.6

from const.

nikhilmehta16 avatar nikhilmehta16 commented on June 23, 2024

Using leidenalg=0.8.7 an pythton-igraph=0.9.6 finally fixed the issue.
I tried various combinations of versions but nothing worked.
Also, no solution on scverse/scanpy#2339 was of use.

It would be greate if you can mention this requirement in readme file.
Thanks @ys-zong

from const.

szhorvat avatar szhorvat commented on June 23, 2024
  • leidenalg 0.9.x requires igraph 0.10.x
  • leidenalg 0.8.x requires igraph 0.9.x

If you use the latest version of both (leidenalg 0.9.0 and igraph 0.10.2), things should work fine. If you see an incompatibility between these specific versions, you should probably report it to leidenalg.

from const.

Related Issues (8)

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.