hetio / hetnetpy

Hetnets in Python (relocated from dhimmel/hetio)
https://het.io/software
Other
93 stars 28 forks source link

basic how-to #49

Open Travis-Barton opened 2 years ago

Travis-Barton commented 2 years ago

Hey all,

Is there a basic how to guide that I'm missing for this work? It looks interesting and I want to use it to explore Hetionet.

laurendelong21 commented 1 year ago

Hi, I was also wondering if there is any how-to documentation for this yet. In particular, I was interested in generating the metapaths for my graph

dhimmel commented 1 year ago

Thanks both for the reminder to improve the docs here. A basic how-to or getting started would be a great thing to add. We could also auto-generate docs from the current docstrings. And improve type hints.

Hi, I was also wondering if there is any how-to documentation for this yet. In particular, I was interested in generating the metapaths for my graph

@laurendelong21, you will probably want to use either the extract_metapaths or extract_all_metapaths methods of the MetaGraph object. Have you been able to create a metagraph for your graph yet? If not, this test has an example. Or for a bigger example, here's how the metagraph was defined for Hetionet v1.0 (notebook cell 2).

laurendelong21 commented 1 year ago

Thanks so much @dhimmel , your suggestions were what I needed for now. I managed to create the metagraph and extract metapaths using the notebook example and the two methods you pointed out. The only thing that really needed changing was the module name (hetio --> hetnetpy).