You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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).
Activity
laurendelong21 commentedon Jun 26, 2023
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 commentedon Jun 26, 2023
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.
@laurendelong21, you will probably want to use either the
extract_metapathsorextract_all_metapathsmethods of theMetaGraphobject. 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 commentedon Jun 28, 2023
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).