GithubHelp home page GithubHelp logo

Comments (3)

dhimmel avatar dhimmel commented on August 11, 2024

It shouldn't be too hard to use the hetio Python package to read in the JSON-formatted permuted hetnet files and then create a network object from that. I think the MultiGraph is the best networkx data structure to store hetnets, but it is far from perfect:

From #8 (comment):

networkx isn't a good option as it's hetnet support is mediocre --- the MultiGraph supports relationship types but not node types and doesn't really provide first-class type support.

Therefore, I personally have avoided using networkx for hetnets, and instead used Neo4j, hetio, and hetmatpy (when doing matrix operations).

@lingling93 what is your use case for converting the permuted hetnets into networkx? I can help you figure out the proper code to use, but I am wondering if networx is the right solution.

from hetionet.

lingling93 avatar lingling93 commented on August 11, 2024

I want to compare the result of permutation graph with Hetio graph. Now I'm trying to input hetio graph and permutation graphs to node2vec(https://github.com/eliorc/node2vec), this package only accept networkx type graph.

from hetionet.

dhimmel avatar dhimmel commented on August 11, 2024

Interesting, I haven't used node2vec, but my understanding is that it does not understand node or edge types, and thus may be of limited utility for hetnets. An alternative method for which I reviewed the manuscript but have not used, is called edge2vec. Tagging @RoyZhengGao, who's an author on that work.

Would love to see what you uncover about the differences between the permuted and unpermuted Hetionets. Note that we have also created additional permuted derivatives of Hetionet for our recent work. The file hetionet-v1.0-permutations.zip contains 200 permutations using the HetMat format from our new hetmatpy library. CC @zietzm

from hetionet.

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.