PrimeKG contains more than four million relationships. But what if you only want to explore the genes connected to one disease?
For a biomedical researcher, the PrimeKG database brings together diseases, genes, drugs, proteins, pathways, and other biological concepts in one large knowledge graph.
But accessing that information isn’t always straightforward.
The dataset comes as a CSV file with millions of rows. If you want to explore a disease and see how it connects to genes or potential drug targets, you’ll typically need tools such as Neo4j or NetworkX, and people keep asking how to do it. In 2023, someone opened an issue on PrimeKG’s GitHub titled “How do I go about visualizing this in neo4j?” (#10). In July 2026, another asked, “How should I import PrimeKG kg.csv into Neo4j Desktop 2.x?” (#28). An older issue asks for a query service (#4). Even its successor, OptimusKG, ships as Parquet files with a Python client. That works well from code, but you still can’t simply open and read it.
The idea of a biomedical graph you can browse has always existed. Hetionet has had a public Neo4j browser for years, and it’s still worth using. No graph built on PrimeKG’s design has one, though, and that’s what Axy MedGraph makes possible.
This guide walks you through Axy MedGraph in a web browser. You start at a disease, go out to the gene behind it, then on to a drug that acts on that gene. The best part: every source link is one click away.
Who this is for
This guide is for you if you’ve downloaded PrimeKG or OptimusKG, or are about to, mainly to explore the neighbourhood of a disease you study.
If you’re training a model on the whole graph, you need the files, and Axy has no export. Download PrimeKG or OptimusKG directly. If you need ranked target–disease association scores, use Open Targets. It’s free, its data is CC0, and it was built for that job.
What exactly is Axy MedGraph
Axy MedGraph follows the exact design of PrimeKG. We built it from scratch, using commercially licensed sources. It contains no PrimeKG data, and it has no connection to PrimeKG’s authors.
Its authors described PrimeKG in Scientific Data in 2023. PrimeKG’s README now points readers to OptimusKG, a much larger successor. Here is how the three compare:
| Nodes | Edges | What its licence notes say | |
|---|---|---|---|
| PrimeKG (2023) | 129,375 | 4,050,249 | Code is MIT. Data falls under each source’s licence |
| OptimusKG (2026) | ~191,000 | ~21.8 million | Use “may be partially restricted” by source licences |
| Axy MedGraph | 143,103 | 4,222,372 | Built only from sources whose licences allow reuse |
Sources: PrimeKG paper and README; OptimusKG docs and repository.
MedGraph is about PrimeKG’s size, but thinner in a few places that we list in What MedGraph doesn’t have.
So why build it? Some of PrimeKG’s sources, including DrugBank and DisGeNET, restrict how their data can be reused. Someone asked on PrimeKG’s GitHub whether it can be used commercially (#16), and DisGeNET sells commercial licences. Hetionet’s authors wrote about the same problem years ago. MedGraph leaves those sources out. That’s all this article has to say about licences.
Check out the graph, no downloads required
When you open Axy MedGraph on the web, it asks you to sign in. You reach the Discover tab, where you can explore the graph. There’s nothing to install, and exploring a public graph is free.
If you’re a first-time Axy user, sign-up asks you to create an organisation first. Next, search for the graph under Explore Knowledge Graphs, on the Public Graph tab.

Find the disease you’re working on
Let’s use cystic fibrosis as our starting point.
At the top of the Discover tab, you’ll find the search bar. Switch to Structured search, type “cystic fibrosis”, select the result under Nodes named, and hit Enter. The disease node appears on your canvas.
If you’re unsure which name the graph uses for a concept, switch to Semantic search and describe what you’re looking for in your own words. Structured search finds a specific named node. Semantic search lets you describe the concept you want to explore.

Follow the connections to its gene
Once cystic fibrosis is on the canvas, click the node to open its details, then open the Connections tab.
Each row is a neighbouring node connected to the disease. Expand a row to see what’s behind that relationship. Use Evidence to check the source before you add anything. Long lists have Load more at the bottom, and any neighbour already on your canvas is marked Already on canvas.
Next, find a gene linked to the disease, such as CFTR or SERPINA1, and click the + icon to add that node to the canvas.

Now you can see the edge connecting the two nodes, here SERPINA1 and cystic fibrosis. Click the edge, associated_with, to open a details panel with four fields:
- Edge type: the relationship between the two nodes, here associated_with
- Edge status: a recorded status, such as established or doubtful
- Confidence: a score from 0 to 1
- Evidenced by: a paper card, explained below

These details help you move beyond simply seeing that two concepts are connected. You can inspect how the relationship is represented and where the graph records it as coming from.
Follow the gene to a drug
With the gene on the canvas, look through its connections for a possible therapeutic drug, such as ivacaftor, and add it.
Axy automatically adds the edges between the nodes already on the canvas. That closes the loop from disease to gene to drug and back:
Cystic fibrosis → CFTR → Ivacaftor → Cystic fibrosis
A useful reminder: MedGraph is a research exploration tool, not a source of clinical guidance. A path in the graph represents relationships recorded by its sources, not a recommendation about what anyone should take.
Three nodes in a force-directed layout tend to look scattered. Open the layout picker and choose Horizontal Hierarchy, which reads left to right as disease, gene, drug. Concentric rings works too. Either way, you can see the whole path at once.


Find out where each connection came from
One of the most useful parts of exploring a knowledge graph is tracing its connections back to their recorded sources.
In MedGraph, every edge has an Evidenced by field that records the source it came from. To check every source on your current canvas at once, open Sources in the bottom dock.

A paper card identifies where a recorded relationship came from. It doesn’t automatically establish that the relationship is true, nor does it necessarily show the primary study that demonstrated it. In many cases, the paper describes the database that recorded the relationship.
If you need to evaluate a specific biological claim, follow the trail further: consult the source database, then examine the literature it cites.
And if you come across a relationship that looks incorrect, you can propose a correction. See the previous post, Your Lab’s Species List Is Already Out Of Date, to learn how to contribute an update.
What MedGraph doesn’t have
A graph built from reusable data sources comes with trade-offs. Before relying on MedGraph for a research question, it’s worth knowing where its coverage is thinner.
- No drug–drug interactions. PrimeKG has 1.34 million of them. We couldn’t find a suitable source that allows commercial reuse.
- No environmental exposures. The Comparative Toxicogenomics Database (CTD), the main source, restricts commercial use.
- Fewer disease–gene links. 47,010 against PrimeKG’s 80,411, because DisGeNET is out. In MedGraph, 57% of diseases reach a gene within two steps, while in PrimeKG it’s 75%. If your disease doesn’t lead to a gene in MedGraph, that may reflect a coverage gap in the graph rather than an absence of a biological relationship.
- Sparse contraindication and off-label links. These are included only when disease names match exactly across sources.
- Short descriptions. Many nodes have only a short description, or none at all.
- A fixed snapshot. It reflects its sources as of October 2026 and isn’t updated on a schedule.
- No export, download, or API. You can read and explore it in the browser by signing in.
For broader analysis, model training, or work that depends on complete coverage, use the original datasets and relevant source databases alongside it.
Explore the disease of your research interest
You don’t need to begin with the entire biomedical graph. Open Axy MedGraph and search for the disease you’re working on. Explore its neighbouring genes and drugs, and inspect the sources behind the relationships. A few minutes of following those connections can show you how the graph represents a topic, and whether its coverage is useful for your research question.
If you run a lab or build graphs of your own: Axy can help you create your own lab’s graph that your research team can iterate on with proposals and review.
We’d like to hear from you through the support chat on axy-app.com, in the app, or on Discord.