Closed AlexanderPico closed 2 years ago
It's possible to get that data, but it takes awhile. I've done it before. The tricky part might be setting up a system for getting an NDEx URL when creating a new pathway.
Ok. If the source info is not easily accessible, then let's skip this for now. I can talk to NDEx team about providing this info, e.g., as an inventory report or something.
Via NDEx API:
List network UUIDs by collection. See "WikiPathways Collection - Homo sapiens"
https://ndexbio.org/v2/user/363f49e0-4cf0-11e9-9f06-0ac135e8bacf/networksets
Get network names per UUID as batch POST query
https://ndexbio.org/v2/batch/network/summary?accesskey={accessKey}
Parse network summaries: networkAttributes:wikipathwaysID
Is the mapping between WPIDs and NDExIDs obtainable? If so, could we store that table in the repo and have a GitHub action that updated an "NDEX-url" field in the frontmatter each time the file was updated?
If we had the NDEx-url in the frontmatter, then I could easily provide a link on the pathway page to NDEx, as well as links to open the pathway in Cytoscape or even run R/Python code with the NDEx content.