hetio / hetnetpy

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

Symmetric metapaths are their own inverse #38

Closed dhimmel closed 5 years ago

dhimmel commented 5 years ago

Potentially the following function creates two metapaths when only one is necessary in the case of symmetric metapaths:

https://github.com/hetio/hetio/blob/6afb591ef52597e8ee7ec2612eb3afc376192f35/hetio/hetnet.py#L410-L437

Noticed this when investigating https://github.com/greenelab/hetmech-backend/issues/43.