Skip to content

basic how-to #19

Open
Open

Description

@Travis-Barton

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?

Activity

  1. dhimmel commented on Oct 22, 2022

    @dhimmel
    Member

    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/

  2. Travis-Barton commented on Nov 8, 2022

    @Travis-Barton
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions