hetio / hetmatpy

Python package for matrix storage and operations on hetnets
Other
14 stars 9 forks source link

basic how-to #19

Open Travis-Barton opened 2 years ago

Travis-Barton commented 2 years ago

Hey all,

I commented on the other package as well, but is there another how-to here that I can use for understanding how to use this package?

dhimmel commented 2 years ago

In general, you will probably start by creating a hetmat graph with:

https://github.com/hetio/hetmatpy/blob/3a426ccbcf63b27911e43be5ff305a3968224439/hetmatpy/hetmat/__init__.py#L20-L25

But to create graph, you'll need https://github.com/hetio/hetnetpy/issues/49! I'll follow up with a getting started.

Also noting the auto-generated docs, which might be slightly helpful https://hetio.github.io/hetmatpy/reference/hetmatpy/hetmat/

Travis-Barton commented 2 years ago

Awesome! Thansk for getting back to me on this. Two questions, How do we establish the graph and path objects? Also, how do I query meta_path statistics for a given path? Or do I have to query a meta path that exists already?

Edit: actually a much simpler question is how do I get the metapath ID from the path of a cypher query? I found your API that allows me to answer my other questions!