RTX icon indicating copy to clipboard operation
RTX copied to clipboard

Limit number of pathfinder paths in the UI

Open dkoslicki opened this issue 8 months ago • 3 comments

Some pathfinder queries, such as:

{
   "nodes": {
      "n0": {
         "ids": [ "CHEBI:31690" ]
      },
      "n1": {
         "ids": [ "MONDO:0004784" ]
      }
   },
   "paths": {
      "p0": {
         "subject":   "n0",
         "object":    "n1",
         "intermediate_nodes": [],
         "predicates": [ "biolink:related_to" ]
      }
   }
}

return a paths.

Similar to how we truncate the number of results for lookup and inferred queries, we should probably limit the number of paths returned. Open to opinions especially from @isbluis and @mohsenht about where this should be done (UI or pathfinder itself)

dkoslicki avatar Apr 15 '25 16:04 dkoslicki

Does it make sense to limit the number of paths (analyses) on the back end?

or should the back end send them all and the UI should discard more than X?

edeutsch avatar Apr 15 '25 16:04 edeutsch

If we want to truncate paths in the backend, I can easily truncate them by sending limit number of paths to the UI.

mohsenht avatar Apr 15 '25 17:04 mohsenht

I had a meeting today with Nishad and the rest of the UI team; they're going to take a look at some of our results to help inform the question of: do we want to limit the number of path, or limit the number of nodes in the knowledge graph. So we should get some guidance/input from them after they've had a chance to look into it a bit more.

dkoslicki avatar Apr 16 '25 15:04 dkoslicki