Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic how-to #19

Open
Travis-Barton opened this issue Oct 21, 2022 · 2 comments
Open

basic how-to #19

Travis-Barton opened this issue Oct 21, 2022 · 2 comments

Comments

@Travis-Barton
Copy link

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
Copy link
Member

dhimmel commented Oct 22, 2022

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

def hetmat_from_graph(
graph, path, save_metagraph=True, save_nodes=True, save_edges=True
):
"""
Create a hetmat.HetMat from a hetnetpy.hetnet.Graph.
"""

But to create graph, you'll need hetio/hetnetpy#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
Copy link
Author

Travis-Barton commented Nov 8, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants